Make sure you have ldap lib in /usr/local/lib/ if yes.
Try too put environnement variable LIBS with -lldap (or -lldapssl40  if you 
use netscape API)


You can also patch libtool ( not correctely )

archive_cmds="\$LD -G\${allow_undefined_flag} -h \$soname -o \$lib 
\$libobjs \$deplibs \$linkopts"
to
archive_cmds="\$LD -G\${allow_undefined_flag} -h \$soname -o \$lib 
\$libobjs \$deplibs \$linkopts -lldap"

and
archive_expsym_cmds="\$echo \\\"{ global:\\\" > \$lib.exp~cat 
\$export_symbols | sed -e \\\"s/\\\\(.*\\\\)/\\\\1;/\\\" >> 
\$lib.exp~\$echo \\\"local: *; };\\\" >> \$lib.exp~
   \$LD -G\${allow_undefined_flag} -M \$lib.exp -h \$soname -o \$lib 
\$libobjs \$deplibs \$linkopts~\$rm \$lib.exp"
to
archive_expsym_cmds="\$echo \\\"{ global:\\\" > \$lib.exp~cat 
\$export_symbols | sed -e \\\"s/\\\\(.*\\\\)/\\\\1;/\\\" >> 
\$lib.exp~\$echo \\\"local: *; };\\\" >> \$lib.exp~
   \$LD -G\${allow_undefined_flag} -M \$lib.exp -h \$soname -o \$lib 
\$libobjs \$deplibs \$linkopts~\$rm \$lib.exp -lldap"


At 15:48 25/07/01 -0400, Michael Weber a écrit:
>I am trying to compile SASL, but I am having a problem.  I have patched
>it to support LDAP, but when I get to make I receive the following
>error.
>
>/bin/sh ../libtool --mode=link gcc  -Wall -W -g -O2 -L/usr/local/lib
>-Wl,-rpath,
>/usr/local/lib -L/usr/local/BerkeleyDB.3.2/lib -L/usr/local/lib -o
>dbconverter-1
>.5.9  dbconverter-1.5.9.o ../lib/libsasl.la -ldb -lresolv
>mkdir .libs
>gcc -Wall -W -g -O2 -L/usr/local/lib -Wl,-rpath,/usr/local/lib
>-L/usr/local/Berk
>eleyDB.3.2/lib -L/usr/local/lib -o .libs/dbconverter-1.5.9
>dbconverter-1.5.9.o .
>./lib/.libs/libsasl.so -ldb -ldl -lcrypt -lresolv -ldb -lresolv
>-Wl,--rpath -Wl,
>/usr/local/lib
>../lib/.libs/libsasl.so: undefined reference to `ldap_get_dn'
>../lib/.libs/libsasl.so: undefined reference to `ldap_unbind'
>../lib/.libs/libsasl.so: undefined reference to `ldap_first_entry'
>../lib/.libs/libsasl.so: undefined reference to `ldap_simple_bind_s'
>../lib/.libs/libsasl.so: undefined reference to `ldap_open'
>../lib/.libs/libsasl.so: undefined reference to `ldap_search_ext_s'
>collect2: ld returned 1 exit status
>make[2]: *** [dbconverter-1.5.9] Error 1
>make[2]: Leaving directory
>`/home/mweber/Hold/Linux/cyrus-sasl-1.5.24/utils'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory `/home/mweber/Hold/Linux/cyrus-sasl-1.5.24'
>make: *** [all-recursive-am] Error 2
>
>
>Has anybody seen this before, or does anybody know what this might mean.
>Any help is truly appreciated.
>
>This is line to compile:
>export LDFLAGS="-L/usr/local/BerkeleyDB.3.2/lib -L/usr/local/lib"
>export CPPFLAGS="-I/usr/local/BerkeleyDB.3.2/include"
>./configure --enable-login --with-ldap=/usr/local/lib
>

-- Julien Marchal --

Email : [EMAIL PROTECTED]

Université NANCY 2 - C.R.I.
13, Rue Michel Ney
CO 75 - 54037 Nancy Cédex


Reply via email to