Hi guys, I'm getting the following errors during 'make' (configure went just fine) Compiling passdb/pdb_ldap.c passdb/pdb_ldap.c: In function `ldap_open_connection': passdb/pdb_ldap.c:75: `LDAP_OPT_X_TLS_HARD' undeclared (first use in this function) passdb/pdb_ldap.c:75: (Each undeclared identifier is reported only once passdb/pdb_ldap.c:75: for each function it appears in.) passdb/pdb_ldap.c:95: `LDAP_OPT_PROTOCOL_VERSION' undeclared (first use in this function) passdb/pdb_ldap.c:95: `LDAP_OPT_SUCCESS' undeclared (first use in this function) passdb/pdb_ldap.c:110: `LDAP_VERSION3' undeclared (first use in this function) passdb/pdb_ldap.c:127: `LDAP_OPT_X_TLS' undeclared (first use in this function) passdb/pdb_ldap.c: In function `ldap_search_one_user': passdb/pdb_ldap.c:190: warning: passing arg 4 of `ldap_search_s' discards qualifiers from pointer target type passdb/pdb_ldap.c: In function `pdb_delete_sam_account': passdb/pdb_ldap.c:883: `LDAP_OPT_ERROR_STRING' undeclared (first use in this function) passdb/pdb_ldap.c: In function `pdb_update_sam_account': passdb/pdb_ldap.c:936: `LDAP_OPT_ERROR_STRING' undeclared (first use in this function) passdb/pdb_ldap.c: In function `pdb_add_sam_account': passdb/pdb_ldap.c:1028: `LDAP_OPT_ERROR_STRING' undeclared (first use in this function) make: *** [passdb/pdb_ldap.o] Error 1 Solaris 8 patched to latest on sunsolve plus all the normal sunfreeware goodies. padl's excellent nss and pam modules compiled and installed fine. I'm sure this is simple but my head's not working today... Any pointers? Thanks in advance, Mark
Are you using 2.2.2? (seems like I remember these errors here). If so, you should try 2.2.3a for LDAP support. cheers, jerry On 1 Mar 2002, Mark Taylor wrote:> Hi guys, > > I'm getting the following errors during 'make' (configure went just > fine) > > Compiling passdb/pdb_ldap.c > passdb/pdb_ldap.c: In function `ldap_open_connection': > passdb/pdb_ldap.c:75: `LDAP_OPT_X_TLS_HARD' undeclared (first use in > this function) > passdb/pdb_ldap.c:75: (Each undeclared identifier is reported only once > passdb/pdb_ldap.c:75: for each function it appears in.) > passdb/pdb_ldap.c:95: `LDAP_OPT_PROTOCOL_VERSION' undeclared (first use > in this function)--------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
On Fri, 2002-03-01 at 17:03, Gerald Carter wrote:> On 1 Mar 2002, Mark Taylor wrote: > > > I am using 2.2.3a for that very LDAP support ;) > > - it's working brilliantly on our production servers as we speak > > (linux/intel), but I'm having no luck getting it to compile on our shiny > > new E420. Thanks for the prompt reply though, and any other thoughts > > will be _much_ appreciated... > > Maybe Sun's LDAP client libraries? I think I only worked with > the OpenLDAP client libs. I'll try to compile on a Solaris > 8 box next week and see what's goigng on. > > > > > > cheers, jerry > --------------------------------------------------------------------- > Hewlett-Packard http://www.hp.com > SAMBA Team http://www.samba.org > -- http://www.plainjoe.org > "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 > --"I never saved anything for the swim back." Ethan Hawk in Gattaca--First thing I did was install the openldap ones from sunfreeware... Anyway, thanks for trying jerry, I'll look forward to hearing your experiences with solaris 8 next week! Anyone out there got samba 2.2.3a --with-ldapsam on Solaris 8 ? - how did you do it? best wishes, mark
> > > >You need to edit the configure >script and remove the -lresolv in the line that adds the ldap libraries >and run configure. >hi Danny, this time I did exactely what you wrote to me : I edited the configure script and removed only the line that adds the ldap libraries (not all lines containing any -lresolv entry) This seems to be this line : LIBS="-lldap -llber $LIBS" line 11891 But configure script fails again and again. Everytime config.log reports : configure:13019: gcc -o conftest -DHAVE_CRYPT_DECL -I/usr/local/ssl/include -O -I/usr/local/openldap-2.0.23/include -L/usr/local/ssl/lib -L/usr/local/openldap-2.0.23/lib conftest.c -lssl -lcrypto -lldap -llber -lcrypt 1>&5 configure: failed program was: #line 13015 "configure" #include "confdefs.h" #include "./tests/summary.c" I am not very clever at shell-scripting so line 13015 is very cryptographic to me. I do not know why the script fails. Independent of the used OS. Free-/or Netbsd. Got the same error on both platforms. Yesterday evening I also installed debian linux 2.2r5 on a PowerPC 8500/180 because I hoped and prayed that this time compilation of the same software will be successful. Error is the same even on this Linux machine. Could probably be a kernel problem because the only working config is running on a kernel 2.4.16 (intel) ... best regards, jan