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

Re: Possible bug in glibc while building samba



On Sun, May 13, 2001 at 03:12:47AM -0700, Shane Wegner wrote:
> 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;
> }

That's a bug in samba then. glibc can do nothing about kernel headers
conflicting with it's own headers. The practice of mixing kernel headers
in userspace programs is discouraged for this very reason.

Try remove the include for linux/fs.h in samba, see what is missing that it
needs from this file. Then copy the parts of linux/fs.h that it does
need, to a file local to samba, and then include that.

Ben

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`  bcollins@debian.org  --  bcollins@openldap.org  --  bcollins@linux.com  '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'



Reply to: