gendep on FreeBSD

Julian Stecklina der_julian at
Sat Sep 3 19:13:14 CEST 2005


in my quest to get the Fiasco tree buildable on FreeBSD I encountered
the following problem (this is with gendep compiled with VERBOSE=1)

echo BID_LIBGENDEP=/home/blitz/src/l4/tool/gendep/
>>./; echo 'BUILD_PIC += $(BUILD_LOADER_PICS)'
set -e; X="tmp.$$$RANDOM.c" ; echo 'int main(void){}'>$X ; rm -f
$X.out ; LD_PRELOAD=/home/blitz/src/l4/tool/gendep/
GENDEP_SOURCE=$X GENDEP_OUTPUT=$X.out gcc33 -c $X -o $X.o; test -e
$X.out; echo INT_CPP_x86_NAME=`cat $X.out` >>./;
rm -f $X $X.{o,out}; fopen(/proc/self/cmdline)
real_fopen(/proc/self/cmdline) gendep: Cannot resolve fopen(): Unknown
error: 0

It seems that RTLD magic is somehow broken, but I cannot say how... if
someone has a hint, I am all ears. My patches to gendep are attached.

Julian Stecklina

(Of course SML does have its weaknesses, but by comparison, a
 discussion of C++'s strengths and flaws always sounds like an
 argument about whether one should face north or east when one
 is sacrificing one's goat to the rain god.)         -- Thant Tessman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gendep.diff
Type: text/x-diff
Size: 2932 bytes
Desc: not available
URL: <>

More information about the l4-hackers mailing list