2010-07-23 04:56:55     HAVE_FORK ist defined

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2010-07-23 04:56:55     HAVE_FORK ist defined

Rob Maris (GERMANY)

Message: 91653   


Upon building strace with SVN trunk I found that config.h has defined HAVE_FORK. A short check with the ntp build directory shows up the same definition. Apparently something crucial is erroneous on a toplevel place in the configure process. I don't know where to look at.




2010-07-23 05:11:18     Re: HAVE_FORK ist defined

Mike Frysinger (UNITED STATES)

Message: 91655   


are you using trunk toolchain ?  you should be if you arent.





2010-07-23 06:51:01     Re: HAVE_FORK ist defined

Rob Maris (GERMANY)

Message: 91658   


Thanks for reminding this. I have been using 2009R1.1-2. Now I downloaded 2010R1_ALPHA2 (date 18th July) and configured the environment correspondingly. Still have the same problem. I'll take the "blackfin-toolchain....SVN...." from the nightly snapshots catecory... to be continued.




2010-07-23 07:53:10     Re: HAVE_FORK ist defined

Rob Maris (GERMANY)

Message: 91659   


... using     blackfin-toolchain-uclinux-SVN.i386.tar.bz2 and     blackfin-uclinux-uclibc-SVN.i386.tar.bz2   from nightly snaphots still yields the same problem. Correct toolchain path is ensured and make clean has been executed. Make single log extract:


make[5]: Betrete Verzeichnis '/home/uClinux/trunk_new_test/user/strace'

make[5]: Für das Ziel »pre-build« ist nichts zu tun.

make[5]: Verlasse Verzeichnis '/home/uClinux/trunk_new_test/user/strace'

make -C build-strace-4.5.20 install DESTDIR=/home/uClinux/trunk_new_test/staging

make[5]: Betrete Verzeichnis '/home/uClinux/trunk_new_test/user/strace/build-strace-4.5.20'

make install-am

make[6]: Betrete Verzeichnis '/home/uClinux/trunk_new_test/user/strace/build-strace-4.5.20'

bfin-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I/home/uClinux/trunk_new_test/user/strace/strace-4.5.20 -I/home/uClinux/trunk_new_test/user/strace/strace-4.5.20/linux/bfin -I/home/uClinux/trunk_new_test/user/strace/strace-4.5.20/linux -DEMBED -D__uClinux__ -I/home/uClinux/trunk_new_test -mcpu=bf537-0.2 -Wall -pipe -Wall -g -O2 -mcpu=bf537-0.2 -c /home/uClinux/trunk_new_test/user/strace/strace-4.5.20/strace.c

/home/uClinux/trunk_new_test/user/strace/strace-4.5.20/strace.c:216:2: Fehler: #error !!!!!!!!!!!!!!!!

make[6]: *** [strace.o] Fehler 1

make[6]: Verlasse Verzeichnis '/home/uClinux/trunk_new_test/user/strace/build-strace-4.5.20'

make[5]: *** [install] Fehler 2

make[5]: Verlasse Verzeichnis '/home/uClinux/trunk_new_test/user/strace/build-strace-4.5.20'

make[4]: *** [all] Fehler 2

make[4]: Verlasse Verzeichnis '/home/uClinux/trunk_new_test/user/strace'




Note that I have modified strace.c (#error when HAVE_FORK defined)  for the sake of quick check during make process.




2010-07-23 10:13:48     Re: HAVE_FORK ist defined

Mike Frysinger (UNITED STATES)

Message: 91662   


did you `make clean` first ?  you need to have configure re-run so things like function detection is done against the new toolchain.




2010-07-23 16:39:00     Re: HAVE_FORK ist defined

Rob Maris (GERMANY)

Message: 91666   


Yes, I did do make clean, as reported. Upon a more thorough check whether the correct compiler was referenced too, I found that a symbolic link in /usr/bin was present, referencing to the standard distro compiler, and of course, this is dominant over any path export... (I had entered this link for usage with eclipse).


Now build is OK, also with strace. Thanks, Mike for bringing me a step further.