[Python-bugs-list] [ python-Bugs-542737 ] Build unable to import w/gcc 3.0.4

noreply@sourceforge.net noreply@sourceforge.net
Fri, 12 Jul 2002 13:11:51 -0700


Bugs item #542737, was opened at 2002-04-11 17:06
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=542737&group_id=5470

Category: Build
Group: Python 2.2.1 candidate
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Mike Henderson (blueronin)
Assigned to: Nobody/Anonymous (nobody)
Summary: Build unable to import w/gcc 3.0.4

Initial Comment:
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.2.1/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


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

Comment By: Neal Norwitz (nnorwitz)
Date: 2002-04-15 17:45

Message:
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

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

Comment By: Martin v. Löwis (loewis)
Date: 2002-04-12 01:30

Message:
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.

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

Comment By: Mike Henderson (blueronin)
Date: 2002-04-11 18:05

Message:
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.

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

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