Re: [LTP] LTP installation configure Error

Garrett Cooper
2010-01-13T18:43:05Z

On Wed, Jan 13, 2010 at 10:33 AM, Nicolas Joly <njoly@pasteur.fr> wrote:
> On Wed, Jan 13, 2010 at 09:52:37AM -0800, Garrett Cooper wrote:
> [...]
>> > Please see this patch and kindly make changes accordingly.
>>
>> I don't know what you want to do about the compiler optimization bug,
>> but I made the AC_MSG_WARN AC_MSG_ERROR on purpose because I _wanted_
>> to catch cases that the autoconf test didn't cover so the test itself
>> could be improved. Would you please:
>>
>> 1. Provide your config.log.
>
> Here follow the relevant parts.
>
> njoly@lanfeust [linux:ltp] $ ./configure
> [...]
> checking numaif.h usability... no
> checking numaif.h presence... no
> checking for numaif.h... no
> configure: error: Couldn't find functional copy of quota v2 - are you running 2.4.x?
>
> config.log:
>
> configure:8448: gcc -c -g -O2  conftest.c >&5
> conftest.c: In function `main':
> conftest.c:51: error: `Q_GETINFO' undeclared (first use in this function)
> conftest.c:51: error: (Each undeclared identifier is reported only once
> conftest.c:51: error: for each function it appears in.)
> configure:8455: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> | #define PACKAGE_NAME "ltp"
> | #define PACKAGE_TARNAME "ltp"
> [...]
> | #define HAVE_ASM_LDT_H 1
> | #define HAVE_STRUCT_USER_DESC 1
> | /* end confdefs.h.  */
> |
> | #define _LINUX_QUOTA_VERSION 2
> | #include <sys/types.h>
> | #include <sys/quota.h>
> | #include <unistd.h>
> | int
> | main ()
> | {
> |
> | int main(void) {
> |       struct dqblk dq;
> |       return quotactl(Q_GETINFO, (const char *) "/dev/null", geteuid(),
> |                       (caddr_t) &dq);
> | }
> |   ;
> |   return 0;
> | }
> configure:8465: error: Couldn't find functional copy of quota v2 - are you running 2.4.x ?
>
>> 2. Do `man 2 quotactl' and provide a description of what the function
>> #include requirements are?
>
> QUOTACTL(2)                Linux Programmer's Manual               QUOTACTL(2)
>
> NAME
>       quotactl - manipulate disk quota
>
> SYNOPSIS
>       #include <sys/types.h>
>       #include <sys/quota.h>
>
>       int quotactl(int cmd, const char *special, int id, caddr_t addr);
>
>       #include <linux/unistd.h>
>
>       #include <errno.h>
>
>       _syscall4(int,  quotactl,  int,  cmd,  const char *, special , int, id,
>       caddr_t, addr)

Ok. Could you please attach your copies of
/usr/include/linux/quota.h and /usr/include/sys/quota.h in a private
email?
Thanks,
-Garrett