[Samba] Samba 3. ldapsam.so not generated on Solaris 9 with Sun One Directory Server

José Mellado chemolitionman at yahoo.com
Wed Jul 30 08:38:30 GMT 2003


Hi.

I have working fine Samba 2.2.8a acting as PDC using Sun One Directory Server as backend.

Now I want to migrate to Samba 3.

The problem is that I'm not able to generate "ldapsam.so"

Some body has built Samba 3 on Solaris 9 using Sun One Directory Server as backend?

Somo body can help me and need more information about my environment?

I don't know if it's need some aditional library that the configure command can't detect.

The error I recives when a request commes to smbd proccess is:

Opening cache file at /usr/local/samba/var/locks/gencache.tdb

namecache_enable: enabling netbios namecache, timeout 660 seconds

reghook_cache_add: Adding key [/HKLM/SYSTEM/CurrentControlSet/Control/Print]

sorted_tree_add: Enter

sorted_tree_add: Successfully added node [HKLM/SYSTEM/CurrentControlSet/Control/Print] to tree

sorted_tree_add: Exit

Trying to load: ldapsam

Attempting to register passdb backend smbpasswd

Successfully added passdb backend 'smbpasswd'

Attempting to register passdb backend tdbsam

Successfully added passdb backend 'tdbsam'

Attempting to register passdb backend guest

Successfully added passdb backend 'guest'

Attempting to find an passdb backend to match ldapsam (ldapsam)

No builtin backend found, trying to load plugin

Probing module ldapsam: Trying to load from /usr/local/samba/lib/pdb/ldapsam.so

Error loading module '/usr/local/samba/lib/pdb/ldapsam.so': ld.so.1: ./smbd: fatal: /usr/local/samba/lib/pdb/ldapsam.so: open failed: No such file or directory

No builtin nor plugin backend for ldapsam found

Loading ldapsam failed!

# # # # # # # # # 

The configure command I use is:

$./configure --with-ldapsam --with-krb5=/usr/lib/krb5

The config.log file contains:

configure:29377: checking how to build pdb_ldap

configure:29411: result: not

About ldap checking, config.log has:

configure:23619: checking for ldap_init in -lldap

configure:23652: gcc -o conftest -O -g -m64 -I/usr/local/BerkeleyDB.4.1/include -I/usr/local/ssl/include -D_LARGEFILE_

SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/krb5/include -L/usr/local/lib -R/usr/local/lib -L/usr/local/BerkeleyDB.4.1/li

b -R/usr/local/BerkeleyDB.4.1/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/lib -R/usr/local/lib -m64 -L/

usr/lib/krb5/lib conftest.c -lldap >&5

configure:23655: $? = 0

configure:23658: test -s conftest

configure:23661: $? = 0

configure:23672: result: yes

configure:23677: checking for ldap_domain2hostlist in -lldap

configure:23710: gcc -o conftest -O -g -m64 -I/usr/local/BerkeleyDB.4.1/include -I/usr/local/ssl/include -D_LARGEFILE_

SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/krb5/include -L/usr/local/lib -R/usr/local/lib -L/usr/local/BerkeleyDB.4.1/li

b -R/usr/local/BerkeleyDB.4.1/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/lib -R/usr/local/lib -m64 -L/

usr/lib/krb5/lib conftest.c -lldap -lldap >&5

Undefined first referenced

symbol in file

ldap_domain2hostlist /var/tmp//cciyObxi.o

ld: fatal: Symbol referencing errors. No output written to conftest

collect2: ld returned 1 exit status

configure:23713: $? = 1

configure: failed program was:

#line 23684 "configure"

#include "confdefs.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_domain2hostlist ();

#ifdef F77_DUMMY_MAIN

# ifdef __cplusplus

extern "C"

# endif

int F77_DUMMY_MAIN() { return 1; }

#endif

int

main ()

{

ldap_domain2hostlist ();

;

return 0;

}

configure:23730: result: no

configure:23869: checking for ldap_set_rebind_proc

configure:23912: gcc -o conftest -O -g -m64 -I/usr/local/BerkeleyDB.4.1/include -I/usr/local/ssl/include -D_LARGEFILE_

SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/krb5/include -L/usr/local/lib -R/usr/local/lib -L/usr/local/BerkeleyDB.4.1/li

b -R/usr/local/BerkeleyDB.4.1/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/lib -R/usr/local/lib -m64 -L/

usr/lib/krb5/lib conftest.c -lldap >&5

configure:23915: $? = 0

configure:23918: test -s conftest

configure:23921: $? = 0

configure:23931: result: yes

configure:23941: checking whether ldap_set_rebind_proc takes 3 arguments

configure:23968: gcc -c -O -g -m64 -I/usr/local/BerkeleyDB.4.1/include -I/usr/local/ssl/include -D_LARGEFILE_SOURCE -D

_FILE_OFFSET_BITS=64 -I/usr/lib/krb5/include conftest.c >&5

configure:23971: $? = 0

configure:23974: test -s conftest.o

configure:23977: $? = 0

configure:23987: result: 3

configure:23998: checking for ldap_initialize

configure:24041: gcc -o conftest -O -g -m64 -I/usr/local/BerkeleyDB.4.1/include -I/usr/local/ssl/include -D_LARGEFILE_

SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/krb5/include -L/usr/local/lib -R/usr/local/lib -L/usr/local/BerkeleyDB.4.1/li

b -R/usr/local/BerkeleyDB.4.1/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/lib -R/usr/local/lib -m64 -L/

usr/lib/krb5/lib conftest.c -lldap >&5

Undefined first referenced

symbol in file

ldap_initialize /var/tmp//ccsSb7eL.o

ld: fatal: Symbol referencing errors. No output written to conftest

collect2: ld returned 1 exit status

configure:24044: $? = 1

configure: failed program was:

#line 24003 "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;

}



---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


More information about the samba mailing list