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

Library Problem on HP-UX 11.00 - Unsatisfied symbols



Hi !
 
I wrote a C program which checks via LDAP for the existence of a mail account on a M$ Exchange Server.
The program was developed on FreeBSD and  works there without problems.
Now I try to port this program to HP-UX 11.00
Not being root on this machine, I installed all necessary software in $HOME/local
 
For example Berkeley DB 2.7.7:
CPPFLAGS="-D_REENTRANT"
cd build_unix
../dist/configure --prefix=${HOME}/local -without-threads
make
cd ${HOME}/local/BerkeleyDB
find . -type f -exec chmod 640 {} \;
...
cd build_unix
make install
Then I install openldap 1.2.11
CPPFLAGS="-I${HOME}/local/include -I${HOME}/local/BerkeleyDB/include"
LDFLAGS="-L${HOME}/local/lib -L${HOME}/local/BerkeleyDB/lib"
export CPPFLAGS
export LDFLAGS
export LIBS
./configure --prefix=${HOME}/local --without-threads --with-ldbm-api=db2
make depend
make
Now I try to compile my program:
 
LFLAGS=-L/usr/local/lib -L${HOME}/local/lib -lldap -llber

CFLAGS=-Wall -I/usr/local/include -I${HOME}/local/include
 
Compiles without a single warning, fine
 
BUT THE LINKER SAYS:
 
/usr/ccs/bin/ld: Unsatisfied symbols:
   ldap_count_entries (code)
   ldap_search_s (code)
   ldap_unbind (code)
   ldap_msgfree (code)
   ldap_init (code)
   ldap_simple_bind_s (code)
   ldap_err2string (code)
*** Error exit code 1
 
ar -t libldap.a says
bind.o
open.o
result.o
error.o
compare.o
search.o
modify.o
add.o
modrdn.o
delete.o
abandon.o
ufn.o
cache.o
getfilter.o
sbind.o
kbind.o
unbind.o
friendly.o
cldap.o
free.o
disptmpl.o
srchpref.o
dsparse.o
tmplout.o
sort.o
getdn.o
getentry.o
getattr.o
getvalues.o
addentry.o
request.o
getdxbyname.o
os-ip.o
url.o
charset.o
init.o
strdup.o
version.o
What I am doing wrong ? Any suggestions ?
 
josef kraus