Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Sep 2006 01:03:02 +0200
From:      =?iso-8859-1?q?J=FCrgen_Herz?= <juergen@jherz.redirectme.net>
To:        freebsd-hackers@freebsd.org
Subject:   (dynamically) linking on FreeBSD
Message-ID:  <200609160103.02702.juergen@jherz.redirectme.net>

index | next in thread | raw e-mail

Hi there,

I came across something I don't understand: Building Firefox from the original 
sources failed because it had the linker options "-z defs" set while in the 
compiled code standard functions from libc like malloc, free, fprintf a.s.o. 
were used.
Removing this flag, compiling worked and the program is also running fine. But 
I found out that ldd doesn't list libc or libpthread (since -pthread is also 
used) for the module in question--it also doesn't for the module contained in 
the official Firefox FreeBSD package.

On Linux ldd lists libc and also libpthread for the very same module.

So my question is, those functions are used in the code, references to them 
aren't undefined, but the application nevertheless works. What's up there?

Regards,
Jürgen


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609160103.02702.juergen>