3.0.21pre3-SVN-build-UNKNOWN libads/sasl.c fails to build on Sun

Richard Bollinger rabollinger at gmail.com
Fri Dec 2 18:38:58 GMT 2005


On 11/30/05, Richard Bollinger <rabollinger at gmail.com> wrote:
> The problem seems to be a different spelling of a symbol defined in
> Sun's ldap.h vs what Samba is looking for:
> % grep LDAP_SASL_BIND_IN /usr/include/ldap.h
> #define LDAP_SASL_BIND_INPROGRESS 0x0e
>
> % grep LDAP_SASL_BIND_IN include/*.h
> include/smb_ldap.h: LDAP_SASL_BIND_IN_PROGRESS = 0x0e,
>
> Compile Environment:
> SS10.rab:/u/rab% uname -a
> SunOS SS10 5.8 Generic_117350-24 sun4u sparc SUNW,Ultra-2
> SS10.rab:/u/rab% cc -V
> cc: WorkShop Compilers 5.0 98/12/15 C 5.0
>
> Error Message:
> SS10.rab:/home/svsrc/samba_3_0/samba-3.0.21pre3-SVN-build-UNKNOWN-cc/source.Solaris%
> make
> Using FLAGS =  -DIPPORT_KERMIT=1023 -D_SAMBA_BUILD_ -I./popt -Iinclude
> -I/home/svsrc/samba_3_0/samba-3.0.21pre3-SVN-build-UNKNOWN-cc/source.Solaris/include
> -I/home/svsrc/samba_3_0/samba-3.0.21pre3-SVN-build-UNKNOWN-cc/source.Solaris/ubiqx
> -I/home/svsrc/samba_3_0/samba-3.0.21pre3-SVN-build-UNKNOWN-cc/source.Solaris/tdb
>  -I. -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64
> -DLDAP_DEPRECATED -DSUNOS5
> -I/home/svsrc/samba_3_0/samba-3.0.21pre3-SVN-build-UNKNOWN-cc/source.Solaris
> -D_SAMBA_BUILD_
>      LIBS = -lsendfile -lresolv -lnsl -lsocket -ldl
>      LDSHFLAGS = -G -DIPPORT_KERMIT=1023 -D_SAMBA_BUILD_  -s -lthread
>      LDFLAGS = -s -lthread
>      PIE_CFLAGS =
>      PIE_LDFLAGS =
> Compiling libads/sasl.c
> "libads/sasl.c", line 81: undefined symbol: LDAP_SASL_BIND_IN_PROGRESS
> "libads/sasl.c", line 104: undefined symbol: LDAP_SASL_BIND_IN_PROGRESS
> "libads/sasl.c", line 129: undefined symbol: LDAP_SASL_BIND_IN_PROGRESS
> "libads/sasl.c", line 137: cannot recover from previous errors
> cc: acomp failed for libads/sasl.c
> *** Error code 2
> make: Fatal error: Command failed for target `libads/sasl.o'
> SS10.rab:/home/svsrc/samba_3_0/samba-3.0.21pre3-SVN-build-UNKNOWN-cc/source.Solaris%
>

It seems that my native build environment is too broken or old with
respect to LDAP to overcome this and other errors that arose trying to
compile and link, so I've given up for now and used "configure
--without-ldap" to get past it.

Other errors included a missing define for LDAPS_PORT (my
/usr/include/ldap.h spelled that as SSL_LDAP_PORT), and missing
library routines ber_memfree and ldap_unbind_ext.


More information about the samba-technical mailing list