Error compiling samba with smbmount support

Joel Hammer Joel at HammersHome.com
Sat Sep 15 15:46:02 GMT 2001


On Sun, Sep 16, 2001 at 12:05:18AM +0200, Urban Widmark wrote:
> On Sat, 15 Sep 2001, Joel Hammer wrote:
> 
> > Compiling client/smbmount.c
> > client/smbmount.c: In function `close_our_files':
> > client/smbmount.c:98: storage size of `limits' isn't known
> > client/smbmount.c:100: `RLIMIT_NOFILE' undeclared (first use in this
> > function)
> 
> RLIMIT_NOFILE should be defined in sys/resource.h (assuming glibc, don't
> remember where libc5 puts things, and it's actually in bits/)
> 
> ./configure should have detected that you have that file and put
> #define HAVE_SYS_RESOURCE_H 1
> in include/config.h
> 
> Did it, and if not what kind of system are you on?
> 
Here is what I have in include/config.h
/* Define if you have the <sys/resource.h> header file.  */
/* #undef HAVE_SYS_RESOURCE_H */      

When I change it by hand to :

#define HAVE_SYS_RESOURCE_H 1  

I get lots of warnings like this:

Compiling client/smbmount.c
In file included from /usr/include/sys/resource.h:25,
                 from include/includes.h:88,
                 from client/smbmount.c:24:
/usr/include/bits/resource.h:109: warning: `RLIM_INFINITY' redefined
/usr/include/asm/resource.h:26: warning: this is the location of the
previous definition
Linking bin/smbmount
Compiling client/smbmnt.c
In file included from /usr/include/sys/resource.h:25,
                 from include/includes.h:88,
                 from client/smbmnt.c:9:
/usr/include/bits/resource.h:109: warning: `RLIM_INFINITY' redefined
/usr/include/asm/resource.h:26: warning: this is the location of the
previous definition
Linking bin/smbmnt 
And so on.

But, the thang compiled. And make install put the things into the samba
directory.
Just wish I had any idea why this happened.
Thanks,
Joel
          




More information about the samba mailing list