Re: New kerberos 5 failed to build

From: Jeremy Messenger <mezz7_at_cox.net>
Date: Thu, 03 Mar 2005 16:52:53 -0600
On Tue, 1 Mar 2005 21:44:18 -0500, Alec Berryman <alec_at_thened.net> wrote:

> Chen Lihong on 2005-03-02 10:15:53 +0800:
>
>> I cvsup'ed src this morning (2 March 01:00 UTC). And run this:
>
> <snip>
>
>> -c  
>> /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/changepw.c
>> /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/changepw.c:  
>> In function `setpw_send_request':
>> /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/changepw.c:170:  
>> error: syntax error before "chpw"
>> /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/changepw.c:188:  
>> error: `chpw' undeclared (first use in this function)
>> /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/changepw.c:188:  
>> error: (Each undeclared identifier is reported only once
>> /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/changepw.c:188:  
>> error: for each function it appears in.)
>
> I got the same error on 5-STABLE from a cvsup an hour ago, with and
> without ccache.  I don't feel like this was caused by the Heimdal
> update half a week ago; it compiled fine around the day before
> yesterday.

For some reason, it doesn't like the CC and CXX if they were poked. I used  
to get the same errors until I disable the CC and CXX in the make.conf. If  
you are using same exactly from ccache's guide, then you should change  
like this..

=================================
.if !defined(NOCCACHE)
.if ${.CURDIR:M/usr/src*}
CC=/usr/local/libexec/ccache/cc
CXX=/usr/local/libexec/ccache/c++
.else
CC=cc
CXX=c++
.endif
.else
CC=/usr/bin/cc
CXX=/usr/bin/c++
.endif
=================================

to...

=================================
.if !defined(NOCCACHE)
.if ${.CURDIR:M/usr/src*}
#CC=/usr/local/libexec/ccache/cc
#CXX=/usr/local/libexec/ccache/c++
.else
CC=cc
CXX=c++
.endif
.else
CC=/usr/bin/cc
CXX=/usr/bin/c++
.endif
=================================

The 'make buildworld' works now without ccache and with CC/CXX untouch.

Cheers,
Mezz


-- 
mezz7_at_cox.net  -  mezz_at_FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  gnome_at_FreeBSD.org
Received on Thu Mar 03 2005 - 21:51:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:29 UTC