I am getting below error when running "configure --with-ldap --with-ldapsam --with-ads":
I am getting below errors when running "configure --with-ldap --with-ldapsam --with-ads" on Solaris 8: ************ Begin *************** ld: warning: option -YP appears more than once, first setting taken Undefined first referenced symbol in file ldap_initialize conftest.o ld: fatal: Symbol referencing errors. No output written to conftest configure:23333: $? = 1 configure: failed program was: #line 23292 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char ldap_initialize (); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char ldap_initialize (); char (*f) (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_ldap_initialize) || defined (__stub___ldap_initialize) choke me #else f = ldap_initialize; #endif ; return 0; } configure:23349: result: no configure:23379: WARNING: libldap is needed for LDAP support configure:23394: checking for Active Directory and krb5 support configure:23408: result: yes configure:23416: error: Active Directory Support requires LDAP support ********** End *********** Note that I am using libldap that comes with Solaris 8 Shared Libs package (SUNWcsl). Thanks a lot in advance, Dan
loupicciano@comcast.net
2004-Feb-24 22:53 UTC
[Samba] Samba 3.0.2 config error using --with-ldap
Dan, Though I don't use the Solaris-packaged ldap libs (I am using OpenLDAP), locating the libraries for Samba was a big problem. I did a lot of fiddling with compiler and preprocessor flags, including some which I didn't think we should need; these mods are shown below. (I put all my config commands, by habit, into a script file, so I can annotate). Obviously, your mileage will vary, but hopefully you can surmise something about your required lib pathnames... You'll see we also had problems with Solaris spinlocks, and with the xml test (though we do have libxml2 installed), so disabled the test and have had no further probs with the xml2 side of things. We finally did get a good configure, but are now having probs with the make. Best Luck - Lou ------------- snip ---------------------------------- #!/bin/sh # --- Mods by Lou for SAMBA 3.0.2a # -- have libxml2 on board, but dsabled test because config chokes... # - having enabled additional library paths, now got config to work, # but with spinlocks enabled, make chokes. # SO NO SPINLOCKS for the time being !!! LD_LIBRARY_PATH="/usr/local/lib:/usr/local/mysql/lib:/opt/csw/lib" \ LDFLAGS="-L/usr/local/mysql/lib -L/opt/csw/lib" \ CPPFLAGS="-I/usr/local/mysql/include -I/opt/csw/include -I/usr/include/libxml2/libxml" \ CFLAGS="-I/usr/local/mysql/include -I/opt/csw/include -I/usr/include/libxml2/libxml -DHAS_LDAP" \ './configure' \ '--enable-debug' \ '--enable-developer' \ '--enable-krb5developer' \ '--with-ldap=/opt/csw/include/ldap.h' \ '--with-ads' \ '--with-krb5' \ '--with-expsam=xml, mysql' \ '--with-xml-prefix=/usr/lib' \ '--with-xml-exec-prefix=/usr/lib' \ '--disable-xmltest' \ '--with-mysql-prefix=/usr/local/mysql' \ '--with-mysql-exec-prefix=/sr/local/mysql/bin' \ '--with-ldapsam' \ "$@" I am getting below errors when running "configure --with-ldap --with-ldapsam --with-ads" on Solaris 8: ************ Begin *************** configure:23349: result: no configure:23379: WARNING: libldap is needed for LDAP support ********** End *********** Note that I am using libldap that comes with Solaris 8 Shared Libs package (SUNWcsl). Thanks a lot in advance, Dan
Hi, I also use the openldap libldap (need to install openldap configured with --null-backend=yes). Then set the library search path for solaris with "crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib". I didn't need to hack any files to get this to compile :-). hope this helps, Andy. ------------- snip ---------------------------------- #!/bin/sh # --- Mods by Lou for SAMBA 3.0.2a # -- have libxml2 on board, but dsabled test because config chokes... # - having enabled additional library paths, now got config to work, # but with spinlocks enabled, make chokes. # SO NO SPINLOCKS for the time being !!! LD_LIBRARY_PATH="/usr/local/lib:/usr/local/mysql/lib:/opt/csw/lib" \ LDFLAGS="-L/usr/local/mysql/lib -L/opt/csw/lib" \ CPPFLAGS="-I/usr/local/mysql/include -I/opt/csw/include -I/usr/include/libxml2/libxml" \ CFLAGS="-I/usr/local/mysql/include -I/opt/csw/include -I/usr/include/libxml2/libxml -DHAS_LDAP" \ './configure' \ '--enable-debug' \ '--enable-developer' \ '--enable-krb5developer' \ '--with-ldap=/opt/csw/include/ldap.h' \ '--with-ads' \ '--with-krb5' \ '--with-expsam=xml, mysql' \ '--with-xml-prefix=/usr/lib' \ '--with-xml-exec-prefix=/usr/lib' \ '--disable-xmltest' \ '--with-mysql-prefix=/usr/local/mysql' \ '--with-mysql-exec-prefix=/sr/local/mysql/bin' \ '--with-ldapsam' \ "$@" I am getting below errors when running "configure --with-ldap --with-ldapsam --with-ads" on Solaris 8: ************ Begin *************** configure:23349: result: no configure:23379: WARNING: libldap is needed for LDAP support ********** End *********** Note that I am using libldap that comes with Solaris 8 Shared Libs package (SUNWcsl). Thanks a lot in advance, Dan -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba BBCi at http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this.
Thanks for the reply. But my problem is not locating the libraries. It's basically Sun's libldap vs. OpenLDAP's libldap (or other supported libldap). As indicated in my previous email, the key error was: Undefined first referenced symbol in file ldap_initialize conftest.o ld: fatal: Symbol referencing errors. No output written to conftest I checked the symbols in Sun's libldap, it doesn't seem to contain ldap_initialize. So the question is how to bypass the checking of ldap_initialize. Thanks, Dan -----Original Message----- From: loupicciano@comcast.net [mailto:loupicciano@comcast.net] Sent: Tuesday, February 24, 2004 5:52 PM To: samba@lists.samba.org Cc: Chu, Dan Subject: Re: [Samba] Samba 3.0.2 config error using --with-ldap Dan, Though I don't use the Solaris-packaged ldap libs (I am using OpenLDAP), locating the libraries for Samba was a big problem. I did a lot of fiddling with compiler and preprocessor flags, including some which I didn't think we should need; these mods are shown below. (I put all my config commands, by habit, into a script file, so I can annotate). Obviously, your mileage will vary, but hopefully you can surmise something about your required lib pathnames... You'll see we also had problems with Solaris spinlocks, and with the xml test (though we do have libxml2 installed), so disabled the test and have had no further probs with the xml2 side of things. We finally did get a good configure, but are now having probs with the make. Best Luck - Lou ------------- snip ---------------------------------- #!/bin/sh # --- Mods by Lou for SAMBA 3.0.2a # -- have libxml2 on board, but dsabled test because config chokes... # - having enabled additional library paths, now got config to work, # but with spinlocks enabled, make chokes. # SO NO SPINLOCKS for the time being !!! LD_LIBRARY_PATH="/usr/local/lib:/usr/local/mysql/lib:/opt/csw/lib" \ LDFLAGS="-L/usr/local/mysql/lib -L/opt/csw/lib" \ CPPFLAGS="-I/usr/local/mysql/include -I/opt/csw/include -I/usr/include/libxml2/libxml" \ CFLAGS="-I/usr/local/mysql/include -I/opt/csw/include -I/usr/include/libxml2/libxml -DHAS_LDAP" \ './configure' \ '--enable-debug' \ '--enable-developer' \ '--enable-krb5developer' \ '--with-ldap=/opt/csw/include/ldap.h' \ '--with-ads' \ '--with-krb5' \ '--with-expsam=xml, mysql' \ '--with-xml-prefix=/usr/lib' \ '--with-xml-exec-prefix=/usr/lib' \ '--disable-xmltest' \ '--with-mysql-prefix=/usr/local/mysql' \ '--with-mysql-exec-prefix=/sr/local/mysql/bin' \ '--with-ldapsam' \ "$@" I am getting below errors when running "configure --with-ldap --with-ldapsam --with-ads" on Solaris 8: ************ Begin *************** configure:23349: result: no configure:23379: WARNING: libldap is needed for LDAP support ********** End *********** Note that I am using libldap that comes with Solaris 8 Shared Libs package (SUNWcsl). Thanks a lot in advance, Dan
You might just be causing yourself unnecessary problems by insisting on using the Sun libldap, I imagine the Samba guys develop with openldap as this is what is referenced in their documentation. I don't think there's any harm in having both openldap and sun libldap on the same system, I didn't need to remove the Sun files. If you need the Sun versions for something else, just install openldap into /usr/local thanks Andy. -----Original Message----- From: samba-bounces+pubsyssamba=bbc.co.uk@lists.samba.org [mailto:samba-bounces+pubsyssamba=bbc.co.uk@lists.samba.org]On Behalf Of Chu, Dan Posted At: 25 February 2004 16:58 Posted To: Samba Conversation: [Samba] Samba 3.0.2 config error using --with-ldap Subject: RE: [Samba] Samba 3.0.2 config error using --with-ldap Thanks for the reply. But my problem is not locating the libraries. It's basically Sun's libldap vs. OpenLDAP's libldap (or other supported libldap). As indicated in my previous email, the key error was: Undefined first referenced symbol in file ldap_initialize conftest.o ld: fatal: Symbol referencing errors. No output written to conftest I checked the symbols in Sun's libldap, it doesn't seem to contain ldap_initialize. So the question is how to bypass the checking of ldap_initialize. Thanks, Dan -----Original Message----- From: loupicciano@comcast.net [mailto:loupicciano@comcast.net] Sent: Tuesday, February 24, 2004 5:52 PM To: samba@lists.samba.org Cc: Chu, Dan Subject: Re: [Samba] Samba 3.0.2 config error using --with-ldap Dan, Though I don't use the Solaris-packaged ldap libs (I am using OpenLDAP), locating the libraries for Samba was a big problem. I did a lot of fiddling with compiler and preprocessor flags, including some which I didn't think we should need; these mods are shown below. (I put all my config commands, by habit, into a script file, so I can annotate). Obviously, your mileage will vary, but hopefully you can surmise something about your required lib pathnames... You'll see we also had problems with Solaris spinlocks, and with the xml test (though we do have libxml2 installed), so disabled the test and have had no further probs with the xml2 side of things. We finally did get a good configure, but are now having probs with the make. Best Luck - Lou ------------- snip ---------------------------------- #!/bin/sh # --- Mods by Lou for SAMBA 3.0.2a # -- have libxml2 on board, but dsabled test because config chokes... # - having enabled additional library paths, now got config to work, # but with spinlocks enabled, make chokes. # SO NO SPINLOCKS for the time being !!! LD_LIBRARY_PATH="/usr/local/lib:/usr/local/mysql/lib:/opt/csw/lib" \ LDFLAGS="-L/usr/local/mysql/lib -L/opt/csw/lib" \ CPPFLAGS="-I/usr/local/mysql/include -I/opt/csw/include -I/usr/include/libxml2/libxml" \ CFLAGS="-I/usr/local/mysql/include -I/opt/csw/include -I/usr/include/libxml2/libxml -DHAS_LDAP" \ './configure' \ '--enable-debug' \ '--enable-developer' \ '--enable-krb5developer' \ '--with-ldap=/opt/csw/include/ldap.h' \ '--with-ads' \ '--with-krb5' \ '--with-expsam=xml, mysql' \ '--with-xml-prefix=/usr/lib' \ '--with-xml-exec-prefix=/usr/lib' \ '--disable-xmltest' \ '--with-mysql-prefix=/usr/local/mysql' \ '--with-mysql-exec-prefix=/sr/local/mysql/bin' \ '--with-ldapsam' \ "$@" I am getting below errors when running "configure --with-ldap --with-ldapsam --with-ads" on Solaris 8: ************ Begin *************** configure:23349: result: no configure:23379: WARNING: libldap is needed for LDAP support ********** End *********** Note that I am using libldap that comes with Solaris 8 Shared Libs package (SUNWcsl). Thanks a lot in advance, Dan -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba BBCi at http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this.