Hi,

I'm trying to build Samba 3.2.4 on Solaris 10 using the Sun Studio 12 compiler, but configure keeps dying at:

checking for LDAP support... auto
checking ldap.h usability... yes
checking ldap.h presence... yes
checking for ldap.h... yes
checking lber.h usability... yes
checking lber.h presence... yes
checking for lber.h... yes
checking for ber_tag_t... yes
checking for ber_scanf in -llber... no
checking for ber_sockbuf_add_io... no
checking for LDAP_OPT_SOCKBUF... yes
checking for LBER_OPT_LOG_PRINT_FN... yes
checking for ldap_init in -lldap... no
checking for ldap_set_rebind_proc... no
checking whether ldap_set_rebind_proc takes 3 arguments... 3
checking for ldap_initialize... no
configure: WARNING: libldap is needed for LDAP support
checking for Active Directory and krb5 support... yes
configure: error: Active Directory Support requires LDAP support

Looking at the config.log, I see this:

configure:54440: cc -o conftest -O -D_SAMBA_BUILD_=3 -I/opt/openldap/include -I/usr/sfw/include -I/usr/include -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -I/usr/include -L/opt/openldap/lib -R/opt/openldap/lib -R/../lib -L/usr/sfw/lib/sparcv9 -R/usr/sfw/lib/sparcv9 -lthread -L./bin -L/usr/lib conftest.c -llber -lresolv -lumem -lnsl -lsocket >&5
"conftest.c", line 474: warning: statement not reached
ld: fatal: file /opt/openldap/lib/liblber.so: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to conftest
configure:54446: $? = 1

I'm compiling this 64-bit, but my CFLAGS variable is gone.  It should be:

CFLAGS="-g -O -mt -m64 -xarch=sparcvis -xcode=pic32 -xpagesize=4m -xbuiltin -xlibmil -xlibmopt -xlic_lib=sunperf"

I could see it earlier in the log during some of the tests, but it seems to have disappeared. Is this a bug? Is there a fix or a way to work around this?

Also, unrelated to my problem, I'm getting this warning:

checking netinet/ip.h usability... no
checking netinet/ip.h presence... yes
configure: WARNING: netinet/ip.h: present but cannot be compiled
configure: WARNING: netinet/ip.h: check for missing prerequisite headers?
configure: WARNING: netinet/ip.h: see the Autoconf documentation
configure: WARNING: netinet/ip.h: section "Present But Cannot Be Compiled"
configure: WARNING: netinet/ip.h: proceeding with the preprocessor's result
configure: WARNING: netinet/ip.h: in the future, the compiler will take precedence
configure: WARNING:     ## ---------------------------------------- ##
configure: WARNING:     ## Report this to [EMAIL PROTECTED] ##
configure: WARNING:     ## ---------------------------------------- ##
checking for netinet/ip.h... yes

Thanks.

        -John

--
John Center
Villanova University
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Reply via email to