  | |  | 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:00:08PM -0400, nathan r. hruby alleged: >> Hey folks, >> >> I can't seem to wrap my head around this today, perhaps someone can lend >> me a clue? >> >> I'm compiling libssh2. It's building fine but there are some problems >> making the shared library.. >> >> It's picking up LDFLAGS for krb and openssl, etc.. but sadly someplace >> it's also picking up an "-lgssapi_krb5" too (I think from the openssl >> pkg-config). This library doesn't seem to exist on my machine, but I get >> the feeling what it should be is "-llibgssapi_krb5" which does exist (yes, >> I do have krb-devel installed :) > > "-lgssapi_krb5" is correct. The -l option will look for libname.so or > libname.a. > >
Yah, but will it look for lib$libname.{so,a}. That's my particular problem, I have libgssapi_krb5, and need, gssapi_krb5 :)
>> So, should there be a gssapi_krb5, if so what package does it live in? If >> not, Is the openssl.pc pkg-info wrong or is libssh2's ./configure wrong >> about the need for -lgssapi_krb5? > > It probably just needs the directory with -L/usr/kerberos/lib >
Got that too...
Here's the compile line and the failing output (note that this fails when building under rpmbuild as well as manually)
----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.
Thanks!
-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.
|
|
 |