The error of building Python on HP UX

Zhou, Ganhong zhough at 263.net
Thu Jul 26 02:04:16 EDT 2001


When I run make to build the python. I met with some problems.

The gcc version is as following:
Reading specs from /usr/local/cygnus/bin/../lib/gcc-lib/hppa2.0w-hp-
hpux11.00/2.9-hppa-000310/specs
gcc version 2.9-hppa-000310

The enviroment is
	HP-UX B.11.00 B 9000/800
	

The error information is as following:

gcc  -Wl,-E -Wl,+s -Wl,+b/home/zhough/bin/python/lib/python2.1/lib-dynload -
o python \
                Modules/python.o \
                libpython2.1.a -lnsl -ldld -ldl  -lpthread   -lm  
/usr/local/cygnus/bin/../lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.9-hppa-
000310/../../../../hppa2.0w-hp-hpux11.00/bin/ld: cannot open +s: No such 
file or directory
collect2: ld returned 1 exit status


I look up the help information of gcc, and found that '+s' is not a option 
for linker.
Why the Makefile generated by configure script contains this option? 
Has anybody met with the problem?


Later I use the following options to run configure:
    configure -without-gcc -without-cxx
    
    It's ok for building. But "make install" report some errors.
    
    This line is the source for error:
        $(INSTALL) -d -m $(DIRMODE) $$i;
    
    
    INSTALL=/opt/imake/bin/install, but I found that the install script has 
no -d option.
    
    How can I deal with it?
    
    

    
    



More information about the Python-list mailing list