Buildworld error

Chris Pressey cpressey at catseye.mine.nu
Tue Mar 15 12:01:34 PST 2005


On Tue, 15 Mar 2005 04:20:06 -0800
walt <wa1ter at xxxxxxxxxxxxx> wrote:

> ===> usr.sbin/setkey
> cc -O -pipe  -g -I/usr/src/usr.sbin/setkey
> -I/usr/src/usr.sbin/setkey/../../lib/libipsec
> -I/usr/src/usr.sbin/setkey/../../lib/libipsec
> -I/usr/src/usr.sbin/setkey/../../sys/netkey -DIPSEC_DEBUG -DINET6
> -DYY_NO_UNPUT -I.    -c /usr/src/usr.sbin/setkey/setkey.c
> cc -O -pipe  -g -I/usr/src/usr.sbin/setkey
> -I/usr/src/usr.sbin/setkey/../../lib/libipsec
> -I/usr/src/usr.sbin/setkey/../../lib/libipsec
> -I/usr/src/usr.sbin/setkey/../../sys/netkey -DIPSEC_DEBUG -DINET6
> -DYY_NO_UNPUT -I.    -c parse.c
> cc -O -pipe  -g -I/usr/src/usr.sbin/setkey
> -I/usr/src/usr.sbin/setkey/../../lib/libipsec
> -I/usr/src/usr.sbin/setkey/../../lib/libipsec
> -I/usr/src/usr.sbin/setkey/../../sys/netkey -DIPSEC_DEBUG -DINET6
> -DYY_NO_UNPUT -I.    -c token.c
> /usr/src/usr.sbin/setkey/token.l: In function `yylex':
> /usr/src/usr.sbin/setkey/token.l:127: `ADD' undeclared (first use in
> this function)
> /usr/src/usr.sbin/setkey/token.l:128: `DELETE' undeclared <snippage>
> 
> The setkey code hasn't changed in months, so something else is wrong. 
> The problem started yesterday when libc didn't compile -- so I tried a
> 'make libraries' which finished okay, but then the setkey problem
> started. (I think I picked the wrong moment to cvsup.)

This weekend was not a happy time for Fred.  I built and installed world
and got a libc with the symbol getopt_long defined in it, which
prevented me from builing world again (most of the buildtools define
their own getopt_long...)

> Probably the libraries are not consistent with the rest of userland at
> this point, I would guess.  Any ideas how to fix it?

The only thing I can suggest is to download a recent (but not TOO
recent - the 9th worked for me) snapshot, mount it with vnconfig, and
copy the files you need off of it.

Note that the above error looks like a wrong header, not a wrong
library... maybe see what .h files token.l pulls in, and restore them
from the snapshot.

-Chris





More information about the Bugs mailing list