Date: Wed, 3 Apr 2002 03:36:21 -0800 From: "Peter Sripitisawad" <psripitisawad@yahoo.com> To: <freebsd-ports@freebsd.org> Subject: Configure Bug: cyrus-sasl-1.5.27_2 / krb5- unable to detect MIT Kerberos when Heimdal libraries and includes are installed. Message-ID: <001f01c1db03$c76b5710$0100a8c0@misty>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. ------=_NextPart_000_001C_01C1DAC0.B907D9C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable The current port of cyrus-sasl-1.5.27_2 has the following installation = bugs: 1) Problem: If $KRB5_HOME is not defined to where krb5 (MIT kerberos5) was = installed, the configure scripts fail to locate the include file = gssapi.h With $KRB5_HOME defined, an --enable-GSSAPI flag will be set = to true (value=3D$KRB5_HOME) causing the configure scripts to hunt and = look for the required include files and libraries with $KRB5_HOME as the = base. Work-around: setenv $KRB5_HOME before "make" or set the option KRB5_HOME = in /etc/make.conf. The krb5 install defaults to /usr/local so the = option in make.conf only needs to be uncommented. Solution: Patch the cyrus-sasl Makefile to default $KRB5_HOME to = /usr/local if it is not defined. This is most likely to not be defined = since most people will not uncomment #KRB5_HOME in make.conf since the = default is generally assumed. 2) Problem: With --enable-GSSAPI=3D$KRB5_HOME properly set, the configure = script then attempts to determine if heimdal is installed. If Heimdal = libraries are not installed/detected the configure script defaults to = MIT Kerberos. Problem is if heimdal was already installed, or a "make = world" was initiated even with "MAKE_KERBEROS5" =3D no (make world will = still compile and install heimdal libraries without installing the = executables... stupid), this will trip up the configure script to ignore = the installed MIT Kerberos and compile to Heimdal. Work-around: I Ctrl-C on make at configure stage, and removed reference = to the m4script cmulocal/heimdal.m4 in the configure.in files. This = causes the lookup to not occur and naturally default to MIT Kerberos. Solution: Detect for both versions of Kerberos and provide an option = for user to choose version of kerberos during install if both are = found.... this is a bug on CMU's side and not FreeBSD... though a = FreeBSD fix would be a good idea on preventing make world from COMPILING = and INSTALLING libraries for programs that it was told to not install = for! ... naturally the same goes for various other dependencies, i.e = pam_kerberos*, etc. The present state of make world is not very = elegant. Peter Sripitisawad psripitisawad@yahoo.com end ------=_NextPart_000_001C_01C1DAC0.B907D9C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2713.1100" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>The current port of cyrus-sasl-1.5.27_2 = has the=20 following installation bugs:</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>1)</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Problem: If $KRB5_HOME is not = defined to=20 where krb5 (MIT kerberos5) was installed, the configure scripts fail to = locate=20 the include file gssapi.h With $KRB5_HOME defined, an = --enable-GSSAPI flag=20 will be set to true (value=3D$KRB5_HOME) causing = the configure=20 scripts to hunt and look for the required include files and libraries = with=20 $KRB5_HOME as the base.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Work-around: setenv $KRB5_HOME before = "make" or set=20 the option KRB5_HOME in /etc/make.conf. The krb5 install defaults = to=20 /usr/local so the option in make.conf only needs to be = uncommented.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Solution: Patch the = cyrus-sasl Makefile=20 to default $KRB5_HOME to /usr/local if it is not defined. This is = most=20 likely to not be defined since most people will not uncomment #KRB5_HOME = in=20 make.conf since the default is generally assumed.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>2)</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Problem: </FONT><FONT = face=3DArial=20 size=3D2> With --enable-GSSAPI=3D$KRB5_HOME properly set, the = configure script=20 then attempts to determine if heimdal is installed. If = Heimdal=20 libraries are not installed/detected the configure script defaults to = MIT=20 Kerberos. Problem is if heimdal was already installed, or a "make = world"=20 was initiated even with "MAKE_KERBEROS5" =3D no (make world will still = compile and=20 install heimdal libraries without installing the executables... stupid), = this=20 will trip up the configure script to ignore the installed MIT Kerberos = and=20 compile to Heimdal.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Work-around: I Ctrl-C on make at = configure=20 stage, and removed reference to the m4script cmulocal/heimdal.m4 in the=20 configure.in files. This causes the lookup to not occur and = naturally=20 default to MIT Kerberos.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Solution: Detect for both = versions of=20 Kerberos and provide an option for user to choose version of = kerberos=20 during install if both are found.... this is a bug on CMU's side and not = FreeBSD... though a FreeBSD fix would be a good idea on preventing make = world=20 from COMPILING and INSTALLING libraries for programs that it was = told to=20 not install for! ... naturally the same goes for various other = dependencies, i.e pam_kerberos*, etc. The present state = of make=20 world is not very elegant.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Peter Sripitisawad</FONT></DIV> <DIV><FONT face=3DArial size=3D2><A=20 href=3D"mailto:psripitisawad@yahoo.com">psripitisawad@yahoo.com</A></FONT= ></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>end</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML> ------=_NextPart_000_001C_01C1DAC0.B907D9C0-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001f01c1db03$c76b5710$0100a8c0>