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

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





Hi,
	Anyone have any ideas on a problem I'm having.

If I compile heimdal 0.6.2 on Solaris 9 I can get it to compile fine unless 
I try to
compile a shared version of the library

setenv CCFLAGS "-O2 -D_REENTRANT"
setenv CFLAGS -O2
setenv CXXFLAGS -O2
setenv LDFLAGS "-R/usr/local/ssl/lib"

./configure --prefix=/usr/local --with-openssl=/usr/local/ssl
make
make install

Works fine

./configure --prefix=/usr/local --with-openssl=/usr/local/ssl --enable-shared
make

barfs with
gcc  -shared -Wl,-h -Wl,libsl.so.0 -o .libs/libsl.so.0.1.2  .libs/sl.o 
.libs/strtok_r.o .libs/snprintf.o .libs/strdup.o .libs/strupr.o 
.libs/getprogname.o -z allextract ../../lib/editline/.libs/libeditline.a -z 
defaultextract  -R/usr/local/ssl/lib:/usr/local/lib:/opt/gcc/default/lib 
-L/usr/local/ssl/lib -L/usr/local/lib -L/opt/gcc/default/lib/ -ltermcap 
-lresolv -lnsl -lsocket -lc
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 
../../lib/editline/.libs/libeditline.a(editline.o)
<unknown>                           0x17c8 
../../lib/editline/.libs/libeditline.a(editline.o)
<unknown>                           0x17cc 
../../lib/editline/.libs/libeditline.a(editline.o)

and lots more of this...

I added in the /opt/gcc/default/lib part to the LDFLAGS later as though 
editline compiled, if I tried to run testit, it failed being unable to find
a gcc library, but would run if i setenv LD_LIBRARY path.  That seemed to 
have been a red herring as the compile still fails as above.


Cheers,
	Duncan