  | |  | Probably simple compile question using -lgssapi_krb5 | Probably simple compile question using -lgssapi_krb5 2005-06-28 - By John Haxby
Back nathan r. hruby wrote:
> On Mon, 27 Jun 2005, Garrick Staples wrote: > >> On Mon, Jun 27, 2005 at 06:10:43PM -0400, nathan r. hruby alleged: >> >>> ----BEGIN >>> gcc -o libssh2.so channel.o comp.o crypt.o hostkey.o kex.o mac.o >>> misc.o >>> packet.o scp.o session.o sftp.o userauth.o -L-L/usr/kerberos/lib -lssl >>> -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz >>> -lcrypto -L/usr/lib -lz -shared -lm >>> [snip] >> > > Yah, thanks, that's it indeed. This turns out to be some oddness in the > ./configure that does: > LDFLAGS="$LDFLAGS -L$OPENSSL_LIBDIR -lcrypto" > which is fine if ./configure figures it out, but when using pkg-get, it's > broke because $OPENSSL_LIBDIR gets set with 'pkg-config --libs openssl' > which includes an -L already :)
Last time I did this I also added:
-Wl,-rpath,/usr/kerberos/lib
I think otherwise the resultant binary can't find the library at run time. You can work around this with changes to /etc/ld.conf.so (or /etc/ld.conf.so.d) I imagine -- but please stay away from LD_LIBRARY_PATH if you possibly can.
jch
-- Taroon-list mailing list Taroon-list@(protected) http://www.redhat.com/mailman/listinfo/taroon-list
Earn $52 per hosting referral at Lunarpages.
|
|
 |