zephyr-im / zephyr

An institutional/enterprise-scale distributed real-time messaging and notification system
35 stars 11 forks source link

`configure` misdiagnoses missing libdes as missing libkrb #86

Closed andersk-auto closed 10 years ago

andersk-auto commented 10 years ago

Similar to #63. With a libkrb but no libdes, I get:

{{{ checking for krb_rd_req in -lkrb4... no checking for krb_rd_req in -lkrb... no configure: error: Kerberos 4 libraries not found }}}

with this in config.log:

{{{ configure:12918: checking for krb_rd_req in -lkrb configure:12943: /usr/bin/gcc -nostdinc -o conftest -g -O2 -I/usr/cs/include -I/usr/cs/include -L/usr/cs/lib64 -Wl,-rpath,/usr/cs/lib64 -Wl,-rpat h-link,/usr/cs/lib64 -Wl,-nostdlib -Wl,-Y/usr/x86_64-redhat-linux/lib64:/lib64:/usr/lib64:/usr/x86_64-redhat-linux/lib:/usr/lib64:/lib:/usr/lib - Wl,-rpath-link,/usr/x86_64-redhat-linux/lib64 -Wl,-rpath-link,/lib64 -Wl,-rpath-link,/usr/lib64 -Wl,-rpath-link,/usr/x86_64-redhat-linux/lib -Wl, -rpath-link,/usr/lib64 -Wl,-rpath-link,/lib -Wl,-rpath-link,/usr/lib -L/usr/cs/lib conftest.c -lkrb -ldes >&5 /usr/bin/ld: cannot find -ldes collect2: ld returned 1 exit status ... configure:12952: result: no configure:12957: error: Kerberos 4 libraries not found }}}

An older static libkrb.a will likely have a libdes dependency and need us to link against it. But a newer, shared libkrb will not, and may not have the dependency, and in fact libdes may not exist at all. For example, this happens when building kth-krb against OpenSSL.

andersk-auto commented 10 years ago

Imported from trac issue 86. Created by jhutz@CS.CMU.EDU on 2013-01-29T02:41:42, last modified: 2013-01-31T08:13:40