Hi,
I am trying to compile LTP test suite by enabling USB in the kernel/device
driver/Makefile.
I am getting error.
make[4]: Entering directory
`/home/veerendra/QA/ltp-full-20150420/testcases/kernel/device-drivers/usb'
make[5]: Entering directory
`/home/veerendra/QA/ltp-full-20150420/testcases/kernel/device-drivers/usb/tusb'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory
`/home/veerendra/QA/ltp-full-20150420/testcases/kernel/device-drivers/usb/tusb'
make[5]: Entering directory
`/home/veerendra/QA/ltp-full-20150420/testcases/kernel/device-drivers/usb/user_usb'
make -C "/home/veerendra/QA/ltp-full-20150420/testcases/kernel/include" -f
"/home/veerendra/QA/ltp-full-20150420/testcases/kernel/include/Makefile" all
make[6]: Entering directory
`/home/veerendra/QA/ltp-full-20150420/testcases/kernel/include'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory
`/home/veerendra/QA/ltp-full-20150420/testcases/kernel/include'
/home/veerendra/Sourcery_CodeBench_Lite_for_MIPS_GNU_Linux/bin/mips-linux-gnu-gcc
-g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2
-Wold-style-definition -D_FORTIFY_SOURCE=2
-I/home/veerendra/QA/ltp-full-20150420/testcases/kernel/include
-I../../../../../include -I../../../../../include -L../../../../../lib
user_tusb.c -lltp -o user_tusb
user_tusb.c: In function 'tusbopen':
user_tusb.c:66:5: warning: old-style function definition
[-Wold-style-definition]
int tusbopen()
^
user_tusb.c:89:4: warning: implicit declaration of function 'unlink'
[-Wimplicit-function-declaration]
rc = unlink(DEVICE_NAME);
^
user_tusb.c: In function 'tusbclose':
user_tusb.c:145:5: warning: old-style function definition
[-Wold-style-definition]
int tusbclose()
^
user_tusb.c:151:3: warning: implicit declaration of function 'close'
[-Wimplicit-function-declaration]
close(tusb_fd);
^
user_tusb.c: In function 'main':
user_tusb.c:158:5: warning: old-style function definition
[-Wold-style-definition]
int main()
^
user_tusb.c:208:2: warning: implicit declaration of function 'tst_exit'
[-Wimplicit-function-declaration]
tst_exit();
^
user_tusb.c:209:1: warning: control reaches end of non-void function
[-Wreturn-type]
}
^
user_tusb.c: In function 'tusbopen':
user_tusb.c:88:11: warning: 'st.st_mode' is used uninitialized in this function
[-Wuninitialized]
if (!(st.st_mode & S_IFDIR)) {
^
../../../../../lib/libltp.a(tst_res.o): In function `cat_file':
/home/veerendra/QA/ltp-full-20150420/lib/tst_res.c:786: undefined reference to
`TCID'
/home/veerendra/QA/ltp-full-20150420/lib/tst_res.c:786: undefined reference to
`TCID'
/home/veerendra/QA/ltp-full-20150420/lib/tst_res.c:796: undefined reference to
`TCID'
/home/veerendra/QA/ltp-full-20150420/lib/tst_res.c:796: undefined reference to
`TCID'
/home/veerendra/QA/ltp-full-20150420/lib/tst_res.c:804: undefined reference to
`TCID'
../../../../../lib/libltp.a(tst_res.o):/home/veerendra/QA/ltp-full-20150420/lib/tst_res.c:804:
more undefined references to `TCID' follow
collect2: error: ld returned 1 exit status
make[5]: *** [user_tusb] Error 1
make[5]: Leaving directory
`/home/veerendra/QA/ltp-full-20150420/testcases/kernel/device-drivers/usb/user_usb'
make[4]: *** [all] Error 2
make[4]: Leaving directory
`/home/veerendra/QA/ltp-full-20150420/testcases/kernel/device-drivers/usb'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/veerendra/QA/ltp-full-20150420/testcases/kernel/device-drivers'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/veerendra/QA/ltp-full-20150420/testcases/kernel'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/veerendra/QA/ltp-full-20150420/testcases'
make: *** [testcases-all] Error 2
Any suggestions
Regards
Veerendra
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list