View previous topic :: View next topic |
Author |
Message |
Ranthog Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 11 Jun 2003 Posts: 99
|
Posted: Mon Feb 09, 2004 6:51 am Post subject: Compile error when compiling fetchmail 6.2.4 with kerberos |
|
|
I get this error when compiling fetchmail with kerberos support.
Code: | checking for inner_connect... no
checking for Kerberos V in /usr/kerberos... not found
checking for Kerberos V in /usr/local/krb5... not found
checking for Kerberos V in /usr/athena... not found
checking for Kerberos V in /usr... found
checking for krb5_des_string_to_key in -lcrypto... no
checking for krb5_des_string_to_key in -lk5crypto... no
configure: error: Kerberos 5 DES libraries not found
!!! ERROR: net-mail/fetchmail-6.2.4 failed.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed
|
And I've installed mit-krb5 package. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Skotlex Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 13 Mar 2004 Posts: 309
|
Posted: Fri Apr 16, 2004 1:30 am Post subject: |
|
|
not fair, I ran into this same problem....
And I am trying to install Fetchmail 6.2.5 (with Heimdal 0.6.1 providing virtual/krb5)
Why is it failing and why so very few have bumped into this issue?
Code: |
checking for Kerberos V in /usr/kerberos... not found
checking for Kerberos V in /usr/local/krb5... not found
checking for Kerberos V in /usr/athena... not found
checking for Kerberos V in /usr... not found
configure: error: Kerberos 5 libraries not found
|
What file is it looking for that it can't find? Is it an executable? An include file? As I dig into the configure script...
Code: |
#define KERBEROS_V5 1
_ACEOF
CEFLAGS="$CEFLAGS -I/usr/include/kerberosV"
LIBS="$LIBS -lasn1 -lkrb5 -lcom_err -lkafs"
else
if test "$with_kerberos5" != "yes"
then
LDEFLAGS="$LDEFLAGS -L${with_kerberos5}/lib"
searchdirs="$with_kerberos5"
else
searchdirs="/usr/kerberos /usr/local/krb5 /usr/athena /usr"
fi
with_kerberos5=
for dir in $searchdirs
do echo "$as_me:$LINENO: checking for Kerberos V in $dir" >&5
echo $ECHO_N "checking for Kerberos V in $dir... $ECHO_C" >&6
if test -f "$dir/include/krb5.h"
then
ac_krblibs=
if test -f "$dir/include/roken.h"
then
ac_krblibs="-lasn1 -lroken -lcom_err"
echo "$as_me:$LINENO: result: Heimdal found" >&5
echo "${ECHO_T}Heimdal found" >&6
|
That's quite a lot of code, but from what I can gather, it first looks for a file called krb5.h and then one called roken.h. And by doing a small search... I found:
Code: |
/usr/include/heimdal/krb5.h
/usr/include/heimdal/roken.h
|
Ok this is wacko. The configure script is looking for ./include/*.h files of any prefix you give it, but heimdal is installed the other way around as /include/heimdal! This will never work as it is... if i say the prefix is /usr, the configure script looks for /usr/include/krb5.h, if I say the prefix is /usr/include/, it'll look for /usr/include/include/krb5.h, if I say the prefix is /usr/include/heimdal/ then it'll look for /usr/include/heimdal/include!
What the bonkers?
I take a look at the structure of /usr, and it looks like /usr/include/library name/*.h is the standard.
So is this a bug that needs to be reported to the folks at fetchmail? The configure script has a bunch of comments saying that indeed it was tested with heimdal, does that means that heimdal really installs itself as /usr/heimdal/include as default? Is Gentoo then installing it in a funky way? O.o
Who's right, who's wrong.. who's to blame.. where does the bug report goes to.... so many questions... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TopherC n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Oct 2003 Posts: 47 Location: Cornell University
|
Posted: Sat Nov 13, 2004 3:38 pm Post subject: Resolution? |
|
|
Hi,
Was this issue ever resolved? I swapped mit-krb5 with heimdal (to get KDE 3.3.1 I think) as many folks have been doing. But now fetchmail won't run or recompile for the exact same reason. I've tried 6.2.5 and 6.2.5-r1 (which I hoped would contain the patch) with the same result. Is there a simple way I can patch the fetchmail config?
Thanks! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TopherC n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Oct 2003 Posts: 47 Location: Cornell University
|
Posted: Sun Nov 14, 2004 6:52 am Post subject: |
|
|
Well, I'm no expert here but I might as well roll up my sleeves and give it a try.
I've made a couple changes to /var/tmp/portage/fetchmail-6.2.5-r1/work/fetchmail-6.2.5/configure which help get a little further along, but I'm still having problems.
The first problem in configure was that the Heimdal library was not detected basically for reasons mentioned in the second post in this thread.
1) configure looks for roken.h in $dir/include/ (where $dir is, at some point, /usr). but roken.h lives in /usr/include/heimdal/roken.h This needed to be fixed in configure but, reviewing my changes, I don't think I've yet made all the changes necessary.
2) It wants to link with the libgssapi_krb5 library, instead of simply libgssapi which indeed comes with heimdal. I added symlinks in /usr/lib to correct this. Very ugly but I want to get this working before making it work properly.
3) It searches for krb5_des_string_to_key in libcrypto, which is not there in the heimdal implementation. But why use krb5_des_string_to_key when none of the actual code uses this function? It *does* use des_key_sched, which *is* in libcrypto. But next there's going to be a case-matching problem I think because libcrypto in heimdal has DES_key_sched instead. Well that's going to be a later challenge. So to get configure to run, I had to replace all occurences of "krb5_des_string_to_key" with "DES_key_sched".
Now I'm having compile problems, so there's more work to do. It looks like fetchmail is not even close to being compatable with heimdal, or at least heimdal as installed in gentoo. Ugh. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|