gendep on FreeBSD

Julian Stecklina der_julian at
Sat Sep 3 21:01:25 CEST 2005

On Sat, 3 Sep 2005 19:13:14 +0200
Julian Stecklina <der_julian at> wrote:

> 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/
> >>./; 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.

Ok, I solved the problem. Sorry, for the noise.

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

More information about the l4-hackers mailing list