Compiling samba1.9.18p4.tar.gz

Brian Hall brihall at pcisys.net
Sat Mar 28 01:59:11 GMT 1998


Since I am running Linux kernel 2.1.90, I downloaded and tried to compile samba
in order to get a version of smbmount that would work with this kernel. When I
try to compile it on my RH5 glibc machine, I get the following errors, what am
I doing wrong? I have edited the makefile as instructed. I uncommented the line
for smbmount & etc. I tried each of the RH5/glibc lines, with exactly the same
results.


Using CFLAGS = -O2 -DSMBLOGFILE="/usr/local/samba/var/log.smb"
-DNMBLOGFILE="/usr/local/samba/var/log.nmb" -DCONFIGFILE="/usr/l
ocal/samba/lib/smb.conf" -DLMHOSTSFILE="/usr/local/samba/lib/lmhosts"
-DWEB_ROOT="/usr/local/samba" -DLOCKDIR="/usr/local/samba
/var/locks" -DSMBRUN="/usr/local/samba/bin/smbrun"
-DCODEPAGEDIR="/usr/local/samba/lib/codepages" -DWORKGROUP="HOME" -DGUEST_AC
COUNT="nobody" -DDRIVERFILE="/usr/local/samba/lib/printers.def" -DLINUX
-DQUOTAS -DNO_ASMSIGNALH -DGLIBC2 -DFAST_SHARE_MODES   
     -DSMB_PASSWD="/usr/local/samba/bin/smbpasswd"
-DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd" 
Using LIBS =  -L/lib/libc5-compat -lcrypt     
Compiling smbmnt.c
In file included from /usr/include/linux/net.h:21,
                 from /usr/include/linux/fs.h:15,
                 from smbmnt.c:30:
