public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Veerendra Jonnalagadda <Veerendra.Jonnalagadda@inedasystems.com>
To: "ltp-list@lists.sourceforge.net" <ltp-list@lists.sourceforge.net>
Subject: [LTP] How to enable USB test case while compiling
Date: Mon, 14 Sep 2015 07:17:45 +0000	[thread overview]
Message-ID: <1442214807574.25113@inedasystems.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 3832 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 7412 bytes --]

[-- Attachment #2: Type: text/plain, Size: 79 bytes --]

------------------------------------------------------------------------------

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

             reply	other threads:[~2015-09-14  7:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-14  7:17 Veerendra Jonnalagadda [this message]
2015-09-15  9:29 ` [LTP] How to enable USB test case while compiling Cyril Hrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1442214807574.25113@inedasystems.com \
    --to=veerendra.jonnalagadda@inedasystems.com \
    --cc=ltp-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox