[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] smbmount build problems



I'm having a problem compiling smbmount on a qube 2. I get the
following errors when compiling smbmount.c

In file included from /usr/include/linux/net.h:23,
                 from /usr/include/linux/fs.h:15,
                 from smbmount.c:30:
/usr/include/linux/socket.h:41: warning: `AF_UNSPEC' redefined
/usr/include/socketbits.h:55: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:42: warning: `AF_UNIX' redefined
/usr/include/socketbits.h:56: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:43: warning: `AF_INET' redefined
/usr/include/socketbits.h:59: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:44: warning: `AF_AX25' redefined
/usr/include/socketbits.h:60: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:45: warning: `AF_IPX' redefined
/usr/include/socketbits.h:61: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:46: warning: `AF_APPLETALK' redefined
/usr/include/socketbits.h:62: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:47: warning: `AF_NETROM' redefined
/usr/include/socketbits.h:63: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:48: warning: `AF_BRIDGE' redefined
/usr/include/socketbits.h:64: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:49: warning: `AF_AAL5' redefined
/usr/include/socketbits.h:65: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:50: warning: `AF_X25' redefined
/usr/include/socketbits.h:66: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:54: warning: `AF_MAX' redefined
/usr/include/socketbits.h:72: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:57: warning: `PF_UNSPEC' redefined
/usr/include/socketbits.h:36: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:58: warning: `PF_UNIX' redefined
/usr/include/socketbits.h:37: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:59: warning: `PF_INET' redefined
/usr/include/socketbits.h:40: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:60: warning: `PF_AX25' redefined
/usr/include/socketbits.h:41: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:61: warning: `PF_IPX' redefined
/usr/include/socketbits.h:42: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:62: warning: `PF_APPLETALK' redefined
/usr/include/socketbits.h:43: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:63: warning: `PF_NETROM' redefined
/usr/include/socketbits.h:44: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:64: warning: `PF_BRIDGE' redefined
/usr/include/socketbits.h:45: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:65: warning: `PF_AAL5' redefined
/usr/include/socketbits.h:46: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:66: warning: `PF_X25' redefined
/usr/include/socketbits.h:47: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:70: warning: `PF_MAX' redefined
/usr/include/socketbits.h:52: warning: this is the location of the
previous definition
In file included from smbmount.c:30:
/usr/include/linux/fs.h:88: 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:93: 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:125: warning: `BLKROSET' redefined
/usr/include/sys/mount.h:64: warning: this is the location of the
previous definition
/usr/include/linux/fs.h:126: warning: `BLKROGET' redefined
/usr/include/sys/mount.h:65: warning: this is the location of the
previous definition
/usr/include/linux/fs.h:127: warning: `BLKRRPART' redefined
/usr/include/sys/mount.h:66: warning: this is the location of the
previous definition
/usr/include/linux/fs.h:128: warning: `BLKGETSIZE' redefined
/usr/include/sys/mount.h:67: warning: this is the location of the
previous definition
/usr/include/linux/fs.h:129: warning: `BLKFLSBUF' redefined
/usr/include/sys/mount.h:68: warning: this is the location of the
previous definition
/usr/include/linux/fs.h:130: warning: `BLKRASET' redefined
/usr/include/sys/mount.h:69: warning: this is the location of the
previous definition
/usr/include/linux/fs.h:131: 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/smb_mount.h:12,
                 from smbmount.c:32:
