Doing an rpm-build --rebuild of the SRPM on Red Hat 7.1 gives the following
error message. Looking at the source, the quotas.c file is falling into the
"else" (LINUX_QUOTAS_2) case, but the system actually has a struct dqblk
(LINUX_QUOTAS_1), not a struct mem_dqblk.
smbd/quotas.c: In function `get_smb_linux_vfs_quota':
smbd/quotas.c:135: storage size of `D' isn't known
make: *** [smbd/quotas.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.45700 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.45700 (%build)
Are you using a stock kernel ? Or did you build
you own? This sounds like a mismatch between the glibc
kernel headers and the actual running kernel headers.
*** This bug has been marked as a duplicate of 879 ***