make check error

Hubert Figuiere hub at figuiere.net
Thu May 22 14:32:23 PDT 2008


On Wed, 2008-05-21 at 21:47 +0300, Doruk Fisek wrote:
> Hi,
> 
>  I'm preparing an Exempi package for Pardus.
> 
>  The package compiles with GCC 4.3.0 / GLIBC 2.8 without any problems,
> yet when I try to run make check I get the following error :
> 
> /bin/sh ../../libtool --tag=CXX   --mode=link g++  -g -O2 -static
> -L/usr/lib -R/usr/lib  -o test1 test1.o utils.o ../libexempi.la
> -lboost_unit_test_framework g++ -g -O2 -o test1 test1.o utils.o
> -L/usr/lib ../.libs/libexempi.so /usr/lib/libexpat.so /usr/lib/libstdc+
> +.so -lboost_unit_test_framework   -Wl,--rpath
> -Wl,/home/dfisek/exempi-2.0.1/exempi/.libs -Wl,--rpath
> -Wl,/usr/lib /usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../crt1.o: In
> function `_start': (.text+0x18): undefined reference to `main'
> collect2: ld returned 1 exit status make[3]: *** [test1] Error 1 make
> [3]: Leaving directory `/home/dfisek/exempi-2.0.1/exempi/tests' make
> [2]: *** [check-am] Error 2 make[2]: Leaving directory
> `/home/dfisek/exempi-2.0.1/exempi/tests' make[1]: *** [check-recursive]
> Error 1 make[1]: Leaving directory `/home/dfisek/exempi-2.0.1/exempi'
> make: *** [check-recursive] Error 1 
> 
>  I also tested on an older system with GCC 3.4.6 and GLIBC 2.3.6, that
> time I get "4 of 5 tests failed" as a result of make check.
> 
>  Why are these tests failing?


because of the error above.

It is a know bug/limitation of boost unittest that needs to be linked
*statically*
The boost.m4 macro for configure should deal with that, but apparentl it
does not work all the time.

Related problem:
https://bugs.freedesktop.org/show_bug.cgi?id=13659
(yes it is not on the same library)

what distro do you use? what architecture?

Hub



More information about the Exempi-devel mailing list