/usr/include/linux/in.h:73: warning: `IN_CLASSA' redefined
/usr/include/netinet/in.h:102: warning: this is the location of the
previous definition
/usr/include/linux/in.h:79: warning: `IN_CLASSB' redefined
/usr/include/netinet/in.h:108: warning: this is the location of the
previous definition
/usr/include/linux/in.h:85: warning: `IN_CLASSC' redefined
/usr/include/netinet/in.h:114: warning: this is the location of the
previous definition
/usr/include/linux/in.h:90: warning: `IN_CLASSD' redefined
/usr/include/netinet/in.h:119: warning: this is the location of the
previous definition
/usr/include/linux/in.h:94: warning: `IN_EXPERIMENTAL' redefined
/usr/include/netinet/in.h:122: warning: this is the location of the
previous definition
/usr/include/linux/in.h:95: warning: `IN_BADCLASS' redefined
/usr/include/netinet/in.h:123: warning: this is the location of the
previous definition
/usr/include/linux/in.h:98: warning: `INADDR_ANY' redefined
/usr/include/netinet/in.h:126: warning: this is the location of the
previous definition
/usr/include/linux/in.h:101: warning: `INADDR_BROADCAST' redefined
/usr/include/netinet/in.h:128: warning: this is the location of the
previous definition
/usr/include/linux/in.h:104: warning: `INADDR_NONE' redefined
/usr/include/netinet/in.h:130: warning: this is the location of the
previous definition
In file included from /usr/include/linux/net.h:23,
                 from /usr/include/linux/fs.h:15,
                 from smbmount.c:30:
/usr/include/linux/socket.h:9: redefinition of `struct sockaddr'
/usr/include/linux/socket.h:14: redefinition of `struct linger'
/usr/include/linux/socket.h:26: redefinition of `struct msghdr'
In file included from /usr/include/linux/smb_mount.h:12,
                 from smbmount.c:32:
/usr/include/linux/in.h:25: conflicting types for `IPPROTO_IP'
/usr/include/netinet/in.h:33: previous declaration of `IPPROTO_IP'
/usr/include/linux/in.h:26: conflicting types for `IPPROTO_ICMP'
/usr/include/netinet/in.h:34: previous declaration of `IPPROTO_ICMP'
/usr/include/linux/in.h:27: conflicting types for `IPPROTO_IGMP'
/usr/include/netinet/in.h:35: previous declaration of `IPPROTO_IGMP'
/usr/include/linux/in.h:28: conflicting types for `IPPROTO_IPIP'
/usr/include/netinet/in.h:36: previous declaration of `IPPROTO_IPIP'
/usr/include/linux/in.h:29: conflicting types for `IPPROTO_TCP'
/usr/include/netinet/in.h:37: previous declaration of `IPPROTO_TCP'
/usr/include/linux/in.h:30: conflicting types for `IPPROTO_EGP'
/usr/include/netinet/in.h:38: previous declaration of `IPPROTO_EGP'
/usr/include/linux/in.h:31: conflicting types for `IPPROTO_PUP'
/usr/include/netinet/in.h:39: previous declaration of `IPPROTO_PUP'
/usr/include/linux/in.h:32: conflicting types for `IPPROTO_UDP'
/usr/include/netinet/in.h:40: previous declaration of `IPPROTO_UDP'
/usr/include/linux/in.h:33: conflicting types for `IPPROTO_IDP'
/usr/include/netinet/in.h:41: previous declaration of `IPPROTO_IDP'
/usr/include/linux/in.h:35: conflicting types for `IPPROTO_RAW'
/usr/include/netinet/in.h:45: previous declaration of `IPPROTO_RAW'
/usr/include/linux/in.h:37: conflicting types for `IPPROTO_MAX'
/usr/include/netinet/in.h:47: previous declaration of `IPPROTO_MAX'
/usr/include/linux/in.h:41: redefinition of `struct in_addr'
/usr/include/linux/in.h:48: redefinition of `struct ip_mreq'
/usr/include/linux/in.h:56: redefinition of `struct sockaddr_in'
smbmount.c: In function `help':
smbmount.c:78: `VERSION' undeclared (first use this function)
smbmount.c:78: (Each undeclared identifier is reported only once
smbmount.c:78: for each function it appears in.)

What can I do to fix this?

Brent
    
_____________________________________________________________________
   /                                                                 
    \
  | Brent M. Selch                            Assistant Systems
Engineer   |
  |                                                                  
     |
  | "While Some see them as the crazy ones, we see genius. Because
the     |
  | people who are crazy enough to think they can change the world...
     |
  | Are the ones who do." - Mac OS X DP3 About box.                  
     |
  |                                                                  
     |
  | selchb@xxxxxx                                 KA.Net Internet
Services |
  | PGP key fingerprint = E5 3D 25 DD 6F F2 98 EE  87 D5 D8 1F D7 B1
D8 22 |
  
\_____________________________________________________________________
_/