gendep on FreeBSD

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


Hello,

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/libgendep.so
>>./.Makeconf.bid.converted; echo 'BUILD_PIC += $(BUILD_LOADER_PICS)'
>>>>./.Makeconf.bid.converted
set -e; X="tmp.$$$RANDOM.c" ; echo 'int main(void){}'>$X ; rm -f
$X.out ; LD_PRELOAD=/home/blitz/src/l4/tool/gendep/libgendep.so
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` >>./.Makeconf.bid.converted;
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.

Regards,
-- 
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: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20050903/24f2e1a4/attachment.diff>


More information about the l4-hackers mailing list