[Python-bugs-list] [ python-Bugs-586972 ] won't build with gcc 3.1

noreply@sourceforge.net noreply@sourceforge.net
Fri, 26 Jul 2002 05:26:03 -0700


Bugs item #586972, was opened at 2002-07-26 08:26
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=586972&group_id=5470

Category: Build
Group: Python 2.2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Alexander Pletzer (pletzer)
Assigned to: Nobody/Anonymous (nobody)
Summary: won't build with gcc 3.1

Initial Comment:
Hi,

I'm running Linux Red-Hat 7.2 with gcc 3.1 but have
been unable to compile python 2.2.1.


[root@apletzer-pc Python-2.2.1]# uname -a
Linux apletzer-pc 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT
2001 i686 unknown
[root@apletzer-pc Python-2.2.1]# gcc --version
gcc (GCC) 3.1
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying
conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

make 
..
gcc  -Xlinker -export-dynamic -o python \
                Modules/python.o \
                libpython2.2.a -ldl  -lpthread -lutil
-lreadline -ltermcap  -L/usr/lib -ltk8.3 -ltcl8.3
-L/usr/X11R6/lib -lX11   -lm  
/usr/bin/ld: Dwarf Error: Invalid or unhandled FORM
value: 14.
libpython2.2.a(posixmodule.o): In function `posix_tmpnam':
/usr/local-apletzer/Python-2.2.1/Modules/posixmodule.c:4501:
the use of `tmpnam_r' is dangerous, better use `mkstemp'
libpython2.2.a(posixmodule.o): In function `posix_tempnam':
/usr/local-apletzer/Python-2.2.1/Modules/posixmodule.c:4451:
the use of `tempnam' is dangerous, better use `mkstemp'
collect2: ld returned 1 exit status

make CC=/usr/bin/gcc on the other hand works
/usr/bin/gcc --version

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=586972&group_id=5470