CVS fix? (was RE: Problem compiling SAMBA with ldap support)

Mayers, P J p.mayers at ic.ac.uk
Wed Sep 22 16:53:26 GMT 1999


Sir, you are a stud...

Confirmed. This is the fix needed to compile with LDAP on last nights CVS
with LDAP support (Redhat 6.0, Openldap 1.2.6)

Could someone with CVS access please commit this?

Cheers,
Phil 

-----Original Message-----
From: Adam Williams
To: Multiple recipients of list SAMBA-NTDOM
Sent: 22/09/99 11:28
Subject: Re: Problem compiling SAMBA with ldap support

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