From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 15 23:03:06 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E234016A407 for ; Fri, 15 Sep 2006 23:03:06 +0000 (UTC) (envelope-from juergen@jherz.redirectme.net) Received: from jherz.redirectme.net (DSL01.83.171.185.119.ip-pool.NEFkom.net [83.171.185.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7466743D45 for ; Fri, 15 Sep 2006 23:03:06 +0000 (GMT) (envelope-from juergen@jherz.redirectme.net) Received: from lunix.linux.test ([192.168.0.3]) by nano.linux.test with esmtpa (Exim 4.62) (envelope-from ) id 1GOMi8-0005ph-75 for freebsd-hackers@freebsd.org; Sat, 16 Sep 2006 01:03:04 +0200 From: =?iso-8859-1?q?J=FCrgen_Herz?= To: freebsd-hackers@freebsd.org Date: Sat, 16 Sep 2006 01:03:02 +0200 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200609160103.02702.juergen@jherz.redirectme.net> Subject: (dynamically) linking on FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Sep 2006 23:03:07 -0000 Hi there, I came across something I don't understand: Building Firefox from the origi= nal=20 sources failed because it had the linker options "-z defs" set while in the= =20 compiled code standard functions from libc like malloc, free, fprintf a.s.o= =2E=20 were used. Removing this flag, compiling worked and the program is also running fine. = But=20 I found out that ldd doesn't list libc or libpthread (since -pthread is als= o=20 used) for the module in question--it also doesn't for the module contained = in=20 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= =20 aren't undefined, but the application nevertheless works. What's up there? Regards, J=FCrgen