From owner-freebsd-hackers Sat Apr 11 10:03:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA00892 for freebsd-hackers-outgoing; Sat, 11 Apr 1998 10:03:09 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from csla.csl.sri.com (csla.csl.sri.com [192.12.33.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA00880 for ; Sat, 11 Apr 1998 10:03:02 -0700 (PDT) (envelope-from gilham@csl.sri.com) Received: from snapdragon.csl.sri.com (snapdragon.csl.sri.com [130.107.18.20]) by csla.csl.sri.com (8.8.7/8.8.7) with ESMTP id JAA15168 for ; Sat, 11 Apr 1998 09:57:48 -0700 (PDT) Received: from snapdragon.csl.sri.com (localhost.csl.sri.com [127.0.0.1]) by snapdragon.csl.sri.com (8.8.8/8.8.7) with ESMTP id KAA07030 for ; Sat, 11 Apr 1998 10:01:04 -0700 (PDT) Message-Id: <199804111701.KAA07030@snapdragon.csl.sri.com> To: hackers@FreeBSD.ORG Subject: Re: Pesky ld Problem In-reply-to: Your message of "Sat, 11 Apr 1998 06:28:09 EDT." Date: Sat, 11 Apr 1998 10:01:04 -0700 From: Fred Gilham Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jim Flowers wrote: > > Help. I am trying to compile picobsd .31 which proceeds quite nicely > until it comes time to link all of the crunched object files. This is > done with: > > cc -static -o outputfile objectfiles.o objectfiles.lo -libraryfiles > > but aborts with: > > Digesting symbol information: > > ld: No reference to __DYNAMIC > > This symbol doesn't appear in any of the object files or libraries so I > don't know where to start to fix it. > > Any clues? > > I've seen this happen when you try to link a shared (pic) object into a static binary. Make sure all your object files and libraries are static (compiled without the -fpic or -fPIC option to GCC), or link dynamically. -Fred Gilham gilham@csl.sri.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message