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

Re: OSF sia stuff in 0.4b



	From:  Assar Westerlund <assar@sics.se>
	Date:  09 Jul 2001 16:45:55 +0200


> Autoconf 2.50 or higher is required.  The appended patch should
> include all the generated files that are required.

Thanks for that.  With that patch there is just one remaining problem - with 
the linking stage of libsia_krb5.so - which may be a problem with how I'm 
invoking configure but I can't see how to change it.

On alpha's I run configure as:

 ./configure --enable-osfc2 --enable-shared CPPFLAGS=-I/usr/local/ssl/include LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib -R/usr/local/lib"

so that it can find the openssl libraries. This leaves libtool to convert the 
-R's into the appropriate -rpath invocation which works everywhere except the 
sia library where the link is done explicitly so we get:

ld -shared -o libsia_krb5.so -L/usr/local/ssl/lib -R/usr/local/ssl/lib -R/usr/local/lib -rpath /usr/heimdal/lib -hidden -exported_symbol siad_\*  sia.o posix_getpw.o  ../../../lib/krb5/.libs/libkrb5.a ../../../lib/asn1/.libs/libasn1.a  -lcrypto ../../../lib/com_err/.libs/libcom_err.a ../../../lib/roken/.libs/libroken.a  -lc
ld:
-R/usr/local/ssl/lib: Unknown flag

Replacing the -R's with an rpath we get:

ld -shared -o libsia_krb5.so -L/usr/local/ssl/lib -rpath /usr/local/ssl/lib:/usr/local/lib -rpath /usr/heimdal/lib -hidden -exported_symbol siad_\* sia.o
posix_getpw.o ../../../lib/krb5/.libs/libkrb5.a ../../../lib/asn1/.libs/libasn1.a -lcrypto ../../../lib/com_err/.libs/libcom_err.a ../../../lib/roken/.libs/libroken.a -lc
ld:
Warning: Unresolved:
__eprintf

which has two problems that I can see:
  The rpath stored in the library is just /usr/heimdal/lib
and
  __eprintf is unresolved as libgcc.a isn't linked in explicitly and its not 
using the gcc frontend to get it implicitly.

cheers
mark