Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Apr 1998 10:01:04 -0700
From:      Fred Gilham <gilham@csl.sri.com>
To:        hackers@FreeBSD.ORG
Subject:   Re: Pesky ld Problem 
Message-ID:  <199804111701.KAA07030@snapdragon.csl.sri.com>
In-Reply-To: Your message of "Sat, 11 Apr 1998 06:28:09 EDT." <Pine.BSI.3.91.980411061756.9193B-100000@lily.ezo.net> 

next in thread | previous in thread | raw e-mail | index | archive | help

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



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