[Samba] Compile problem on Solaris 8

William william.wilson at NAU.EDU
Mon Nov 29 22:40:15 GMT 2004

We are trying to get samba comiled with ldap support on Solaris 8. We're 
compiling version 3.0.9 with gcc 3.3.  Here's the error that we get:

Using FLAGS =  -O -I./popt -Iinclude 
-I/nau/src/Net/samba-3.0.9/source/smbwrapper  -I. -D_LARGEFILE_SOURCE 
-D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/nau/src/Net/samba-3.0.9/source
       LIBS = -lsendfile -lsec -lgen -lresolv -lsocket -lnsl -ldl
       LDSHFLAGS = -G  -lthread
       LDFLAGS = -lthread
Generating smbd/build_options.c
Building include/proto.h
creating /nau/src/Net/samba-3.0.9/source/include/proto.h
Building include/wrepld_proto.h
creating /nau/src/Net/samba-3.0.9/source/include/wrepld_proto.h
Building include/build_env.h
creating /nau/src/Net/samba-3.0.9/source/nsswitch/winbindd_proto.h
creating /nau/src/Net/samba-3.0.9/source/web/swat_proto.h
creating /nau/src/Net/samba-3.0.9/source/client/client_proto.h
creating /nau/src/Net/samba-3.0.9/source/utils/net_proto.h
Compiling dynconfig.c
In file included from include/includes.h:926,
                  from dynconfig.c:21:
include/proto.h:587: error: parse error before "LDAP_CONST"
*** Error code 1
make: Fatal error: Command failed for target `dynconfig.o'

We configured with the following: ./configure --without-bdb --disable-bdb 
--enable-null --prefix=/nau/local/samba

We've also tried: ./configure --prefix=/nau/local/samba --with-ldap 

The configure always completes but the compiles always end up with the 
error given above.

Thanks for any help.

* William Wilson - Northern AZ Univ
* william.wilson at nau.edu  *** http://jan.ucc.nau.edu/~wew

More information about the samba mailing list