[Date Prev][Date Next] [Chronological] [Thread] [Top]

Problems with shared libs on HPUX 11



Hi,

I can't seem to compile shared libs only on HPUX 11. Here is the relevent
information:

./configure --enable-shared=yes --enable-static=no --with-threads=no

Then when I compile, I get these errors:


  Entering subdirectory liblber
make[2]: Entering directory `/tmp_mnt/develop/workspace/lduperva/incoming/openldap-1.2.9/libraries/liblber'
/bin/sh /usagers/lduperva/workspace/incoming/openldap-1.2.9/libtool --mode=link gcc -g -O2 -I../../include        -I../../include   -DHAVE_CONFIG_H  -L/usagers/lduperva/workspace/incoming/openldap-1.2.9/libraries   -L/usagers/lduperva/workspace/incoming/openldap-1.2.9/libraries   -o dtest dtest.o -llber  -lV3  
gcc -g -O2 -I../../include -I../../include -DHAVE_CONFIG_H -L/usagers/lduperva/workspace/incoming/openldap-1.2.9/libraries -L/usagers/lduperva/workspace/incoming/openldap-1.2.9/libraries -o dtest dtest.o -llber -lV3
/bin/ld: Can't find library for -llber
collect2: ld returned 1 exit status
make[2]: *** [dtest] Error 1
make[2]: Leaving directory `/tmp_mnt/develop/workspace/lduperva/incoming/openldap-1.2.9/libraries/liblber'
 
  Entering subdirectory libldap
make[2]: Entering directory `/tmp_mnt/develop/workspace/lduperva/incoming/openldap-1.2.9/libraries/libldap'
/bin/sh /usagers/lduperva/workspace/incoming/openldap-1.2.9/libtool --mode=link gcc -g -O2 -I../../include        -I../../include   -DHAVE_CONFIG_H  -L/usagers/lduperva/workspace/incoming/openldap-1.2.9/libraries   -L/usagers/lduperva/workspace/incoming/openldap-1.2.9/libraries   -o ltest test.o -lldap -llber  -lV3  
gcc -g -O2 -I../../include -I../../include -DHAVE_CONFIG_H -L/usagers/lduperva/workspace/incoming/openldap-1.2.9/libraries -L/usagers/lduperva/workspace/incoming/openldap-1.2.9/libraries -o ltest test.o -lldap -llber -lV3
/bin/ld: Can't find library for -lldap
collect2: ld returned 1 exit status
make[2]: *** [ltest] Error 1
make[2]: Leaving directory `/tmp_mnt/develop/workspace/lduperva/incoming/openldap-1.2.9/libraries/libldap'
 
Of course, anything that needs -llap or -llber later on fails miserably. It
doesn't look like any of the *sl files is created. This is with version 1.2.9.
If anyone has any ideas, I'm all ears. :-)

L

P.S. I'm thinking it's a libtool thing. I went into the libraries/Makefiles
and changed all instances of .a to .sl and it goes a bit further, complaining
about:

collect2: unable to open dynamic dependency '             dynamic   /usagers/lduperva/workspace/incoming/openldap-1.2.9/libraries/liblber.sl.1'

-- 
Penguin Power!

Laurent Duperval
CGI - SARM Project
Phone: (514) 350-3368
mailto:laurent.duperval@cgi.ca