From: Garrett C. <yan...@gm...> - 2010-03-19 00:28:24
|
On Thu, Mar 18, 2010 at 5:11 PM, Anthony Ton <ant...@er...> wrote: > > Hi Garrett, > Thanks for your help. I can get the LTP compiling and running now. > Regards, > Anthony > -----Original Message----- > From: Garrett Cooper [mailto:yan...@gm...] > Sent: Thursday, March 18, 2010 12:09 PM > To: Anthony Ton > Cc: Rishikesh K Rajak; ltp...@li... > Subject: Re: [LTP] FW: LTP check_mqns_enable.c missing mqueue.h file > > On Thu, Mar 18, 2010 at 10:44 AM, Anthony Ton <ant...@er...> wrote: >> Hi Rishikesh, >> I download the version you mentioned; however, the problem still exists. >> Please see the attached file for trace output. >> Thanks, >> Anthony >> >> -----Original Message----- >> From: Rishikesh K Rajak [mailto:ris...@li...] >> Sent: Wednesday, March 17, 2010 10:44 PM >> To: Anthony Ton >> Cc: ltp...@li... >> Subject: Re: [LTP] FW: LTP check_mqns_enable.c missing mqueue.h file >> >> >> Hi Anthony, >> >> can you please try latest release which has been released yesterday and let us know the result. Then we can fix this fast if such problem is still there. >> >> You can download it from here: >> https://sourceforge.net/projects/ltp/files/LTP%20Source/ltp-20100228.1 >> /ltp-full-20100228.1.tgz/download >> >> Or You can clone through git also. >> >> # git clone git://ltp.git.sourceforge.net/gitroot/ltp/ltp-dev.git >> ltp-dev >> >> Thanks for reporting this failure. >> >> -Rishi >>>Hi, >>> >>>I am using the latest version of LTP ltp-full-20100228. During make >>>all, the compile check_mqns_enable.c complains "mqueue.h: No such file or directory." >>>Could you please >>>+tell me how to fix this? >>>I am greatly appreciate your help. >>>> >>>Regards, >>>Anthony Ton >>> >>>Error output: >>>========= >>>ar -rc "libclone.a" libclone.o >>>ranlib "libclone.a" >>>>make[5]: Leaving directory >> `/home/etonant/linux-test-project/ltp-full-20100228/testcases/kernel/containers/libclone' >>>>gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall >>>-I/home/etonant/linux-test-project/ltp-full-20100228/testcases/kernel/ >>>i >>>nclude >>>+-I/home/etonant/linux-test-project/ltp-full-20100228/testcases/kernel >>>+/ >>>+containers/mqns/../libclone >>>-I../../../../include -I../../../../include >>>+-L/home/etonant/linux-test-project/ltp-full-20100228/testcases/kernel >>>+/ >>>+containers/mqns/../libclone >>>-L../../../../lib check_mqns_enabled.c -lpthread -lrt -lclone -lltp >>>-o >>>>+check_mqns_enabled >>>In file included from check_mqns_enabled.c:25: >>>mqns.h:5:20: mqueue.h: No such file or directory >>>check_mqns_enabled.c: In function `main': >>>check_mqns_enabled.c:35: error: `mqd_t' undeclared (first use in this >>>function) >>>>check_mqns_enabled.c:35: error: (Each undeclared identifier is >>>>reported only >>>once >>>check_mqns_enabled.c:35: error: for each function it appears in.) >>>check_mqns_enabled.c:35: error: syntax error before "mqd" >>>>check_mqns_enabled.c:40: warning: implicit declaration of function `mq_unlink' >>>check_mqns_enabled.c:41: error: `mqd' undeclared (first use in this >>>function) >>>check_mqns_enabled.c:41: warning: implicit declaration of function `mq_open' >>>check_mqns_enabled.c:41: error: `O_RDWR' undeclared (first use in this >>>function) >>>check_mqns_enabled.c:41: error: `O_CREAT' undeclared (first use in >>>this >>>function) >>>check_mqns_enabled.c:41: error: `O_EXCL' undeclared (first use in this >>>function) >>>>check_mqns_enabled.c:46: warning: implicit declaration of function `mq_close' >>>make[4]: *** [check_mqns_enabled] Error 1 >>>make[4]: Leaving directory >>>`/home/etonant/linux-test-project/ltp-full-20100228/testcases/kernel/containers/mqns' >>>make[3]: *** [all] Error 2 >>>make[3]: Leaving directory >>>`/home/etonant/linux-test-project/ltp-full-20100228/testcases/kernel/containers' >>>>make[2]: *** [all] Error 2 >>>make[2]: Leaving directory >>>`/home/etonant/linux-test-project/ltp-full-20100228/testcases/kernel' >>>make[1]: *** [all] Error 2 >>>make[1]: Leaving directory >>>`/home/etonant/linux-test-project/ltp-full-20100228/testcases' >>>make: *** [testcases-all] Error 2 >>>etonant@lxlogin-4-300 > > As Serge so eloquently put it, the problem is that you don't have your glibc headers installed. Don't thank me -- thank Serge ;)... -Garrett |