  | |  | Probably simple compile question using -lgssapi_krb5 | Probably simple compile question using -lgssapi_krb5 2005-06-27 - By nathan r. hruby
Back 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 >> /usr/bin/ld: cannot find -lgssapi_krb5 >> collect2: ld returned 1 exit status >> make[1]: *** [libssh2.so] Error 1 >> make[1]: Leaving directory `/home/nathan/src/rpm/BUILD/libssh2-0.10/src' >> make: *** [all] Error 1 >> ---- END >> >> AKIK, that looks right, which is why I'm befuddled. > > -L-L/usr/kerberos/lib <-- wrong!
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 :)
Argh.
-n -- -- ---- ---- ---- ---- ---- ---- ---- ----- nathan hruby <nhruby@(protected)> uga enterprise information technology services production systems support metaphysically wrinkle-free -- ---- ---- ---- ---- ---- ---- ---- -----
-- Taroon-list mailing list Taroon-list@(protected) http://www.redhat.com/mailman/listinfo/taroon-list
Earn $52 per hosting referral at Lunarpages.
|
|
 |