From owner-freebsd-ports Wed Apr 3 15:35:53 2002 Delivered-To: freebsd-ports@freebsd.org Received: from smtp016.mail.yahoo.com (smtp016.mail.yahoo.com [216.136.174.113]) by hub.freebsd.org (Postfix) with SMTP id 0A14C37B405 for ; Wed, 3 Apr 2002 15:35:46 -0800 (PST) Received: from 24-205-110-70.wc-dyn.charterpipeline.net (HELO misty) (psripitisawad@24.205.110.70 with login) by smtp.mail.vip.sc5.yahoo.com with SMTP; 3 Apr 2002 23:35:45 -0000 Message-ID: <001f01c1db03$c76b5710$0100a8c0@misty> From: "Peter Sripitisawad" To: Subject: Configure Bug: cyrus-sasl-1.5.27_2 / krb5- unable to detect MIT Kerberos when Heimdal libraries and includes are installed. Date: Wed, 3 Apr 2002 03:36:21 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001C_01C1DAC0.B907D9C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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
The current port of cyrus-sasl-1.5.27_2 = has the=20 following installation bugs:
 
1)
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.
 
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.
 
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.
 
2)
Problem:   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.
 
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.
 
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.
 
 
Peter Sripitisawad
psripitisawad@yahoo.com
 
end
 
------=_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