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