[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiling heimdal 0.6.2 on Solaris 9 with --enable-shared

         using the gnu ld

setenv CC "gcc -B/path/to/gnuld/"

does the trick.

I've been staring at this one for a while.


At 14:55 30/06/2004, Brandon S. Allbery KF8NH wrote:
>On Wed, 2004-06-30 at 09:23, Duncan Brannen wrote:
> > .libs/getprogname.o -z allextract 
> ../../lib/editline/.libs/libeditline.a -z
> > Text relocation remains                         referenced
> >      against symbol                  offset      in file
> > <unknown>                           0x17bc
> > ../../lib/editline/.libs/libeditline.a(editline.o)
> > <unknown>                           0x17c0
> > ../../lib/editline/.libs/libeditline.a(editline.o)
> > <unknown>                           0x17c4
>Use GNU ld?
>This looks suspiciously like Sun reintroduced an ld bug I tripped over
>on some (not all) Solaris 7 boxes here:  if a static archive
>(libeditline.a in this case) has PIC objects in it, ld gets confused
>about whether it's shared or static.
>brandon s. allbery    [linux,solaris,freebsd,perl]     allbery@kf8nh.com
>system administrator      [WAY too many hats]        allbery@ece.cmu.edu
>electrical and computer engineering, carnegie mellon univ.         KF8NH