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

Possible bug in glibc while building samba



Hi,

It seems that Samba is unable to build on the current
Debian unstable distribution.  That is libc6 2.2.3-1.  It
is including linux/fs.h and sys/mount.h which are stepping
on eachother's toes.  I am not certain as to whether this
is a glibc bug or perhapse Samba shouldn't be including
these two files together.

-- test.c --
#include <sys/mount.h>
#include <linux/fs.h>

int main()
{
return 0;
}

$ gcc test.c
In file included from test.c:2:
/usr/include/linux/fs.h:47: warning: `BLOCK_SIZE' redefined
/usr/include/sys/mount.h:28: warning: this is the location of the previous definition
/usr/include/linux/fs.h:107: warning: `MS_RDONLY' redefined
/usr/include/sys/mount.h:37: warning: this is the location of the previous definition
/usr/include/linux/fs.h:108: warning: `MS_NOSUID' redefined
/usr/include/sys/mount.h:39: warning: this is the location of the previous definition
/usr/include/linux/fs.h:109: warning: `MS_NODEV' redefined
/usr/include/sys/mount.h:41: warning: this is the location of the previous definition
/usr/include/linux/fs.h:110: warning: `MS_NOEXEC' redefined
/usr/include/sys/mount.h:43: warning: this is the location of the previous definition
/usr/include/linux/fs.h:111: warning: `MS_SYNCHRONOUS' redefined
/usr/include/sys/mount.h:45: warning: this is the location of the previous definition
/usr/include/linux/fs.h:112: warning: `MS_REMOUNT' redefined
/usr/include/sys/mount.h:47: warning: this is the location of the previous definition
/usr/include/linux/fs.h:113: warning: `MS_MANDLOCK' redefined
/usr/include/sys/mount.h:49: warning: this is the location of the previous definition
/usr/include/linux/fs.h:114: warning: `MS_NOATIME' redefined
/usr/include/sys/mount.h:57: warning: this is the location of the previous definition
/usr/include/linux/fs.h:115: warning: `MS_NODIRATIME' redefined
/usr/include/sys/mount.h:59: warning: this is the location of the previous definition
/usr/include/linux/fs.h:116: warning: `MS_BIND' redefined
/usr/include/sys/mount.h:61: warning: this is the location of the previous definition
/usr/include/linux/fs.h:122: warning: `MS_RMT_MASK' redefined
/usr/include/sys/mount.h:65: warning: this is the location of the previous definition
/usr/include/linux/fs.h:129: warning: `S_APPEND' redefined
/usr/include/sys/mount.h:53: warning: this is the location of the previous definition
/usr/include/linux/fs.h:130: warning: `S_IMMUTABLE' redefined
/usr/include/sys/mount.h:55: warning: this is the location of the previous definition
/usr/include/linux/fs.h:166: warning: `BLKROSET' redefined
/usr/include/sys/mount.h:78: warning: this is the location of the previous definition
/usr/include/linux/fs.h:167: warning: `BLKROGET' redefined
/usr/include/sys/mount.h:79: warning: this is the location of the previous definition
/usr/include/linux/fs.h:168: warning: `BLKRRPART' redefined
/usr/include/sys/mount.h:80: warning: this is the location of the previous definition
/usr/include/linux/fs.h:169: warning: `BLKGETSIZE' redefined
/usr/include/sys/mount.h:81: warning: this is the location of the previous definition
/usr/include/linux/fs.h:170: warning: `BLKFLSBUF' redefined
/usr/include/sys/mount.h:82: warning: this is the location of the previous definition
/usr/include/linux/fs.h:171: warning: `BLKRASET' redefined
/usr/include/sys/mount.h:83: warning: this is the location of the previous definition
/usr/include/linux/fs.h:172: warning: `BLKRAGET' redefined
/usr/include/sys/mount.h:84: warning: this is the location of the previous definition


-- 
Shane Wegner: shane@cm.nu
              http://www.cm.nu/~shane/
PGP:          1024D/FFE3035D
              A0ED DAC4 77EC D674 5487
              5B5C 4F89 9A4E FFE3 035D



Reply to: