From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4B3B8137.3090304@domain.hid> Date: Wed, 30 Dec 2009 17:35:03 +0100 From: Wolfgang Grandegger MIME-Version: 1.0 References: <4B3B7831.8060806@domain.hid> <4B3B8021.7040201@domain.hid> In-Reply-To: <4B3B8021.7040201@domain.hid> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] Build problem with xenomai-2.4 git head List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai-core Gilles Chanteperdrix wrote: > Wolfgang Grandegger wrote: >> Hello, >> >> I get the following error when building GIT head of xenomai-2.4 for PowerPC: >> >> Making all in cyclic >> make[3]: Entering directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite/cyclic' >> /bin/sh ../../../libtool --tag=CC --mode=link ../../../scripts/wrap-link.sh ppc-linux-gcc -Wl,@/work/wolf/pdm360ng/xenomai-2.4/src/skins/posix/posix.wrappers -o cyclictest cyclictest-cyclictest.o ../../skins/posix/libpthread_rt.la -lpthread -lrt >> libtool: link: ../../../scripts/wrap-link.sh ppc-linux-gcc -Wl,@/work/wolf/pdm360ng/xenomai-2.4/src/skins/posix/posix.wrappers -o .libs/cyclictest cyclictest-cyclictest.o ../../skins/posix/.libs/libpthread_rt.so -lpthread -lrt -Wl,-rpath -Wl,/root/xenomai-2.4/lib >> ../../skins/posix/.libs/libpthread_rt.so: undefined reference to `__real_shm_open' >> ../../skins/posix/.libs/libpthread_rt.so: undefined reference to `__real_shm_unlink' >> collect2: ld returned 1 exit status >> make[3]: *** [cyclictest] Error 1 >> make[3]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite/cyclic' >> make[2]: *** [all-recursive] Error 1 >> make[2]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite' >> make[1]: *** [all-recursive] Error 1 >> make[1]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src' >> make: *** [all-recursive] Error 1 >> >> Any idea why the functions are missing? > > Could you try the following patch? It seems to fix things here: > > diff --git a/src/skins/posix/wrappers.c b/src/skins/posix/wrappers.c > index 77c1d59..0e7d2f1 100644 > --- a/src/skins/posix/wrappers.c > +++ b/src/skins/posix/wrappers.c > @@ -32,6 +32,7 @@ > #include > #include > #include > +#include > > #undef __real_ftruncate > #undef __real_mmap That patch helps. The build works now without reporting any error. Thanks, Wolfgang.