[Python-bugs-list] [Bug #132783] 2.1a2 fails to build extensions under Solaris 8 with gcc
noreply@sourceforge.net
noreply@sourceforge.net
Sat, 17 Feb 2001 16:56:02 -0800
Bug #132783, was updated on 2001-Feb-16 16:42
Here is a current snapshot of the bug.
Project: Python
Category: Build
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: mfavas
Assigned to : nobody
Summary: 2.1a2 fails to build extensions under Solaris 8 with gcc
Details: Platform: SunOS asafoetida 5.8 Generic_108528-04 sun4u sparc
SUNW,Ultra-60
Compiler: gcc version 2.95.2 19991024 (release)
2.1a2 from CVS of Feb 16
"make" builds the bootstrap python successfully, but fails to build any
extensions due to lack of "-fPIC" compiler option. Putting this option in
by hand allows the extensions to build. A typical error message is:
building 'struct' extension
creating build
creating build/temp.solaris-2.8-sun4u-2.1
gcc -g -O2 -Wall -Wstrict-prototypes -I.
-I/export/home0/mark/src/python/CVS/python/dist/src/./Include
-IInclude/ -I/usr/local/include
-c /export/home0/mark/src/python/CVS/python/dist/src/Modules/structmodule.c
-o build/temp.solaris-2.8-sun4u-2.1/structmodule.o
creating build/lib.solaris-2.8-sun4u-2.1
gcc -shared build/temp.solaris-2.8-sun4u-2.1/structmodule.o
-L/usr/local/lib -o
build/lib.solaris-2.8-sun4u-2.1/struct.so
WARNING: building of extension "struct" failed: command 'gcc' failed with
exit status 1
Text relocation remains referenced
against symbol offset in file
<unknown> 0x1204
build/temp.solaris-2.8-sun4u-2.1
/structmodule.o
<unknown> 0x1208
build/temp.solaris-2.8-sun4u-2.1
/structmodule.o
<unknown> 0x120c
build/temp.solaris-2.8-sun4u-2.1
/structmodule.o
<unknown> 0x1210
build/temp.solaris-2.8-sun4u-2.1
/structmodule.o
.
<lots more elided>
.
PyErr_ExceptionMatches 0xc78
build/temp.solaris-2.8-sun4u-2.1
/structmodule.o
Py_InitModule4 0x1c48
build/temp.solaris-2.8-sun4u-2.1
/structmodule.o
ld: fatal: relocations remain against allocatable but non-writable
sections
collect2: ld returned 1 exit status
Follow-Ups:
Date: 2001-Feb-17 16:56
By: mfavas
Comment:
I've submitted a patch to configure.in to fix this bug - patch number
103865.
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=132783&group_id=5470