Nathan Scott
2002-May-28 15:56 UTC
[Samba] Re: Problems compiling Samba 2.2.4 with quota under Debian stable
On Tue, May 28, 2002 at 12:59:33PM +0200, Ralf G. R. Bergs wrote:> Hi there,hey Ralf.> sorry for being semi-off-topic, but since this has at least *soemthing* to do > with XFS I hope you forgive me. :-) > > I'm trying to compile Samba 2.2.4 under Debian 2.2 (stable). I'm running a > kernel compiled from yesterday's XFS 2.4.18 kernel source (I'm mentioning this > because the XFS header version may be important WRT to my problem.) I also > compiled and installed the attr and acl packages from the above source tree. > > My configure statement looks like this: > > ./configure \ > --host=$(DEB_HOST_GNU_TYPE) \ > --build=$(DEB_BUILD_GNU_TYPE) \ > --with-fhs \ > --prefix=/usr \ > --sysconfdir=/etc \ > --with-privatedir=/etc/samba \ > --localstatedir=/var \ > --with-netatalk \ > --with-smbmount \ > --with-pam \ > --with-syslog \ > --with-sambabook \ > --with-utmp \ > --with-readline \ > --with-pam_smbpass \ > --with-libsmbclient \ > --with-winbind \ > --with-automount \ > --with-quotas \ > --with-ssl \ > --with-acl-support \ > --with-msdfs > > When I run "debian/rules binary" I get this error: > > Compiling smbd/quotas.c > smbd/quotas.c: In function `get_smb_linux_vfs_quota': > smbd/quotas.c:111: storage size of `D' isn't known > make[1]: *** [smbd/quotas.o] Error 1 > make[1]: Leaving directory `/usr/src/samba-2.2.4/source' > make: *** [build-stamp] Error 2 > > Obviously this is the offending source fragment: > > #ifdef LINUX_QUOTAS_1 > struct dqblk D; > > It seems as if "struct dqblk" isn't defined. Why is this? > > My kernel config WRT to quota configuration looks like this: > > CONFIG_QUOTA=y > # CONFIG_QFMT_V1 is not set > CONFIG_QFMT_V2=m > # CONFIG_QIFACE_COMPAT is not set > > I don't understand why "configure" seems to mistakenly think I wanted to use > the old (v1) quota interface. > > Any hints are greatly appreciated.Known problem, with no fix yet AFAIK. It is not really related to XFS at all, you're tripping it in XFS because we include some quite recent quota patches in the XFS CVS trees (ie. the patches that've just recently gone into 2.5.17) - you will find that you can no longer build Samba with quota enabled if you have Linus' current 2.5 headers below /usr/include/linux also. This is a problem which needs to be fixed in Samba sources, they'll need to have a local quota header file, rather than using the ones below /usr/include/linux -- I'm not sure if Jan is planning to fix this soon, I know he's heavily involved with generating 2.5 patches at the moment. I'm preoccupied too, but could give hints to anyone who wants to take a crack at fixing this. cheers. -- Nathan
Jeremy Allison
2002-May-28 16:09 UTC
[Samba] Re: Problems compiling Samba 2.2.4 with quota under Debian stable
On Wed, May 29, 2002 at 08:51:06AM +1000, Nathan Scott wrote:> > Known problem, with no fix yet AFAIK. It is not really related to > XFS at all, you're tripping it in XFS because we include some quite > recent quota patches in the XFS CVS trees (ie. the patches that've > just recently gone into 2.5.17) - you will find that you can no > longer build Samba with quota enabled if you have Linus' current > 2.5 headers below /usr/include/linux also. > > This is a problem which needs to be fixed in Samba sources, they'll > need to have a local quota header file, rather than using the ones > below /usr/include/linuxWhy should we have to have a local quota header file ? Why can't it work on Linux like every other UNIX system - we don't need a local quota.h for them ? This is not a Samba problem IMHO., but a Linux one. Jeremy.
Ralf G. R. Bergs
2002-May-29 01:11 UTC
[Samba] Re: Problems compiling Samba 2.2.4 with quota under Debian stable
On Wed, 29 May 2002 08:51:06 +1000, Nathan Scott wrote: [...]>> Compiling smbd/quotas.c >> smbd/quotas.c: In function `get_smb_linux_vfs_quota': >> smbd/quotas.c:111: storage size of `D' isn't known >> make[1]: *** [smbd/quotas.o] Error 1 >> make[1]: Leaving directory `/usr/src/samba-2.2.4/source' >> make: *** [build-stamp] Error 2 >> >> Obviously this is the offending source fragment: >> >> #ifdef LINUX_QUOTAS_1 >> struct dqblk D; >> >> It seems as if "struct dqblk" isn't defined. Why is this?[...]>This is a problem which needs to be fixed in Samba sourcesThanks for shedding some light on this.>they'll >need to have a local quota header file, rather than using the ones >below /usr/include/linux -- I'm not sure if Jan is planning to fix >this soon, I know he's heavily involved with generating 2.5 patches >at the moment. I'm preoccupied too, but could give hints to anyone >who wants to take a crack at fixing this.I'm busy working on my thesis, so I can't do it either. I guess I have to compile it w/o quota for now, and have another go some time later. Thanks, I really appreciate your quick answer. Ralf -- Sign the EU petition against SPAM: L I N U X .~. http://www.politik-digital.de/spam/ The Choice /V\ of a GNU /( )\ Generation ^^-^^