[Samba] Warnings compiling on SOlaris 9

Steve Kennedy steve at gbnet.org
Sun Mar 9 23:49:47 GMT 2003


Sun Forte C (6.2), Solaris 9 sparc. CVS (2_2) as of Fri.

Errors listed


CC=cc ./configure  --with-readline=/usr/local/ --with-quotas --with-utmp --with-acl-support --with-syslog --with-libsmbclient --with-automount --without-winbind

Using FLAGS =  -O  -I./popt -Iinclude -I./include -I./ubiqx -I./smbwrapper -I/usr/local//include -I/usr/local//include  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLOGFILEBASE="/usr/local/samba/var" -DCONFIGFILE="/usr/local/samba/lib/smb.conf" -DLMHOSTSFILE="/usr/local/samba/lib/lmhosts"   -DSWATDIR="/usr/local/samba/swat" -DSBINDIR="/usr/local/samba/bin" -DLOCKDIR="/usr/local/samba/var/locks" -DCODEPAGEDIR="/usr/local/samba/lib/codepages" -DDRIVERFILE="/usr/local/samba/lib/printers.def" -DBINDIR="/usr/local/samba/bin" -DPIDDIR="/usr/local/samba/var/locks" -DLIBDIR="/usr/local/samba/lib" -DHAVE_INCLUDES_H -DPASSWD_PROGRAM="/usr/bin/passwd" -DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd" -DTDB_PASSWD_FILE="/usr/local/samba/private/smbpasswd.tdb"
Using FLAGS32 =  -O  -I./popt -Iinclude -I./include -I./ubiqx -I./smbwrapper -I/usr/local//include -I/usr/local//include  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLOGFILEBASE="/usr/local/samba/var" -DCONFIGFILE="/usr/local/samba/lib/smb.conf" -DLMHOSTSFILE="/usr/local/samba/lib/lmhosts"   -DSWATDIR="/usr/local/samba/swat" -DSBINDIR="/usr/local/samba/bin" -DLOCKDIR="/usr/local/samba/var/locks" -DCODEPAGEDIR="/usr/local/samba/lib/codepages" -DDRIVERFILE="/usr/local/samba/lib/printers.def" -DBINDIR="/usr/local/samba/bin" -DPIDDIR="/usr/local/samba/var/locks" -DLIBDIR="/usr/local/samba/lib" -DHAVE_INCLUDES_H -DPASSWD_PROGRAM="/usr/bin/passwd" -DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd" -DTDB_PASSWD_FILE="/usr/local/samba/private/smbpasswd.tdb"
Using LIBS = -lsec -lgen -lsocket -lnsl  -ldl

Build Errors below: -

Compiling rpc_parse/parse_spoolss.c
"rpc_parse/parse_spoolss.c", line 1209: warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char
"rpc_parse/parse_spoolss.c", line 6666: warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char

Compiling passdb/secrets.c
"passdb/secrets.c", line 59: warning: assignment type mismatch:
        pointer to char "=" pointer to const char
"passdb/secrets.c", line 74: warning: assignment type mismatch:
        pointer to char "=" pointer to const char
"passdb/secrets.c", line 76: warning: assignment type mismatch:
        pointer to char "=" pointer to const void
"passdb/secrets.c", line 89: warning: assignment type mismatch:
        pointer to char "=" pointer to const char

Compiling lib/util_str.c
"lib/util_str.c", line 104: warning: assignment type mismatch:
        pointer to char "=" pointer to const char

Compiling lib/util.c
"lib/util.c", line 62: warning: initializer does not fit or is out of range: -1

Compiling tdb/tdbutil.c
"tdb/tdbutil.c", line 46: warning: argument #1 is incompatible with prototype:
        prototype: pointer to int : "include/../tdb/tdb.h", line 130
        argument : pointer to volatile int
"tdb/tdbutil.c", line 73: warning: assignment type mismatch:
        pointer to char "=" pointer to const char
"tdb/tdbutil.c", line 87: warning: assignment type mismatch:
        pointer to char "=" pointer to const char
"tdb/tdbutil.c", line 103: warning: assignment type mismatch:
        pointer to char "=" pointer to const char
"tdb/tdbutil.c", line 134: warning: assignment type mismatch:
        pointer to char "=" pointer to const char
"tdb/tdbutil.c", line 162: warning: assignment type mismatch:
        pointer to char "=" pointer to const char
"tdb/tdbutil.c", line 194: warning: assignment type mismatch:
        pointer to char "=" pointer to const char
"tdb/tdbutil.c", line 224: warning: assignment type mismatch:
        pointer to char "=" pointer to const char
"tdb/tdbutil.c", line 242: warning: assignment type mismatch:
        pointer to char "=" pointer to const char

Compiling smbd/quotas.c
"smbd/quotas.c", line 404: warning: argument #2 is incompatible with prototype:
        prototype: pointer to int : "/usr/include/rpc/xdr.h", line 386
        argument : pointer to unsigned int
"smbd/quotas.c", line 408: warning: argument #2 is incompatible with prototype:
        prototype: pointer to int : "/usr/include/rpc/xdr.h", line 386
        argument : pointer to unsigned int
"smbd/quotas.c", line 412: warning: argument #2 is incompatible with prototype:
        prototype: pointer to int : "/usr/include/rpc/xdr.h", line 386
        argument : pointer to unsigned int

Compiling libsmb/libsmbclient.c with -KPIC
"libsmb/libsmbclient.c", line 144: warning: argument #1 is incompatible with prototype:
        prototype: pointer to pointer to const char : "include/proto.h", line 1328
        argument : pointer to pointer to char
"libsmb/libsmbclient.c", line 150: warning: argument #1 is incompatible with prototype:
        prototype: pointer to pointer to const char : "include/proto.h", line 1328
        argument : pointer to pointer to char
"libsmb/libsmbclient.c", line 156: warning: argument #1 is incompatible with prototype:
        prototype: pointer to pointer to const char : "include/proto.h", line 1328
        argument : pointer to pointer to char
"libsmb/libsmbclient.c", line 175: warning: argument #1 is incompatible with prototype:
        prototype: pointer to pointer to const char : "include/proto.h", line 1328
        argument : pointer to pointer to char
"libsmb/libsmbclient.c", line 183: warning: argument #1 is incompatible with prototype:
        prototype: pointer to pointer to const char : "include/proto.h", line 1328
        argument : pointer to pointer to char
"libsmb/libsmbclient.c", line 1118: warning: argument #4 is incompatible with prototype:
        prototype: pointer to unsigned long long : "include/proto.h", line 303
        argument : pointer to unsigned int
"libsmb/libsmbclient.c", line 1356: warning: argument #4 is incompatible with prototype:
        prototype: pointer to unsigned long long : "include/proto.h", line 303
        argument : pointer to unsigned int

Compiling lib/util_str.c with -KPIC
"lib/util_str.c", line 104: warning: assignment type mismatch:
        pointer to char "=" pointer to const char

Compiling lib/util.c with -KPIC
"lib/util.c", line 62: warning: initializer does not fit or is out of range: -1

Compiling tdb/tdbutil.c with -KPIC
"tdb/tdbutil.c", line 46: warning: argument #1 is incompatible with prototype:
        prototype: pointer to int : "include/../tdb/tdb.h", line 130
        argument : pointer to volatile int
"tdb/tdbutil.c", line 73: warning: assignment type mismatch:
        pointer to char "=" pointer to const char
"tdb/tdbutil.c", line 87: warning: assignment type mismatch:
        pointer to char "=" pointer to const char
"tdb/tdbutil.c", line 103: warning: assignment type mismatch:
        pointer to char "=" pointer to const char
"tdb/tdbutil.c", line 134: warning: assignment type mismatch:
        pointer to char "=" pointer to const char
"tdb/tdbutil.c", line 162: warning: assignment type mismatch:
        pointer to char "=" pointer to const char
"tdb/tdbutil.c", line 194: warning: assignment type mismatch:
        pointer to char "=" pointer to const char
"tdb/tdbutil.c", line 224: warning: assignment type mismatch:
        pointer to char "=" pointer to const char
"tdb/tdbutil.c", line 242: warning: assignment type mismatch:
        pointer to char "=" pointer to const char

Installing libsmbclient as /usr/local/samba/bin/libsmbclient
cp: cannot access libsmbclient
chmod: WARNING: can't access /usr/local/samba/bin/libsmbclient

Steve

-- 
home steve at gbnet.org
NetTek Ltd    tel/fax +44-(0)207 483 2455
Email to SMS steve - pager (at) gbnet dot net


More information about the samba mailing list