RE: Help: SASL doesn't want to build with heimdal


Subject: RE: Help: SASL doesn't want to build with heimdal
From: Klyne, Simon (Simon dot Klyne at commerzbankib dot com)
Date: Mon May 26 2003 - 06:51:57 EDT


I last looked at this about 6 weeks ago and cannot remember all the details,
but I have had a look at the scripts I used and the logs - config.log and a
capture of the entire output of './configure ...' which showed 'checking
GSSAPI... with implementation heimdal'

Unfortunately I have rebuilt the boxes and cannot easily re-run the
configure and make.
 
There are a few differences between your setup and mine:
  I build sasl 2.1.12 on both Solaris 8 and 9
  You're build 2.1.13 on Solaris 7

I used automake 1.7.2 and autoconf 2.57
I used 'SMakefile' from CVS to run the autoconf, before running SMakefile I
removed the files that 'automake --add-missing' grabs from the automake
installation so that SMakefile would install versions compatable with my
automake/autoconf

I then used a shell script to run the ./configure, the essence of it is:

bindir=/usr/local/bin/sparcv7
sbindir=/usr/local/sbin/sparcv7
libdir=/usr/local/lib
plugindir=/usr/lib/sasl2/sparcv7
sasldir=/usr/local/lib/sasl2/sparcv7
topdir=.

CC=/opt/SUNWspro/bin/cc CFLAGS="-O -xtarget=native -I/usr/local/include"
LD="/usr/ccs/bin/ld -L$libdir -R$libdir" LDFLAGS="-xtarget=native -L$libdir
-R$libdir" \
        $topdir/configure \
        --bindir=$bindir \
        --sbindir=$sbindir \
        --libdir=$libdir \
        --with-plugindir=$plugindir \
        --with-sasldir=$sasldir \
        --enable-gssapi=$libdir \
        --disable-krb4

I had heimdal libraries in /usr/local/lib.

NOTE that '--with-sasldir' is a local hack to get the plugins for 32bit and
64bit into different directories which is why I removed
CMU_ADD_LIBPATH("/usr/local/lib")

I used this recipe to successfully build sasl with either heimdal or MIT on
different boxes.

If you want I can send you 'config.log', the output of './configure ...', my
build script and a patch for the edits.

Hope this is of some use

Simon

-----Original Message-----
From: Rob Tanner [mailto:rtanner+cyrus at linfield dot edu]
Sent: Saturday, May 24, 2003 01:13
To: cyrus-sasl at lists dot andrew dot cmu dot edu
Cc: Klyne, Simon; Etienne Goyer
Subject: RE: Help: SASL doesn't want to build with heimdal

Well, I added both the heimdal lib path and include path and reran
autoconf. There absolutely is no mit kerberos on the system, yet
configure-run still picks mit. I did a make just to see if configure
did the right thing but just always says "mit". Nope, the make failed
because the mit libraries aren't installed.

What next?

-- Rob

--On Friday, May 23, 2003 06:02:01 PM +0200 "Klyne, Simon"
<Simon dot Klyne at commerzbankib dot com> wrote:

> search in configure.in for 'CMU_ADD_LIBPATH("/usr/local/lib")' which
> adds: "-L/usr/local/lib -R/usr/local/lib"
> to your build env before your "/usr/heimdal/lib"
> so what is happening is that configure is finding your MTI kerberos
> libraries before your heimdal libs ...
>
> IMHO the CMU_ADD_LIBPATH should be deleted and the library paths etc
> left to those of us configuring and building the software
>
> Simon
>
> -----Original Message-----
> From: Rob Tanner [mailto:rtanner+cyrus at linfield dot edu]
> Sent: Friday, May 23, 2003 17:03
> To: Etienne Goyer; cyrus-sasl at lists dot andrew dot cmu dot edu
> Subject: Re: Help: SASL doesn't want to build with heimdal
>
>
> I did it that way at first, and then at your suggestion, I did it
> again. The configure run still wants to use mit instead of heimdal.
> What I notice in the configure script is that it tests for heimdal
> and then defaults to mit, but what I can't figure out precisely
> (since reading configure scripts is not my forte) is what it's
> looking for that it doesn't find.
>
> One thing I noticed, and maybe you can shed some light. In the
> heimdal source tree, after the build, there are many more library
> components then ever show up in /usr/heimdal/lib after a make
> install. Is there something else I need to do in the heimdal
> installation that otherwise wasn't obvious to me in the docs?
>
> Thanks,
> Rob
>
> --On Friday, May 23, 2003 09:04:39 AM -0400 Etienne Goyer
> <etienne dot goyer at linuxquebec dot com> wrote:
>
>> I am not quite sure, but I think you need to specify
>> "--with-gssapi=/usr/heimdal" instead of
>> "--with-gssapi=/usr/heimdal/lib" to configure. At least, that's how
>> I do it and It Work For Me (TM).
>>
>>
>> On Thu, May 22, 2003 at 04:58:47PM -0700, Rob Tanner wrote:
>>> Hi,
>>>
>>> I've built and installed heimdal-0.6 kerberos5 and now trying to
>>> build Cyrus SASL 2.1.13 on Solaris 2.7. The problem is the
>>> configure run doesn't recognize heimdal and wants to build against
>>> MIT instead. I do not have the MIT libraries installed, although
>>> for whatever reason, the include files are on the system. When I
>>> removed them, the configure disables gssappi.
>>>
>>> I'm using the following pre-scripted configure process:
>>>
>>> # ! /usr/local/bin/bash
>>>
>>> export CPPFLAGS="-I/usr/local/ssl/include -I/usr/heimdal/include"
>>> export LDFLAGS="-L/usr/local/ssl/lib -L/usr/heimdal/lib"
>>>
>>> make distclean
>>>
>>> ./configure \
>>> --with-saslauthd \
>>> --with-pwcheck \
>>> --with-openssl \
>>> --enable-gssapi=/usr/heimdal/lib \
>>> --enable-plain \
>>> --with-ldap
>>>
>>> Any ideas?
>>>
>>> Thanks,
>>> Rob
>>>
>>>
>>> Rob Tanner
>>> Linfield College
>>> McMinnville, Oregon
>>> rtanner+cyrus at linfield dot edu
>>
>> --
>> Etienne Goyer Linux Québec Technologies Inc.
>> http://www.LinuxQuebec.com etienne dot goyer at linuxquebec dot com
>
>
>
>
> Rob Tanner
> Linfield College
> McMinnville, Oregon
> rtanner+cyrus at linfield dot edu

Rob Tanner
Linfield College,
McMinnville, Oregon
rtanner+cyrus at linfield dot edu







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD