Hi,

I tried to build open_posix_testsuite testcases:

   make distclean
   make all

But several testcases failed to build.
I paid attention to some of build-failed testcases. They are in 
"lio_listio" directory.
------------
conformance/interfaces/lio_listio/1-1 compile FAILED
/tmp/ccaX2A2v.o: In function `main':
1-1.c:(.text+0x316): undefined reference to `lio_listio'
1-1.c:(.text+0x472): undefined reference to `aio_error'
1-1.c:(.text+0x48a): undefined reference to `aio_return'
collect2: ld returned 1 exit status
conformance/interfaces/lio_listio/10-1 compile FAILED
/tmp/ccIj5aUK.o: In function `main':
10-1.c:(.text+0x2ee): undefined reference to `lio_listio'
10-1.c:(.text+0x38e): undefined reference to `aio_error'
10-1.c:(.text+0x3a3): undefined reference to `aio_return'
collect2: ld returned 1 exit status
conformance/interfaces/lio_listio/11-1 compile FAILED
/tmp/cccIltt0.o: In function `main':
11-1.c:(.text+0x30a): undefined reference to `lio_listio'
11-1.c:(.text+0x3eb): undefined reference to `aio_error'
11-1.c:(.text+0x400): undefined reference to `aio_return'
collect2: ld returned 1 exit status
[...]
------------

I edited their Makefile as follows for trial:
============
---
a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/Makefile
2010-08-02 14:10:31.000000000 +0900
+++
b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/Makefile
2010-08-03 09:33:08.000000000 +0900
@@ -30,7 +30,7 @@
 # Submake make definitions.
 CFLAGS+=               
 LDFLAGS+=              
-LDLIBS+=               
+LDLIBS+=               -lrt
 
 INSTALL_TARGETS+=      1-1.run-test 10-1.run-test 11-1.run-test
12-1.run-test 13-1.run-test 14-1.run-test 15-1.run-test 16-1.run-test
17-1.run-test 18-1.run-test 19-1.run-test 2-1.run-test 20-1.run-test
21-1.run-test 22-1.run-test 23-1.run-test 24-1.run-test 25-1.run-test
3-1.run-test 4-1.run-test 5-1.run-test 6-1.run-test 7-1.run-test
8-1.run-test 9-1.run-test
 MAKE_TARGETS+=         1-1.run-test 10-1.run-test 11-1.run-test
12-1.run-test 13-1.run-test 14-1.run-test 15-1.run-test 16-1.run-test
17-1.run-test 18-1.run-test 19-1.run-test 2-1.run-test 20-1.run-test
21-1.run-test 22-1.run-test 23-1.run-test 24-1.run-test 25-1.run-test
3-1.run-test 4-1.run-test 5-1.run-test 6-1.run-test 7-1.run-test
8-1.run-test 9-1.run-test

============

After that, they succeeded to build.

But this Makefile cannot be edited because it is generated when "make all".
I think that "LDLIBS" file is necessary in "lio_listio" directory.


Regards--


-Tomonori Mitani



------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to