Problem compiling SAMBA with ldap support

Adam Williams awilliam at whitemice.org
Wed Sep 22 10:26:19 GMT 1999


On Sep 18,  7:48pm, Adam Williams wrote:
> Subject: Re: Problem compiling SAMBA with ldap support
>
> [ Text
>   Encoded with "quoted-printable" ] :
>
> On Sep 17,  9:36pm, Svante Sörmark wrote:
> > Subject: Re: Problem compiling SAMBA with ldap support
> > > > > checking configure summarty
> > > > > configure: error: summary failure. Aborting config
> >
> > what do the last few lines of config.log say?
>
>
>  {
>   struct fs_data fsd;
>   /* Ultrix's statfs returns 1 for success,
>      0 for not mounted, -1 for failure.  */
>   exit (statfs (".", &fsd) != 1);
>   }
> configure:9002: gcc -o conftest -O   conftest.c -lreadline -ldl  -lcrypt
-lpam
> -lcurses -lldap -llber 1>&5
> /usr/lib/libldap.so: undefined reference to `res_search'
> /usr/lib/libldap.so: undefined reference to `dn_expand'
> /usr/lib/libldap.so: undefined reference to `_getshort'
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 8998 "configure"
> #include "confdefs.h"
> #include "./tests/summary.c"


The configure file contains the line:
    LIBS="$LIBS -lldap -llber"

The res_search function is found in /usr/include/resolv.h (grep is wonderful),
 so I changed the line to read:
    LIBS="$LIBS -lresolv -llber -lldap"

And now configure completed successfully.


More information about the samba-ntdom mailing list