Bug 6462 - Problems Making Samba 3.4.0pre2 on Solaris 10 x86
Problems Making Samba 3.4.0pre2 on Solaris 10 x86
Status: RESOLVED INVALID
Product: Samba 3.4
Classification: Unclassified
Component: Build environment
unspecified
x86 Solaris
: P3 normal
: ---
Assigned To: Björn Jacke
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-10 12:32 UTC by Ralf Schwiete
Modified: 2009-06-16 09:54 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Schwiete 2009-06-10 12:32:29 UTC
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
Comment 1 Ralf Schwiete 2009-06-16 09:54:34 UTC
After patching and booting the Solaris, it works. Don't know why...