Issue 542737: Build unable to import w/gcc 3.0.4 (original) (raw)

Created on 2002-04-11 23:06 by blueronin, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (4)
msg10267 - (view) Author: Mike Henderson (blueronin) Date: 2002-04-11 23:06
I'm building on SunOS 5.8 with gcc 3.0.4. I needed to recompile 2.2 to add threads for Zope and am not having any of the build 'xxx' extensions succeed. My original compile with gcc 3.0.2 had succeeded. I've tried it with --with-threads and without, same results. I downloaded 2.2.1, same results. Configured with -------------------- ./configure --prefix=/ftp/lmp/local Make output ------------------------ /ftp/lmp/local/src/gnu/python/Python-2.2.1/ tin/prodfix/dev > make case $MAKEFLAGS in \ *-s*) CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG - g -O3 -Wall -Wstrict-prototypes' ./python - E ./setup.py -q build;; \ *) CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g - O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build;; \ esac running build running build_ext building 'struct' extension gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC - I. -I/ftp/lmphr/local/src/gnu/python/Python- 2.2.1/./Include -I/usr/local/include -IInclude/ - c /ftp/lmphr/local/src/gnu/python/Python- 2.Modules/structmodule.c -o build/temp.solaris-2.8- sun4u-2.2/structmodule.o gcc -shared build/temp.solaris-2.8-sun4u- 2.2/structmodule.o -L/usr/local/lib -o build/lib.solaris-2.8-sun4u-2.2/struct.so WARNING: removing "struct" since importing it failed
msg10268 - (view) Author: Mike Henderson (blueronin) Date: 2002-04-12 00:05
Logged In: YES user_id=201694 The release candidate downloaded from SourceForge compiled w/o problems. The download with the problems came from the www.python.org site.
msg10269 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-04-12 07:30
Logged In: YES user_id=21627 Can you please manually invoke the gcc command lines to build struct? Then please try to import it in the interpreter, and report any error messages you get in doing so.
msg10270 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2002-04-15 23:45
Logged In: YES user_id=33168 I had the same problem until I added the location of libgcc_s.so.1 (I don't have gcc 3.0.4 installed in /usr/local) to LD_LIBRARY_PATH. In my case, this fixed the problem: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/local/lib
History
Date User Action Args
2022-04-10 16:05:12 admin set github: 36416
2002-04-11 23:06:57 blueronin create