|
From: Fu, E. <el...@in...> - 2007-03-01 02:25:14
|
Hi xiaoxiao, Welcome to posixtestsuite world:-) For semaphore function testing, did you check whether NPTL is installed = as default posix thread library at your side? if so, you can use = '-lpthread' and '-lrt' flags. Otherwise, to build against NPTL, export = the following variable: export GLIBCDIR=3D/path/to/NPTL/libc-build Then in LDFLAGS, add the following lines:=20 $GLIBCDIR/nptl/libpthread.so.0 $GLIBCDIR/libc.so.6 = -Wl,-rpath,$GLIBCDIR:$GLIBCDIR/nptl:$GLIBCDIR/elf,-dynamic-linker,$GLIBCD= IR/elf/ld-linux.so.2 If you want to run the semaphore test suite against posix1b (downloading = it from: http://www.garret.ru/~knizhnik/posix1b.tar.gz = <http://www.garret.ru/~knizhnik/posix1b.tar.gz> ), then you should have = the library compiled and installed in /usr/lib first. It seems you = already did so. That's fine. Then add the following library in the = LDFLAGS:=20 -lposix1b Make sure /usr/lib/ is in your PATH. For more info about how to BUILD and run test suite, you can refer to = BUILD and Document/HOWTO_*** documents within posixtestsuite.=20 If you want to run the whole testsuite, I suggest you logged as root, = since some build needs root privileges.=20 =20 Any problem, feel free to let me know. =20 Elva Fu ________________________________ From: Xiaoxiao Cui (xcui) [mailto:xc...@ci...]=20 Sent: 2007=C4=EA3=D4=C21=C8=D5 9:22 To: el...@us...; li...@us...; = ro...@us... Cc: Sri Dharmasanam (sdharmas) Subject: PTS question about semaphore test Hi, PTS project admins, Currently we are trying to use PTS to evaluate our linux kernel upgrade. = When we test semaphore function under conformance/interfaces. We got one = issue. If we put -lpthread in LDFLAGS, we got error as "sem_open: = function not implemented". But if we remove it the linker seems to find = the posix1b lib that we have built. Also some of the tests seem to = require root privileges. Is it required that we be logged in as root on = the system where we run these tests? Thanks a lot in advance. Xiaoxiao |