Error loading libcppunit-1.12.so.0 (during make check tests)

Hi,
I downloaded orocos-rtt-1.0.3 and ran the following commands succesfully:
# tar -xvjf orocos-rtt*.tar.bz2
# cd orocos-rtt*
# mkdir build
# cd build
# ../configure --with-lxrt --with-linux=/usr/src/linux
# make rtt

But when I try to run 'make check' I get the errors shown below. I've tried copying libcppunit-1.12.so.0 from /usr/local/lib to /usr/local/src/orocos-rtt-1.0.3/build/tests but I still get the same errors. Please help.

Chris

*** Warning: Linking the executable state-test against the loadable module
*** liblxrt.so is not portable!
g++ -I/usr/local/include -g -o state-test test-runner.o state_test.o -L/usr/local/lib /usr/local/lib/libcppunit.so -ldl ../packages/install/lib/libtarget.a -L/usr/realtime/lib /usr/realtime/lib/liblxrt.so -lpthread -lstdc++ -Wl,--rpath -Wl,/usr/realtime/lib -Wl,--rpath -Wl,/usr/realtime/lib
make[3]: Leaving directory `/usr/local/src/orocos-rtt-1.0.3/build/tests'
make check-TESTS
make[3]: Entering directory `/usr/local/src/orocos-rtt-1.0.3/build/tests'

./core-test: error while loading shared libraries: libcppunit-1.12.so.0: cannot open shared object file: No such file or directory
FAIL: core-test

./task-test: error while loading shared libraries: libcppunit-1.12.so.0: cannot open shared object file: No such file or directory
FAIL: task-test
./event-test: error while loading shared libraries: libcppunit-1.12.so.0: cannot open shared object file: No such file or directory
FAIL: event-test
./taskcontext-test: error while loading shared libraries: libcppunit-1.12.so.0: cannot open shared object file: No such file or directory
FAIL: taskcontext-test
./parser-test: error while loading shared libraries: libcppunit-1.12.so.0: cannot open shared object file: No such file or directory
FAIL: parser-test
./program-test: error while loading shared libraries: libcppunit-1.12.so.0: cannot open shared object file: No such file or directory
FAIL: program-test
./state-test: error while loading shared libraries: libcppunit-1.12.so.0: cannot open shared object file: No such file or directory
FAIL: state-test
===================
7 of 7 tests failed
===================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory `/usr/local/src/orocos-rtt-1.0.3/build/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/usr/local/src/orocos-rtt-1.0.3/build/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/orocos-rtt-1.0.3/build/tests'
make: *** [check-recursive] Error 1

Error loading libcppunit-1.12.so.0 (during make check tests)

On Monday 05 March 2007 06:40:38 chris wrote:
> Hi,
> I downloaded orocos-rtt-1.0.3 and ran the following commands succesfully:
> # tar -xvjf orocos-rtt*.tar.bz2
> # cd orocos-rtt*
> # mkdir build
> # cd build
> # ../configure --with-lxrt --with-linux=/usr/src/linux
> # make rtt
>
> But when I try to run 'make check' I get the errors shown below. I've
> tried copying libcppunit-1.12.so.0 from /usr/local/lib to
> /usr/local/src/orocos-rtt-1.0.3/build/tests but I still get the same
> errors. Please help.

You have the following options:

1. edit /etc/ld.so.conf and add the line
/usr/local/lib
then, run the 'ldconfig' program (you need to do these things as root).

2. set the following variable:
$ export LD_LIBRARY_PATH=/usr/local/lib
$ make check

Peter

Hi Peter, I tried that and

Hi Peter,
I tried that and it seems to have worked. However, now I get the 2 failures below. I have increased the number of lxrt slots to 1000 from 100. I'm not sure if I mentioned this earlier but this is rtai 3.3 on fedora core 3 - the kernel version is 2.6.13. Thanks.

Chris

time_test.cpp:124:Assertion
Test name: TimeTest::testTimeProgress
assertion failed
- Expression: -EPSILON < (change_S - hbg->secondsSince(t)) && EPSILON > (change
_S - hbg->secondsSince(t))

Failures !!!
Run: 18 Failure total: 1 Failures: 1 Errors: 0
FAIL: core-test
overfail is:0, underfail is:1 success is: 0
.F....

tasks_test.cpp:258:Assertion
Test name: ActivitiesTest::testThreads
equality assertion failed
- Expected: 1
- Actual : 0
- Periodic Failure: period of step() to short!

Failures !!!
Run: 5 Failure total: 1 Failures: 1 Errors: 0
FAIL: task-test
....................

OK (20)
PASS: event-test
...................

OK (19)
PASS: taskcontext-test
................

OK (16)
PASS: parser-test
...................

OK (19)
PASS: program-test
......

OK (6)
PASS: state-test
===================
2 of 7 tests failed
===================