Skip Menu |

This queue is for tickets about the Quota CPAN distribution.

Report information
The Basics
Id: 2610
Status: resolved
Worked: 1 min
Priority: 0/
Queue: Quota

People
Owner: tomzo [...] users.sourceforge.net
Requestors: jh [...] xlhost.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.4.6
Fixed in: (no value)



Subject: cannot compile quota 1.4.6 on mandrake 9.0/9.1
gcc version: gcc (GCC) 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk) make shows the following output: cp Quota.pm blib/lib/Quota.pm AutoSplitting blib/lib/Quota.pm (blib/lib/auto/Quota) /usr/bin/perl5.8.0 /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap /usr/lib/perl5 /5.8.0/ExtUtils/typemap Quota.xs > Quota.xsc && mv Quota.xsc Quota.c rm -f myconfig.h ln -s hints/linux.h myconfig.h gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_ FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -fomit-frame-pointer -pipe -march=i5 86 -mcpu=pentiumpro -DVERSION=\"1.4.5\" -DXS_VERSION=\"1.4.5\" -fpic "-I/usr/l ib/perl5/5.8.0/i386-linux-thread-multi/CORE" Quota.c In file included from Quota.xs:11: myconfig.h:43: warning: redefinition of `qsize_t' /usr/include/linux/quota.h:49: warning: `qsize_t' previously declared here myconfig.h:49: warning: `struct dqblk' declared inside parameter list myconfig.h:49: warning: its scope is only this definition or declaration, which is probably not what you want myconfig.h:50: warning: `struct dqblk' declared inside parameter list Quota.xs: In function `getnfsquota': Quota.xs:125: dereferencing pointer to incomplete type Quota.xs:126: dereferencing pointer to incomplete type Quota.xs:127: dereferencing pointer to incomplete type Quota.xs:131: dereferencing pointer to incomplete type Quota.xs:132: dereferencing pointer to incomplete type Quota.xs:133: dereferencing pointer to incomplete type Quota.xs:136: dereferencing pointer to incomplete type Quota.xs:137: dereferencing pointer to incomplete type Quota.xs:138: dereferencing pointer to incomplete type Quota.xs:143: dereferencing pointer to incomplete type Quota.xs:145: dereferencing pointer to incomplete type Quota.xs:147: dereferencing pointer to incomplete type Quota.xs:150: dereferencing pointer to incomplete type Quota.xs:152: dereferencing pointer to incomplete type Quota.xs:154: dereferencing pointer to incomplete type Quota.xs:156: dereferencing pointer to incomplete type Quota.xs:156: dereferencing pointer to incomplete type Quota.xs:157: dereferencing pointer to incomplete type Quota.xs:157: dereferencing pointer to incomplete type Quota.xs: In function `XS_Quota_query': Quota.xs:240: storage size of `dqblk' isn't known Quota.xs: In function `XS_Quota_setqlim': Quota.xs:376: storage size of `dqblk' isn't known Quota.xs: In function `XS_Quota_rpcquery': Quota.xs:575: storage size of `dqblk' isn't known make: *** [Quota.o] Fehler 1 i tried to find the problem on my own but didn't succeed...
The Linux Quota API has changed yet again; the latest linux/quota.h headers do no longer contain struct dqblk, hence the compile failure. I've made a new release Quota-1.4.7 based on the latest quota-tools (3.08) which should support all 3 official Quota APIs and hopefully also most intermediate revisions. -tom