info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Kerberos support: Makefile mod


From: Tracy Brown
Subject: RE: Kerberos support: Makefile mod
Date: Thu, 15 Feb 2001 13:41:58 -0800

Regarding compiling CVS-1.11 with krb51.2.1 I found that the Makefile was
incorrect with it's referece to the crypto libraries. To fix this I modified
the LIBS reference in the src/Makefile.

For example:

-- the configure --
./configure --with-gssapi=/usr/local/krb5 --enable-encrypt --enable-server
<...snip...>
default place for GSSAPI is /usr/local/krb5
checking for krb5.h... yes
checking for gssapi.h... no
checking for gssapi/gssapi.h... yes
checking for gssapi/gssapi_generic.h... yes
<...snip...>

The LIBS reference in src/Makefile:
-- orig --
LIBS =  -L/usr/local/krb5/lib -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err

-- modified --
LIBS =  -L/usr/local/krb5/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err

The problem item is the -lcrypto - it needs to be changed to -lk5crypto
since the library in the krb5 lib directory is: libk5crypto.a

Hope this helps folks using Kerberos V5

Cheers, Tracy.

-----Original Message-----
From: Derek R. Price [mailto:address@hidden
Sent: Wednesday, February 14, 2001 7:46 AM
To: Furmaniuk, Michael
Cc: 'address@hidden'
Subject: Re: Kerberos support


You may have installed liraries into a non-standard location.

The short version of the answer is that you should use the find command to
find
where each of those libraries is installed on your system, then make sure
that
each of those paths is available to the compiler minus the 'lib' directory.

Normally this is possible simply by supplying the single --with-gssapi=<dir>
option, so I am suspicious that you are specifying a different location from
the one you installed GSSAPI to.

Derek

--
Derek Price                      CVS Solutions Architect (
http://CVSHome.org )
mailto:address@hidden     OpenAvenue ( http://OpenAvenue.com )
--
"I tried to think but nothing happened!"
            - Curly

"Furmaniuk, Michael" wrote:

>   I thought so too, but from some experimentation if I leave out the
> "include/gssapi" directory I get the same compile error but with more
> library files it cannot find.  The error then shows as:
>
> -L/usr/local/lib -lgssapi -lkrb5 -lasn1 -ldes -lroken  -o cvs
> ld: fatal: library -lgssapi: not found
> ld: fatal: library -lasn1: not found
> ld: fatal: library -ldes: not found
> ld: fatal: library -lroken: not found
> ld: fatal: File processing errors. No output written to cvs
> collect2: ld returned 1 exit status
>
> -----Original Message-----
> From: Derek R. Price [mailto:address@hidden
> Sent: Wednesday, February 14, 2001 9:32 AM
> To: Furmaniuk, Michael
> Cc: 'address@hidden'
> Subject: Re: Kerberos support
>
> "Furmaniuk, Michael" wrote:
>
> >  ./configure --cache-file=/home/mfurmani/cvs.build
--prefix=/usr/local/bin
> > --enable-client --enable-encryption --enable-server
> --includedir=/usr/local
> > --libdir=/usr/local --with-gssapi=/usr/local/include/gssapi
--without-krb4
>
> This is wrong.  At the least I expect you wanted to specify
> "--with-gssapi=/usr/local".  From there the compilers and such should be
> able
> to find the lib and include directories it looks for, assuming you
provided
> the
> directory above where you found the includes.
>
> Derek


_______________________________________________
Info-cvs mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/info-cvs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]