Hello, I tried to build Samba 3.4.0pre2 on Solars and get following error: make Using CFLAGS = -I/opt/sfw/include -O -I. -I/tmp/BUILD/samba-3.4.0pre2/source3 -I/tmp/BUILD/samba-3.4.0pre2/source3/../lib/popt -I/tmp/BUILD/samba-3.4.0pre2/source3/iniparser/src -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/talloc -I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc -I./.. -DHAVE_CONFIG_H -I/opt/sfw/include -I/opt/sfw/include -I/usr/sfw/include -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DLDAP_DEPRECATED -DSUNOS5 -I/tmp/BUILD/samba-3.4.0pre2/source3/lib -I.. -I../source4 -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 PICFLAG = -fPIC LIBS = -lsendfile -lresolv -lrt -lnsl -lsocket -liconv LDFLAGS = -pie -L/opt/sfw/lib -R/opt/sfw/lib -L/opt/sfw/lib -L/usr/sfw/lib -lthread -L./bin DYNEXP = LDSHFLAGS = -G -L/opt/sfw/lib -R/opt/sfw/lib -L/opt/sfw/lib -L/usr/sfw/lib -lthread -L./bin SHLIBEXT = so SONAMEFLAG = -Wl,-soname= [...] Compiling libnet/libnet_samsync_ldif.c libnet/libnet_samsync_ldif.c: In function `fetch_sam_entry_ldif': libnet/libnet_samsync_ldif.c:1096: error: syntax error before "struct" The following command failed: gcc -I/opt/sfw/include -O -I. -I/tmp/BUILD/samba-3.4.0pre2/source3 -I/tmp/BUILD/samba-3.4.0pre2/source3/../lib/popt -I/tmp/BUILD/samba-3.4.0pre2/source3/iniparser/src -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/talloc -I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc -I./.. -DHAVE_CONFIG_H -I/opt/sfw/include -I/opt/sfw/include -I/usr/sfw/include -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DLDAP_DEPRECATED -DSUNOS5 -I/tmp/BUILD/samba-3.4.0pre2/source3/lib -I.. -I../source4 -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC -c libnet/libnet_samsync_ldif.c -o libnet/libnet_samsync_ldif.o make: *** [libnet/libnet_samsync_ldif.o] Error 1 configure parameters: ./configure --prefix=${PREFIX} \ --disable-swat \ --with-krb5=/opt/sfw \ --with-quotas \ --with-lockdir=/var/opt/log/samba/lock \ --with-piddir=/var/opt/log/samba \ --with-logfilebase=/var/opt/log/samba \ --with-privatedir=/var/opt/log/samba/lock/private \ --with-configdir=${CONFIGDIR} \ --with-winbind \ --with-acl-support \ --with-ads \ --with-utmp \ --with-libsmbclient \ --with-included-popt \ --with-aio-support=no \ --with-ldap=/opt/sfw \ --enable-external-libtalloc=no \ --with-pam=yes compiler: gcc -v Reading specs from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77 Thread model: posix gcc version 3.4.6 Solaris-Version: SunOS afxta080 5.10 Generic_139556-08 i86pc i386 i86pc It also fails with the SunOne Compiler (same error). Thankyou, Ralf
After patching and booting the Solaris, it works. Don't know why...