2.1 extension errors on Solaris/gcc

Andrew Dalke dalke at dalkescientific.com
Fri Oct 19 19:16:34 EDT 2001


Hello,

  An extension module I develop isn't building under Python 2.1
on a Solaris box which has gcc installed but not the vendor's
cc.  I can't figure it out.  Looking for advice.

Original attempt was to compile Python with gcc 2.95 using
the archive from ftp.sunfreeware.com .  That caused a problem.

 solana> /usr/local/bin/python
 Python 2.1.1 (#1, Aug 25 2001, 04:37:28)
 [GCC 3.0.1] on sunos5
 Type "copyright", "credits" or "license" for more information.
 >>> import cStringIO
 Traceback (most recent call last):
   File "<stdin>", line 1, in ?
 ImportError: ld.so.1: /usr/local/bin/python: fatal: libgcc_s.so.1:
 open failed: No such file or directory
 >>>

and there was no libgcc_s.so anywhere on the machine.

Next was to upgrade to gcc 3.0.1.  That compiled Python just
fine, but there were problems with the extension.

 solana> python setup.py build
 running build
 running build_py
 creating build
 creating build/lib.solaris-2.7-sun4u-2.1
    ....
 running build_ext
 building 'dayswig_python' extension
 creating build/temp.solaris-2.7-sun4u-2.1
 gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -I/daylight/v472/include \
    -I/usr/local/include/python2.1 -c dayswig/dayswig_python.c -o \
    build/temp.solaris-2.7-sun4u-2.1/dayswig_python.o
   ...
 gcc -shared build/temp.solaris-2.7-sun4u-2.1/dayswig_python.o \
   build/temp.solaris-2.7-sun4u-2.1/daydepict_python.o \
   -L/daylight/v472/lib -ldt_thor -ldt_merlin -ldt_progob -ldt_depict \
   -ldt_monomer -ldt_datatype -ldt_finger -ldt_smarts -ldt_ipcx \
   -ldt_smiles -lm -o build/lib.solaris-2.7-sun4u-2.1/dayswig_python.so
 ld: warning: global symbol `_DYNAMIC' has non-global binding:
         (file /usr/local/lib/gcc-lib/sparc-sun-\
           solaris2.7/3.0.1/../../../libgcc_s.so value=LOCL);
 ld: warning: global symbol `_PROCEDURE_LINKAGE_TABLE_' has non-global \
        binding: (file /usr/local/lib/gcc-lib/sparc-sun-\
                   solaris2.7/3.0.1/../../../libgcc_s.so value=LOCL);
 ld: warning: global symbol `_GLOBAL_OFFSET_TABLE_' has non-global binding:
        (file /usr/local/lib/gcc-lib/sparc-sun-\
                 solaris2.7/3.0.1/../../../libgcc_s.so value=LOCL);
 Bus Error (core dumped)

Now what?
                    Andrew
                    dalke at dalkescientific.com






More information about the Python-list mailing list