Except that advice from the Samba team is pretty much wrong, as has been commented here a number of times. The kernel header files that userland programs use should match the kernel that was used to build the glibc that is on the system. If you're writing something for kernel space, that should be using the kernel headers that match the running kernel. If you want them to match, you're probably looking at rebuilding glibc on your system. That will probably put you into an unsupported configuration as far as SUSE is concerned, though.
Mark Post -----Original Message----- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] Behalf Of Michael MacIsaac Sent: Tuesday, December 09, 2003 2:42 PM To: [EMAIL PROTECTED] Subject: Re: Has anyone successfully built samba3.0.1rc1 on SLES8 SP3? Daniel, Do you need a certain function in the absolute latest? Can you stick with the version that builds? Here's a thread one of the LTC guys dug up for me: Message: 13 Date: Sat, 6 Dec 2003 18:19:20 +0200 From: Alexander Bokovoy <[EMAIL PROTECTED]> Subject: Re: Compile error of 3.0.1rc1 in function `get_smb_linux_vfs_quota' To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=koi8-r On Fri, Dec 05, 2003 at 03:54:16PM +0100, Kurt Pfeifle wrote: > Compile error of 3.0.1rc1 in function `get_smb_linux_vfs_quota': > > ------------------------------------------------------------------------ > > [EMAIL PROTECTED]:~/cups-versionen/samba/source> cat CVS/Tag > Nrelease-3-0-1rc1 > > [EMAIL PROTECTED]:~/cups-versionen/samba/source> ./configure --with-fhs \ > --prefix=/usr --libdir=/etc/samba --with-configdir=/etc/samba \ > --localstatedir=/var --with-lockdir=/var/lock/samba \ > --with-codepagedir=/usr/share/samba/codepages \ > --with-swatdir=/usr/share/swat --with-logdir=/var/log/samba \ > --with-piddir=/var/run/samba --with-pam --with-pam_smbpass \ > --with-profiling-data --with-syslog --with-vfs --with-msdfs \ > ^^^^^^^^^ This one is irrelevant (we provide VFS regardless this option in 3.0.0). > --with-quotas --with-utmp --with-automount --with-smbmount \ ^^^^^^^^^^^^^ This one matters. > --with-smbwrapper > --with-sambabook=/usr/share/doc/packages/samba/htmldocs/using_samba \ > --with-acl-support --with-ldap --with-ldapsam --with-winbind \ > --with-ads --with-smbmount > --srcdir=/home/kurt/cups-versionen/samba/source \ > && time make > > [.....] > Compiling smbd/quotas.c > smbd/quotas.c: In function `get_smb_linux_vfs_quota': > smbd/quotas.c:135: error: storage size of `D' isn't known > make: *** [smbd/quotas.o] Fehler 1 Install correct headers for you kernel. It is known that kernel headers provided with glibc on most distributions are different from what actually is provided by the kernel -- it is easy to find out: compare linux/quota.h in your kernel headers of installed kernel (don't know corresponding package name in your distribution (SuSE?)) with appropriate header file from glibc-kernheaders or alike package. -- / Alexander Bokovoy Samba Team http://www.samba.org/ ALT Linux Team http://www.altlinux.org/ Midgard Project Ry http://www.midgard-project.org/ ------------------------------ Message: 14 Date: Sun, 07 Dec 2003 12:48:21 +0100 From: "Kurt Pfeifle" <[EMAIL PROTECTED]> Subject: Compile error of 3.0.1rc1 in function `get_smb_linux_vfs_quota' To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=us-ascii; format=flowed > Compile error of 3.0.1rc1 in function `get_smb_linux_vfs_quota' > Alexander Bokovoy a.bokovoy at sam-solutions.net > Sat Dec 6 16:19:20 GMT 2003 > > > On Fri, Dec 05, 2003 at 03:54:16PM +0100, Kurt Pfeifle wrote: >> Compile error of 3.0.1rc1 in function `get_smb_linux_vfs_quota': >> >> ------------------------------------------------------------------------ >> >> kurt at cups-demo:~/cups-versionen/samba/source> cat CVS/Tag >> Nrelease-3-0-1rc1 >> >> kurt at cups-demo:~/cups-versionen/samba/source> ./configure --with-fhs \ >> --prefix=/usr --libdir=/etc/samba --with-configdir=/etc/samba \ >> --localstatedir=/var --with-lockdir=/var/lock/samba \ >> --with-codepagedir=/usr/share/samba/codepages \ >> --with-swatdir=/usr/share/swat --with-logdir=/var/log/samba \ >> --with-piddir=/var/run/samba --with-pam --with-pam_smbpass \ >> --with-profiling-data --with-syslog --with-vfs --with-msdfs \ >> ^^^^^^^^^ > This one is irrelevant (we provide VFS regardless this option in 3.0.0). > >> --with-quotas --with-utmp --with-automount --with-smbmount \ > ^^^^^^^^^^^^^ > This one matters. > Thanks, Alexander! (I had nearly given up hope to get a response at all.) I'll now try again using "--without-quotas"...) >> --with-smbwrapper >> --with-sambabook=/usr/share/doc/packages/samba/htmldocs/using_samba \ >> --with-acl-support --with-ldap --with-ldapsam --with-winbind \ >> --with-ads --with-smbmount >> --srcdir=/home/kurt/cups-versionen/samba/source \ >> && time make >> >> [.....] >> Compiling smbd/quotas.c >> smbd/quotas.c: In function `get_smb_linux_vfs_quota': >> smbd/quotas.c:135: error: storage size of `D' isn't known >> make: *** [smbd/quotas.o] Fehler 1 > Install correct headers for you kernel. Well, the thing is that I used the exact same "configure" line for the last 4 weeks when I compiled the CVS and it *did* work before (like in 3.0.1 pre3). I didn't change kernel or glibc or anything else which might be relevant (or so I believe). > It is known that kernel headers > provided with glibc on most distributions are different from what actually > is provided by the kernel -- it is easy to find out: compare linux/quota.h > in your kernel headers of installed kernel (don't know corresponding > package name in your distribution (SuSE?)) Yes. SuSE-8.2 in this case. > with appropriate header file > from glibc-kernheaders or alike package. > > -- > / Alexander Bokovoy Thanks again & Cheers! Kurt ------------------------------ Message: 15 Date: Sun, 07 Dec 2003 14:55:40 +0100 From: Stefan Metzmacher <[EMAIL PROTECTED]> Subject: Re: Compile error of 3.0.1rc1 in function `get_smb_linux_vfs_quota' To: Alexander Bokovoy <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=us-ascii; format=flowed Alexander Bokovoy wrote: >On Fri, Dec 05, 2003 at 03:54:16PM +0100, Kurt Pfeifle wrote: > > >>Compile error of 3.0.1rc1 in function `get_smb_linux_vfs_quota': >> >>------------------------------------------------------------------------ >> >>[EMAIL PROTECTED]:~/cups-versionen/samba/source> cat CVS/Tag >>Nrelease-3-0-1rc1 >> >>[EMAIL PROTECTED]:~/cups-versionen/samba/source> ./configure --with-fhs \ >> --prefix=/usr --libdir=/etc/samba --with-configdir=/etc/samba \ >> --localstatedir=/var --with-lockdir=/var/lock/samba \ >> --with-codepagedir=/usr/share/samba/codepages \ >> --with-swatdir=/usr/share/swat --with-logdir=/var/log/samba \ >> --with-piddir=/var/run/samba --with-pam --with-pam_smbpass \ >> --with-profiling-data --with-syslog --with-vfs --with-msdfs \ >> ^^^^^^^^^ >> >> >This one is irrelevant (we provide VFS regardless this option in 3.0.0). > > > >> --with-quotas --with-utmp --with-automount --with-smbmount \ >> >> > ^^^^^^^^^^^^^ >This one matters. > > > >> --with-smbwrapper >> --with-sambabook=/usr/share/doc/packages/samba/htmldocs/using_samba \ >> --with-acl-support --with-ldap --with-ldapsam --with-winbind \ >> --with-ads --with-smbmount >> --srcdir=/home/kurt/cups-versionen/samba/source \ >> && time make >> >>[.....] >>Compiling smbd/quotas.c >>smbd/quotas.c: In function `get_smb_linux_vfs_quota': >>smbd/quotas.c:135: error: storage size of `D' isn't known >>make: *** [smbd/quotas.o] Fehler 1 >> >> >Install correct headers for you kernel. It is known that kernel headers >provided with glibc on most distributions are different from what actually >is provided by the kernel -- it is easy to find out: compare linux/quota.h >in your kernel headers of installed kernel (don't know corresponding >package name in your distribution (SuSE?)) with appropriate header file >from glibc-kernheaders or alike package. > > I have a patch which will get rid of the linux quota header mess, based on the samba2.2 samba_linux_quota.h It's not completly ready, it'll take a week or two (I'm a bit busy atm :-(...) -- metze -Mike MacIsaac, IBM mikemac at us.ibm.com (845) 433-7061
