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

Christian Ferrari Christian.Ferrari at primeur.com
Mon Feb 17 11:01:39 EST 2003

Gregory (Grisha) Trubetskoy wrote:

> On Fri, 14 Feb 2003, Christian Ferrari wrote:
>># /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
> Here you also need --enable-so
>>*** 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:
> I do not have any experience with HP-UX, but on other systems a similar
> message indicates an old version of libtool, which wouldn't allow linking
> shared and static libs together. So I'd first see if upgrading libtool
> would help. After you upgrade, rebuild apache by first running
> ./buildconf like this:
> ./buildconf
> ./configure --prefix=/opt/apache2 --enable-so
> make clean
> make
> Then for mod_python, do make clean; make
> Grisha

Libtool supplied with Apache 2.0.44 is 1.4.3; last libtool available on 
GNU site is 1.4.3.
Anywhere, I installed a fresh-stand-alone libtool-1.4.3 package, but 
Apache didn't use it, so I tryed to force Apache build:

./configure --prefix=/opt/apache2 --enable-so 

Apache did NOT like "my standard" libtool; this is the Apache build error:

[... some working stuff ...]

Making all in dso/unix
         gcc -g -O2   -DHAVE_CONFIG_H -DHPUX11 -D_REENTRANT 
-D_XOPEN_SOURCE_EXTENDED   -I../../include -I../../include/arch 
-I../../include/arch/unix  -c dso.ccr libapr-0.la strings/apr_cpystrn.o 
strings/apr_fnmatch.o strings/apr_snprintf.o strings/apr_strings.o 
strings/apr_strnatcmp.o strings/apr_strtok.o passwd/apr_getpass.o 
tables/apr_hash.o tables/apr_tables.o file_io/unix/copy.o 
file_io/unix/dir.o file_io/unix/fileacc.o file_io/unix/filedup.o 
file_io/unix/filepath.o file_io/unix/filestat.o file_io/unix/flock.o 
file_io/unix/fullrw.o file_io/unix/mktemp.o file_io/unix/open.o 
file_io/unix/pipe.o file_io/unix/readwrite.o file_io/unix/seek.o 
network_io/unix/inet_ntop.o network_io/unix/inet_pton.o 
network_io/unix/sendrecv.o network_io/unix/sockaddr.o 
network_io/unix/sockets.o network_io/unix/sockopt.o 
threadproc/unix/proc.o threadproc/unix/procsup.o 
threadproc/unix/signals.o threadproc/unix/thread.o 
threadproc/unix/threadpriv.o misc/unix/charset.o misc/unix/errorcodes.o 
misc/unix/getopt.o misc/unix/otherchild.o misc/unix/rand.o 
misc/unix/start.o misc/unix/version.o locks/unix/global_mutex.o 
locks/unix/proc_mutex.o locks/unix/thread_cond.o 
locks/unix/thread_mutex.o locks/unix/thread_rwlock.o time/unix/time.o 
time/unix/timestr.o mmap/unix/common.o mmap/unix/mmap.o shmem/unix/shm.o 
user/unix/groupinfo.o user/unix/userinfo.o memory/unix/apr_pools.o 
atomic/unix/apr_atomic.o poll/unix/poll.o poll/unix/pollacc.o 
support/unix/waitio.o dso/unix/*.o; libapr-0.la
sh[4]: cr:  not found.
*** Error exit code 127

*** Error exit code 1

*** Error exit code 1

*** Error exit code 1


I'm going to post the link issue on "libtool" mailing list.

More information about the Mod_python mailing list