3.0.21pre3-SVN-build-UNKNOWN libads/sasl.c fails to build on Sun
Richard Bollinger
rabollinger at gmail.com
Wed Nov 30 20:43:41 GMT 2005
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%
More information about the samba-technical
mailing list