[mod_python] HP-UX llibpython2.2.a link issue

Christian Ferrari Christian.Ferrari at primeur.com
Fri Feb 14 10:23:27 EST 2003


Hardware/software specs:

# uname -a
HP-UX apollo B.11.11 U 9000/800 816839621 unlimited-user license

# gcc -v
Reading specs from /opt/gccs/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.2.1/specs
Configured with: ../gcc-3.2.1/configure --prefix=/opt/gccs 
--enable-languages=c,
c++ --with-as=/opt/gccs/bin/as
Thread model: single
gcc version 3.2.1

# /opt/Python-2.2/bin/python -V
Python 2.2.2
*** Install steps:
./configure --prefix=/opt/Python-2.2
make
make install

# /opt/apache2/bin/httpd -v
Server version: Apache/2.0.44
Server built:   Feb 13 2003 16:53:25
*** Install steps:
./configure --prefix=/opt/apache2
make
make install

# /opt/apache2/build/libtool --version
ltmain.sh (GNU libtool) 1.4.3 (1.922.2.110 2002/10/23 01:39:54)

*** ISSUE POINT: ***

mod_python package: mod_python-3.0.1
*** Install steps:
./configure --with-apxs=/opt/apache2/bin/apxs 
--with-python=/opt/Python-2.2/bin/python
# make

Compiling for DSO. For static, do "make static"

         /opt/apache2/bin/apxs 
-I/usr/local/installed/mod_python-3.0.1/src/include 
-I/opt/apache2/include -I/opt/Python-2.2/include/python2.2 -c 
mod_python.c _apachemodule.c requestobject.c tableobject.c util.c 
serverobject.c connobject.c filterobject.c hlist.c hlistobject.c 
-L/opt/Python-2.2/lib/python2.2/config  -Wl,-E -Wl,+s -Wl,+b/lib-dynload 
      -lm  -lpython2.2   -lnsl -ldld  -lpthread   -lm

[...]
Some OK compile steps...
[...]

/opt/apache2/build/libtool --silent --mode=link gcc -o mod_python.la 
-I/usr/local/installed/mod_python-3.0.1/src/include 
-I/opt/apache2/include -I/opt/Python-2.2/include/python2.2  -rpath 
/opt/apache2/modules -module -avoid-version  hlistobject.lo hlist.lo 
filterobject.lo connobject.lo serverobject.lo util.lo tableobject.lo 
requestobject.lo _apachemodule.lo mod_python.lo 
-L/opt/Python-2.2/lib/python2.2/config -Wl,-E -Wl,+s -Wl,+b/lib-dynload 
-lm -lpython2.2 -lnsl -ldld -lpthread -lm

*** Warning: linker path does not have real file for library lpython2.2.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libpython2.2 and none of the candidates passed a file format test
*** using a file magic. Last file checked: 
/opt/Python-2.2/lib/python2.2/config/libpython2.2.a

*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module mod_python.  Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.
Usage: ln [-f] [-i] [-s] f1 f2
        ln [-f] [-i] [-s] f1 ... fn d1
*** Error exit code 2

Stop.
*** Error exit code 1

Stop.



Why libtool is complaining for a "libpython" shared object while no 
"libpython.sl" should be produced in UNIX envs?
Does anyone know where the error is?

Thanks
Christian



-- 
______________________________________

Christian Ferrari
c/o PRIMEUR ITALIA
Via E. Mattei, 1/106 A
30020 Marcon (VE) - ITALY

Tel.:    +39 041 5950998
Fax:     +39 041 5951024
Mobile:  +39 348 8960572
E-mail:  Christian.Ferrari at primeur.com
Web:     http://www.primeur.com/




More information about the Mod_python mailing list