(dynamically) linking on FreeBSD

Jürgen Herz juergen at jherz.redirectme.net
Fri Sep 15 16:03:07 PDT 2006


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


More information about the freebsd-hackers mailing list