/usr/include/linux/socket.h:59: warning: `CMSG_NXTHDR' redefined
/usr/include/socketbits.h:160: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:63: warning: `CMSG_DATA' redefined
/usr/include/socketbits.h:156: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:70: warning: `CMSG_FIRSTHDR' redefined
/usr/include/socketbits.h:163: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:120: warning: `SOCK_STREAM' redefined
/usr/include/socketbits.h:40: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:121: warning: `SOCK_DGRAM' redefined
/usr/include/socketbits.h:43: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:122: warning: `SOCK_RAW' redefined
/usr/include/socketbits.h:45: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:123: warning: `SOCK_RDM' redefined
/usr/include/socketbits.h:47: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:124: warning: `SOCK_SEQPACKET' redefined
/usr/include/socketbits.h:50: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:125: warning: `SOCK_PACKET' redefined
/usr/include/socketbits.h:54: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:132: warning: `AF_UNSPEC' redefined
/usr/include/socketbits.h:74: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:133: warning: `AF_UNIX' redefined
/usr/include/socketbits.h:76: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:134: warning: `AF_LOCAL' redefined
/usr/include/socketbits.h:75: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:135: warning: `AF_INET' redefined
/usr/include/socketbits.h:78: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:136: warning: `AF_AX25' redefined
/usr/include/socketbits.h:79: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:137: warning: `AF_IPX' redefined
/usr/include/socketbits.h:80: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:138: warning: `AF_APPLETALK' redefined
/usr/include/socketbits.h:81: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:139: warning: `AF_NETROM' redefined
/usr/include/socketbits.h:82: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:140: warning: `AF_BRIDGE' redefined
/usr/include/socketbits.h:83: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:141: warning: `AF_AAL5' redefined
/usr/include/socketbits.h:84: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:142: warning: `AF_X25' redefined
/usr/include/socketbits.h:85: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:143: warning: `AF_INET6' redefined
/usr/include/socketbits.h:86: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:153: warning: `AF_MAX' redefined
/usr/include/socketbits.h:87: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:156: warning: `PF_UNSPEC' redefined
/usr/include/socketbits.h:58: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:157: warning: `PF_UNIX' redefined
/usr/include/socketbits.h:60: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:158: warning: `PF_LOCAL' redefined
/usr/include/socketbits.h:59: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:159: warning: `PF_INET' redefined
/usr/include/socketbits.h:62: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:160: warning: `PF_AX25' redefined
/usr/include/socketbits.h:63: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:161: warning: `PF_IPX' redefined
/usr/include/socketbits.h:64: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:162: warning: `PF_APPLETALK' redefined
/usr/include/socketbits.h:65: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:163: warning: `PF_NETROM' redefined
/usr/include/socketbits.h:66: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:164: warning: `PF_BRIDGE' redefined
/usr/include/socketbits.h:67: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:165: warning: `PF_AAL5' redefined
/usr/include/socketbits.h:68: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:166: warning: `PF_X25' redefined
/usr/include/socketbits.h:69: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:167: warning: `PF_INET6' redefined
/usr/include/socketbits.h:70: warning: this is the location of the previous
definition
/usr/include/linux/socket.h:178: warning: `PF_MAX' redefined
/usr/include/socketbits.h:71: warning: this is the location of the previous
definition
In file included from /usr/include/linux/fs.h:20,
                 from smbmnt.c:30:
/usr/include/linux/stat.h:10: warning: `S_IFMT' redefined
/usr/include/sys/stat.h:35: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:11: warning: `S_IFSOCK' redefined
/usr/include/sys/stat.h:44: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:12: warning: `S_IFLNK' redefined
/usr/include/sys/stat.h:41: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:13: warning: `S_IFREG' redefined
/usr/include/sys/stat.h:39: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:14: warning: `S_IFBLK' redefined
/usr/include/sys/stat.h:38: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:15: warning: `S_IFDIR' redefined
/usr/include/sys/stat.h:36: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:16: warning: `S_IFCHR' redefined
/usr/include/sys/stat.h:37: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:17: warning: `S_IFIFO' redefined
/usr/include/sys/stat.h:47: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:18: warning: `S_ISUID' redefined
/usr/include/sys/stat.h:75: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:19: warning: `S_ISGID' redefined
/usr/include/sys/stat.h:76: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:20: warning: `S_ISVTX' redefined
/usr/include/sys/stat.h:80: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:22: warning: `S_ISLNK' redefined
/usr/include/sys/stat.h:65: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:23: warning: `S_ISREG' redefined
/usr/include/sys/stat.h:58: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:24: warning: `S_ISDIR' redefined
/usr/include/sys/stat.h:55: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:25: warning: `S_ISCHR' redefined
/usr/include/sys/stat.h:56: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:26: warning: `S_ISBLK' redefined
/usr/include/sys/stat.h:57: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:27: warning: `S_ISFIFO' redefined
/usr/include/sys/stat.h:60: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:28: warning: `S_ISSOCK' redefined
/usr/include/sys/stat.h:68: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:30: warning: `S_IRWXU' redefined
/usr/include/sys/stat.h:87: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:31: warning: `S_IRUSR' redefined
/usr/include/sys/stat.h:83: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:32: warning: `S_IWUSR' redefined
/usr/include/sys/stat.h:84: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:33: warning: `S_IXUSR' redefined
/usr/include/sys/stat.h:85: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:35: warning: `S_IRWXG' redefined
/usr/include/sys/stat.h:99: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:36: warning: `S_IRGRP' redefined
/usr/include/sys/stat.h:95: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:37: warning: `S_IWGRP' redefined
/usr/include/sys/stat.h:96: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:38: warning: `S_IXGRP' redefined
/usr/include/sys/stat.h:97: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:40: warning: `S_IRWXO' redefined
/usr/include/sys/stat.h:105: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:41: warning: `S_IROTH' redefined
/usr/include/sys/stat.h:101: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:42: warning: `S_IWOTH' redefined
/usr/include/sys/stat.h:102: warning: this is the location of the previous
definition
/usr/include/linux/stat.h:43: warning: `S_IXOTH' redefined
/usr/include/sys/stat.h:103: warning: this is the location of the previous
definition
In file included from smbmnt.c:30:
/usr/include/linux/fs.h:99: warning: `MS_RMT_MASK' redefined
/usr/include/sys/mount.h:51: warning: this is the location of the previous
definition
/usr/include/linux/fs.h:104: warning: `MS_MGC_VAL' redefined
/usr/include/sys/mount.h:56: warning: this is the location of the previous
definition
/usr/include/linux/fs.h:131: warning: `BLKROSET' redefined
/usr/include/sys/mount.h:64: warning: this is the location of the previous
definition
/usr/include/linux/fs.h:132: warning: `BLKROGET' redefined
/usr/include/sys/mount.h:65: warning: this is the location of the previous
definition
/usr/include/linux/fs.h:133: warning: `BLKRRPART' redefined
/usr/include/sys/mount.h:66: warning: this is the location of the previous
definition
/usr/include/linux/fs.h:134: warning: `BLKGETSIZE' redefined
/usr/include/sys/mount.h:67: warning: this is the location of the previous
definition
/usr/include/linux/fs.h:135: warning: `BLKFLSBUF' redefined
/usr/include/sys/mount.h:68: warning: this is the location of the previous
definition
/usr/include/linux/fs.h:136: warning: `BLKRASET' redefined
/usr/include/sys/mount.h:69: warning: this is the location of the previous
definition
/usr/include/linux/fs.h:137: warning: `BLKRAGET' redefined
/usr/include/sys/mount.h:70: warning: this is the location of the previous
definition
In file included from /usr/include/linux/net.h:21,
                 from /usr/include/linux/fs.h:15,
                 from smbmnt.c:30:
/usr/include/linux/socket.h:9: warning: redefinition of `sa_family_t'
/usr/include/sockaddrcom.h:25: warning: `sa_family_t' previously declared here
/usr/include/linux/socket.h:15: redefinition of `struct sockaddr'
/usr/include/linux/socket.h:20: redefinition of `struct linger'
/usr/include/linux/socket.h:31: redefinition of `struct msghdr'
/usr/include/linux/socket.h:47: redefinition of `struct cmsghdr'
/usr/include/linux/socket.h:89: conflicting types for `__cmsg_nxthdr'
/usr/include/socketbits.h:173: previous declaration of `__cmsg_nxthdr'
make: *** [smbmnt.o] Error 1




----------------------------------
E-Mail: Brian Hall <brihall at pcisys.net>
Date: 27-Mar-98
Time: 18:54:58

This message was sent by XFMail
----------------------------------


More information about the samba mailing list