From owner-freebsd-hackers Thu Oct 22 16:10:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA19062 for freebsd-hackers-outgoing; Thu, 22 Oct 1998 16:10:27 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from george.lbl.gov (george.lbl.gov [131.243.2.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA19048; Thu, 22 Oct 1998 16:10:25 -0700 (PDT) (envelope-from jin@george.lbl.gov) Received: (from jin@localhost) by george.lbl.gov (8.8.8/8.8.8) id QAA08230; Thu, 22 Oct 1998 16:09:56 -0700 (PDT) Date: Thu, 22 Oct 1998 16:09:56 -0700 (PDT) From: Jin Guojun (FTG staff) Message-Id: <199810222309.QAA08230@george.lbl.gov> To: mike@smith.net.au Subject: Re: ld for loading dynamic library changed in 3.0-RELEASE? Cc: hackers@FreeBSD.ORG, jdp@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The testing library is ccs which is out there for many years. It has been used for SGI, DEC, SunOS4, Solaris, Solaris x86, FreeBSD 1.x - 2.x, BSD/OS 2.x - 4.0, Linux 2.0.x - 2.1.x. This is the first time failed to link programs under FreeBSD 3.0, so I created simple files a.c b.c c.c for testing. I thought this may be related to -aout options; but after -static flag is suceeded, I believe the problem is directly related to "ld". It is not related to ar or tsort because a b c are very simple files and -static flag for ld will resolve the symbol issue. -Jin > When you say "on all platforms", which one(s) have you tested? I ask > simply because under 3.0 we are using the GNU Binutils, so this would > appear to be either optional behaviour, or a bug that we might have > introduced. > > > libtest.so: Undefined symbol '_b_printf' referenced from text segment > > libtest.so: Undefined symbol '_c_printf' referenced from text segment > > > > However, "cc -o test test.c -static -ltest" is happy when no shared library > > is used. > > > > So, it looks like just for linking shared library. > > This would be one for Mr Binutils. John? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message