[Samba] Compilation problem 3.0.21rc2 Solaris 2.5.1 / Sparc + Sun CC

Pierre Lebrun ple001 at artic.fr
Tue Dec 6 09:21:43 GMT 2005

Hi Samba Geeks,

I experience problems with unknown uint32_t type while
building 3.0.21rc2 on Solaris 2.5.1 / Sparc + Sun CC.
(cc: WorkShop Compilers 5.0 98/12/15 C 5.0)

./configure --with-acl-support --with-ldap=no --disable-cups 
--enable-static=yes --with-included-popt

artdev.develo.onconfig.00 ) make
Using FLAGS =  -O -D_SAMBA_BUILD_ -I./popt -Iinclude
-I. -I/usr/local/include -I /usr/include
       LIBS = -lresolv -lnsl -lsocket -ldl -liconv
       LDSHFLAGS = -G -O -D_SAMBA_BUILD_  -L/usr/local/lib
       LDFLAGS = -L/usr/local/lib
       PIE_CFLAGS =
       PIE_LDFLAGS =
Generating smbd/build_options.c
Building include/proto.h
creating /usr/local/tmp/samba-3.0.21rc2/source/include/proto.h
Building include/wrepld_proto.h
creating /usr/local/tmp/samba-3.0.21rc2/source/include/wrepld_proto.h
Building include/build_env.h
creating /usr/local/tmp/samba-3.0.21rc2/source/nsswitch/winbindd_proto.h
creating /usr/local/tmp/samba-3.0.21rc2/source/web/swat_proto.h
creating /usr/local/tmp/samba-3.0.21rc2/source/client/client_proto.h
creating /usr/local/tmp/samba-3.0.21rc2/source/utils/net_proto.h
Compiling dynconfig.c
"include/rpc_netlogon.h", line 949: syntax error before or at: uint32_t
"include/rpc_netlogon.h", line 949: cannot recover from previous errors
cc: acomp failed for /usr/local/tmp/samba-3.0.21rc2/source/dynconfig.c
*** Error code 2
make: Fatal error: Command failed for target `dynconfig.o'

include/rpc_netlogon.h line 949 is the last struct line of
typedef struct net_q_dsr_getdcname {
    uint32 ptr_server_unc;
    UNISTR2 uni_server_unc;
    uint32 ptr_domain_name;
    UNISTR2 uni_domain_name;
    uint32 ptr_domain_guid;
    struct uuid *domain_guid;
    uint32 ptr_site_guid;
    struct uuid *site_guid;
    uint32_t flags;

uint32_t is defined in /usr/local/include/inttypes.h, and 
/usr/local/include is a member of FLAGS environment variable.

In ./include/config.h, HAVE_INTTYPES_H is not defined while
it should be because I have inttypes.h in /usr/local/include.
/* Define to 1 if you have the <inttypes.h> header file. */
/* #undef HAVE_INTTYPES_H */

I did not have this problem with 3.0.20b.
Did I do something wrong ?

Thank you very much for your help.


More information about the samba mailing list