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

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

	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 CFLAGS -O2
setenv CXXFLAGS -O2
setenv LDFLAGS "-R/usr/local/ssl/lib"

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

Works fine

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

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 
<unknown>                           0x17c0 
<unknown>                           0x17c4 
<unknown>                           0x17c8 
<unknown>                           0x17cc 

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.