tags 483267 + upstream patch thanks Hello,
lam...@debian.org, le Tue 27 May 2008 18:29:10 -0600, a écrit : > > tmp/mmap.c:11: error: (Each undeclared identifier is reported only once > > tmp/mmap.c:11: error: for each function it appears in.) > > tmp/have_socketlen_t.c:4: error: expected identifier or '(' before string > > constant > > tmp/have_socketlen_t_is_uint.c:4: error: expected identifier or '(' before > > string constant > > tmp/have_socketlen_t_is_int.c:4: error: expected identifier or '(' before > > string constant > > socklen_t = int > > tmp/kqt.c:3:45: error: sys/event.h: No such file or directory These errors actually also happen on other archs. Grepping -i error shows that the difference is rather .. ERROR CODE 0xb: bin/flx_pkgconfig --path=config --field=cflags @test/drivers/drvr-1.01-0.resh flx_pkgconfig segfaults on the thread_frame_creator() call, and that is because on ia64 function pointers are not like object pointers. The attached patch is needed to let the compiler know that it should use the addresses of function descriptors, not of the code of the functions. There is however one bug during the testsuite: PATH=bin:"$PATH" LD_LIBRARY_PATH=rtl:"$LD_LIBRARY_PATH" bin/flx_run ./test/regress/rt-1.01.05-0.so Hello+World ello+ Hello+ World Worl HHello+World dlroW+olleH diff -b test/regress/rt-1.01.05-0.expect test/regress/rt-1.01.05-0.output 6c6 < Hello+World --- > HHello+World which seems quite odd at first glance. Samuel
--- ./lpsrc/flx_rtl.pak.orig 2009-03-27 02:55:32.000000000 +0100 +++ ./lpsrc/flx_rtl.pak 2009-03-27 02:55:42.000000000 +0100 @@ -1832,9 +1832,9 @@ #include <cstdlib> #ifdef FLX_STATIC_LINK -extern "C" void *create_thread_frame; -extern "C" void *flx_start; -extern "C" void *flx_main; +extern "C" void create_thread_frame(void); +extern "C" void flx_start(void); +extern "C" void flx_main(void); #endif namespace flx { namespace rtl {