smbmount compile error

Esh, Andrew AEsh at
Tue Feb 26 07:10:10 GMT 2002

rlimit should be defined in /usr/include/bits/resource.h or

Maybe install the kernel headers?

-----Original Message-----
From: Urban Widmark [mailto:urban at]
Sent: Tuesday, February 26, 2002 3:23 AM
To: Irish
Cc: samba-technical at
Subject: Re: smbmount compile error

On Fri, 22 Feb 2002, Irish wrote:

> Hello, 
> I am using (essentially) slackware 7+, and when I try to compile 2.2.3a
> "--with-smbmount" it fails with the following;
> client/smbmount.c: In function `close_our_files':
> client/smbmount.c:97: storage size of `limits' isn't known
> client/smbmount.c:99: `RLIMIT_NOFILE' undeclared (first use in this

Something seems to be wrong with your header files.

grep -r "struct rlimit" /usr/include

Where is it defined?

smbmount includes kernel headers (linux/ & asm/), and one explanation may
be that yours are missing or does not match the glibc version. Including
kernel headers is a bug.


-------------- next part --------------
HTML attachment scrubbed and removed

More information about the samba-technical mailing list