problem compiling on tru64 unix w/ gcc & native compiler

Robert Carsey rcarsey at monmouth.edu
Thu Jan 17 07:49:11 GMT 2002


Downloaded the latest CVS (10am EST 1/17/02) and tried compiling on a
Tru64 UNIX v5.1 (alphaev56-dec-osf5.1) using  GCC v3.0.3 and then
Digital's compiler (see below).

I encounted a couple problems - of which may be related.  

After doing a  ./configure,  I noticed that a core file was generated
from 'conftest'

Ignoring that, I proceeded to do a 'make' and got the following error:

Using FLAGS =  -O  -Iinclude -I./include -I./ubiqx -I./smbwrapper
-DLOGFILEBASE
="/usr/local/samba/var" -DCONFIGFILE="/usr/local/samba/lib/smb.conf"
-DLMHOSTSFI
LE="/usr/local/samba/lib/lmhosts"   -DSWATDIR="/usr/local/samba/swat"
-DSBINDIR=
"/usr/local/samba/bin" -DLOCKDIR="/usr/local/samba/var/locks"
-CODEPAGEDIR="/usr/local/samba/lib/codepages"
-DDRIVERFILE="/usr/local/samba/lib/printers.def" -D
BINDIR="/usr/local/samba/bin"  -DHAVE_INCLUDES_H
-DPASSWD_PROGRAM="/bin/passwd"
-DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd"
-DTDB_PASSWD_FILE="/usr/local/samba/private/smbpasswd.tdb"
Using FLAGS32 =  -O  -Iinclude -I./include -I./ubiqx -I./smbwrapper
-DLOGFILEBA
SE="/usr/local/samba/var" -DCONFIGFILE="/usr/local/samba/lib/smb.conf"
-DLMHOSTS
FILE="/usr/local/samba/lib/lmhosts"   -DSWATDIR="/usr/local/samba/swat"
-DSBINDI
R="/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"  -DHAVE_INCLUDES_H
-DPASSWD_PROGRAM="/bin/passwd
" -DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd"
-DTDB_PASSWD_FILE="/usr
/local/samba/private/smbpasswd.tdb"
Using LIBS = -lsecurity
Compiling smbd/server.c
Compiling smbd/files.c
Compiling smbd/chgpasswd.c
Compiling smbd/connection.c
Compiling smbd/utmp.c
Compiling smbd/session.c
Compiling smbd/dfree.c
Compiling smbd/dir.c
smbd/dir.c:625:70: macro "stat" passed 3 arguments, but takes just 2
smbd/dir.c:684:13: macro "stat" passed 3 arguments, but takes just 2
*** Exit 1
Stop.
#
------------------------------------------------------
On the same server, I also tried using Digital's C compiler which comes
with the OS (Compaq C V6.3-028 on Compaq Tru64 UNIX V5.1 (Rev. 732)).

In this case, I got a bit further.

.
.
.
Compiling libsmb/cliconnect.c
Compiling libsmb/clifile.c
Compiling libsmb/clirap.c
Compiling libsmb/clierror.c
cc: Error: libsmb/clierror.c, line 181: In the initializer for
nt_errno_map[0].s
tatus.v, "NTSTATUS" is a struct type, which is not scalar.
(needscalartyp)
        {NT_STATUS_ACCESS_VIOLATION, EACCES},
---------^
cc: Error: libsmb/clierror.c, line 182: In the initializer for
nt_errno_map[1].s
tatus.v, "NTSTATUS" is a struct type, which is not scalar.
(needscalartyp)
        {NT_STATUS_NO_SUCH_FILE, ENOENT},
---------^
cc: Error: libsmb/clierror.c, line 183: In the initializer for
nt_errno_map[2].s
tatus.v, "NTSTATUS" is a struct type, which is not scalar.
(needscalartyp)
        {NT_STATUS_NO_SUCH_DEVICE, ENODEV},
---------^
cc: Error: libsmb/clierror.c, line 184: In the initializer for
nt_errno_map[3].s
tatus.v, "NTSTATUS" is a struct type, which is not scalar.
(needscalartyp)
.
.
.
cc: Error: libsmb/clierror.c, line 191: In the initializer for
nt_errno_map[10].
status.v, "NTSTATUS" is a struct type, which is not scalar.
(needscalartyp)
        {NT_STATUS_PATH_NOT_COVERED, ENOENT},
---------^
cc: Error: libsmb/clierror.c, line 192: In the initializer for
nt_errno_map[11].
status.v, "NTSTATUS" is a struct type, which is not scalar.
(needscalartyp)
        {NT_STATUS(0), 0}
---------^
*** Exit 1
Stop.


Let me know if anyone needs further information or wants me to email the
core file to them.  I realize that this is development, but my
production environment is suffering [every day] from the LOGIC_ERROR
locking problem which was fixed in cvs.

--Robert





More information about the samba-technical mailing list