[Samba] [Fwd: compile error Samba 3.0.20a Solaris 8]-solved

Xiaping Lin Xiaping.Lin at qimr.edu.au
Tue Oct 18 03:18:52 GMT 2005


Hi, 

I solved following problem by upgrading GCC from version 3.0 to 3.4.2,
and compiling samba-3.0.14a instead of 3.0.20a. 

The only problem I had during "make" with Samba-3.0.14a was:
....
Compiling smbd/server.c
Linking bin/smbd
/usr/ccs/bin/ld: illegal option -- E
....
 
Which was fixed by rename /usr/ccs/bin/ld to ld.sun.

With newer version of GCC, I still have following error when "make"
Samba-3.0.20a.

include/proto.h:1:1: unterminated #ifndef
make: *** [dynconfig.o] Error 1

What has changed in version 3.0.20a since 3.0.14a that causes above error?

Thanks,

Xiaping


-----Forwarded Message-----
From: Xiaping Lin <xiapingL at qimr.edu.au>
To: samba at lists.samba.org
Subject: compile error Samba 3.0.20a Solaris 8
Date: Mon, 17 Oct 2005 12:09:05 +1000

Hi, All

I am having error compiling Samba 3.2.10a on a Solaris 8 box, using gcc
version 3.0.

./configure --prefix=/usr/local/samba-3.0.20a --with-pam
--with-pam_smbpass --with-automount --with-quotas --with-acl-support
--with-winbind --with-ldap --with-ads

I got following:

Using FLAGS =  -I/usr/local/include -Wall -D_SAMBA_BUILD_ -I./popt
-Iinclude -I/opt/local/software/samba/samba-3.0.20a/source/include
-I/opt/local/software/samba/samba-3.0.20a/source/ubiqx  -I.
-I/usr/local/include -D_LARGEFILE_SOURCE -D_REENTRANT
-D_FILE_OFFSET_BITS=64 -I/opt/local/software/samba/samba-3.0.20a/source
-I/opt/local/software/samba/samba-3.0.20a/source/tdb
      LIBS = -lsec -lgen -lresolv -lsocket -lnsl
      LDSHFLAGS = -G  -L/usr/local/lib -R/usr/local/lib -lthread
      LDFLAGS = -L/usr/local/lib -R/usr/local/lib -lthread
      PIE_CFLAGS =
      PIE_LDFLAGS =
Generating smbd/build_options.c
Building include/proto.h
creating /opt/local/software/samba/samba-3.0.20a/source/include/proto.h
..........
.....
creating /opt/local/software/samba/samba-3.0.20a/source/web/swat_proto.h
nawk: can't open file
web/cgi.cnweb/diagnose.cnweb/startstop.cnweb/statuspage.cnweb/swat.cnweb/neg_lang.c
 source line number 13
creating
/opt/local/software/samba/samba-3.0.20a/source/client/client_proto.h
nawk: can't open file client/client.cnclient/clitar.c
 source line number 13
creating
/opt/local/software/samba/samba-3.0.20a/source/utils/net_proto.h
nawk: can't open file
utils/net.cnutils/net_ads.cnutils/net_ads_cldap.cnutils/net_help.cnutils/net_rap.cnutils/net_rpc.cnutils/net_rpc_samsync.cnutils/net_rpc_join.cnutils/net_time.cnutils/net_lookup.cnutils/net_cache.cnutils/net_groupmap.cnutils/net_idmap.cnutils/net_status.cnutils/net_rpc_printer.cnutils/net_rpc_rights.cnutils/net_rpc_service.cnutils/net_rpc_registry.c
 source line number 13
Compiling dynconfig.c
In file included from nsswitch/winbind_nss_solaris.h:54,
                 from nsswitch/winbind_nss.h:34,
                 from nsswitch/winbind_nss_config.h:79,
                 from nsswitch/winbind_client.h:1,
                 from include/includes.h:944,
                 from dynconfig.c:21:
/usr/include/nss_dbdefs.h:375: parse error before "projid_t"
/usr/include/nss_dbdefs.h:400: parse error before '}' token
/usr/include/nss_dbdefs.h:419: field `key' has incomplete type
In file included from include/includes.h:1000,
                 from dynconfig.c:21:
include/proto.h:1:1: unterminated #ifndef
make: *** [dynconfig.o] Error 1

I found similar problem posted to this list(URL below). But can't found
any answer.
http://lists.samba.org/archive/samba-technical/2004-June/036249.html

Help!!

Thanks in advance.

Xiaping



More information about the samba mailing list