Subject: toolchain/26516: 2.0_BETA build fails in racoon/crypto_openssl.c
To: None <gnats-bugs@gnats.NetBSD.org>
From: Matthew Mondor <mmondor@gmail.com>
List: netbsd-bugs
Date: 08/02/2004 09:41:37
>Number:         26516
>Category:       toolchain
>Synopsis:       2.0_BETA build fails in racoon/crypto_openssl.c
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 02 13:52:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Matthew Mondor
>Release:        NetBSD 2.0_BETA
>Organization:
>Environment:
System: NetBSD ginseng.xisop 2.0_BETA NetBSD 2.0_BETA (GINSENG) #0: Tue Jul=
 20 21:36:59 EDT 2004 root@ginseng.xisop:/home/src/sys/arch/i386/compile/GI=
NSENG i386
Architecture: i386
Machine: i386
>Description:
	I wasn't sure if this belonged to toolchain category, but it appears
	related to build scripts and Makefile problems:

	Today's 2.0_BETA sources from CVS do not build properly, the place
	where it is failing seems to be racoon/crypto_openssl.c. I have
	noticed that there were recent pullups related to racoon, perhaps
	that they are responsible for this problem... There are generated
	warnings, and the build scripts are using -Werror, which perhaps
	is the source of the problems.

	Here is a session log (I use /usr/src symlink to /home/src):


dependall =3D=3D=3D> usr.sbin/racoon/racoon
#   compile  racoon/crypto_openssl.o
/usr/tools/bin/i386--netbsdelf-gcc -march=3Dpentiumpro -O2 -pipe  -Wall -Ws=
trict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wn=
o-traditional -Wno-uninitialized  -Werror   -DINET6 -DHAVE_FUNCTION_MACRO=
=3D1 -DHAVE_LIBCRYPTO=3D1 -DHAVE_LIBL=3D1 -DHAVE_LIBY=3D1 -DENABLE_IPV6=3D1=
 -DADVAPI=3D1 -DHAVE_GETADDRINFO=3D1 -DHAVE_GETNAMEINFO=3D1 -DSTDC_HEADERS=
=3D1 -DHAVE_SYS_WAIT_H=3D1 -DHAVE_LIMITS_H=3D1 -DHAVE_SYS_TIME_H=3D1 -DHAVE=
_UNISTD_H=3D1 -DHAVE_STDARG_H=3D1 -DHAVE_VARARGS_H=3D1 -DTIME_WITH_SYS_TIME=
=3D1 -DRETSIGTYPE=3Dvoid -DHAVE_VPRINTF=3D1 -DHAVE_GETTIMEOFDAY=3D1 -DHAVE_=
SELECT=3D1 -DHAVE_SOCKET=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRTOL=3D1 -DHAVE_S=
TRTOUL=3D1 -DHAVE_STRDUP=3D1 -DHAVE_GETIFADDRS=3D1 -DHAVE_ARC4RANDOM=3D1 -D=
HAVE_PFKEYV2 -DYIPS_DEBUG -DIPSEC  -I. -I/home/src/crypto/dist/kame/racoon =
-DSYSCONFDIR=3D\"/etc/racoon\" -DHAVE_OPENSSL_OPENSSLV_H=3D1 -DYY_NO_UNPUT =
-I/home/src/crypto/dist/kame/libipsec -I/home/src/crypto/dist/kame/racoon/m=
issing -DHAVE_GSSAPI -I/usr/NetBSD-new-build/usr/include/krb5 -DHAVE_SIGNIN=
G_C=3D1 -DHAVE_OPENSSL_PEM_H=3D1 -DHAVE_OPENSSL_X509_H=3D1  -DHAVE_OPENSSL_=
EVP_H=3D1  -nostdinc -isystem /usr/NetBSD-new-build/usr/include  -c    /hom=
e/src/crypto/dist/kame/racoon/crypto_openssl.c
/home/src/crypto/dist/kame/racoon/crypto_openssl.c: In function `eay_str2as=
n1dn':
/home/src/crypto/dist/kame/racoon/crypto_openssl.c:186: warning: dereferenc=
ing type-punned pointer will break strict-aliasing rules
/home/src/crypto/dist/kame/racoon/crypto_openssl.c: In function `eay_cmp_as=
n1dn':
/home/src/crypto/dist/kame/racoon/crypto_openssl.c:215: warning: dereferenc=
ing type-punned pointer will break strict-aliasing rules
/home/src/crypto/dist/kame/racoon/crypto_openssl.c:218: warning: dereferenc=
ing type-punned pointer will break strict-aliasing rules

*** Failed target:  crypto_openssl.o
*** Failed command: /usr/tools/bin/i386--netbsdelf-gcc -march=3Dpentiumpro =
-O2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -W=
no-sign-compare -Wno-traditional -Wno-uninitialized -Werror -DINET6 -DHAVE_=
FUNCTION_MACRO=3D1 -DHAVE_LIBCRYPTO=3D1 -DHAVE_LIBL=3D1 -DHAVE_LIBY=3D1 -DE=
NABLE_IPV6=3D1 -DADVAPI=3D1 -DHAVE_GETADDRINFO=3D1 -DHAVE_GETNAMEINFO=3D1 -=
DSTDC_HEADERS=3D1 -DHAVE_SYS_WAIT_H=3D1 -DHAVE_LIMITS_H=3D1 -DHAVE_SYS_TIME=
WITH_SYS_TIME=3D1 -DRETSIGTYPE=3Dvoid -DHAVE_VPRINTF=3D1 -DHAVE_GETTIMEOFDA=
Y=3D1 -DHAVE_SELECT=3D1 -DHAVE_SOCKET=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRTOL=
=3D1 -DHAVE_STRTOUL=3D1 -DHAVE_STRDUP=3D1 -DHAVE_GETIFADDRS=3D1 -DHAVE_ARC4=
RANDOM=3D1 -DHAVE_PFKEYV2 -DYIPS_DEBUG -DIPSEC -I. -I/home/src/crypto/dist/=
kame/racoon -DSYSCONFDIR=3D\"/etc/racoon\" -DHAVE_OPENSSL_OPENSSLV_H=3D1 -D=
YY_NO_UNPUT -I/home/src/crypto/dist/kame/libipsec -I/home/src/crypto/dist/k=
ame/racoon/missing -DHAVE_GSSAPI -I/usr/NetBSD-new-build/usr/include/krb5 -=
DHAVE_SIGNING_C=3D1 -DHAVE_OPENSSL_PEM_H=3D1 -DHAVE_OPENSSL_X509_H=3D1 -DHA=
VE_OPENSSL_EVP_H=3D1 -nostdinc -isystem /usr/NetBSD-new-build/usr/include -=
c /home/src/crypto/dist/kame/racoon/crypto_openssl.c
*** Error code 1

Stop.
nbmake: stopped in /home/src/usr.sbin/racoon/racoon

*** Failed target:  dependall
*** Failed command: cd /home/src/usr.sbin/racoon/racoon; /usr/tools/bin/nbm=
ake realall
*** Error code 1

Stop.
nbmake: stopped in /home/src/usr.sbin/racoon/racoon

*** Failed target:  dependall-racoon
*** Failed command: targ=3Ddependall;dir=3Dracoon; case "$dir" in /*) echo =
"$targ =3D=3D=3D> $dir"; cd "$dir"; /usr/tools/bin/nbmake "_THISDIR_=3D$dir=
/" $targ; ;; *) echo "$targ =3D=3D=3D> usr.sbin/racoon/$dir"; cd "/home/src=
/usr.sbin/racoon/$dir"; /usr/tools/bin/nbmake "_THISDIR_=3Dusr.sbin/racoon/=
$dir/" $targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /home/src/usr.sbin/racoon

*** Failed target:  dependall-racoon
*** Failed command: targ=3Ddependall;dir=3Dracoon; case "$dir" in /*) echo =
"$targ =3D=3D=3D> $dir"; cd "$dir"; /usr/tools/bin/nbmake "_THISDIR_=3D$dir=
/" $targ; ;; *) echo "$targ =3D=3D=3D> usr.sbin/$dir"; cd "/home/src/usr.sb=
in/$dir"; /usr/tools/bin/nbmake "_THISDIR_=3Dusr.sbin/$dir/" $targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /home/src/usr.sbin

*** Failed target:  dependall-usr.sbin
*** Failed command: targ=3Ddependall;dir=3Dusr.sbin; case "$dir" in /*) ech=
o "$targ =3D=3D=3D> $dir"; cd "$dir"; /usr/tools/bin/nbmake "_THISDIR_=3D$d=
ir/" $targ; ;; *) echo "$targ =3D=3D=3D> $dir"; cd "/home/src/$dir"; /usr/t=
ools/bin/nbmake "_THISDIR_=3D$dir/" $targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /home/src

*** Failed target:  do-build
*** Failed command: (cd /home/src && /usr/tools/bin/nbmake dependall BUILD_=
tools=3Dno BUILD_lib=3Dno)
*** Error code 1

Stop.
nbmake: stopped in /home/src

*** Failed target:  build
*** Failed command: (cd /home/src && /usr/tools/bin/nbmake do-build)
*** Error code 1

Stop.
nbmake: stopped in /home/src

ERROR: Failed to make build
*** BUILD ABORTED ***

>How-To-Repeat:
	cd /usr/src
	cvs -q update -dP
	./build.sh -D /usr/NetBSD-new-build -O /usr/obj -T /usr/tools build
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
 To: gnats-bugs@gnats.NetBSD.org
 Subject:=20
 From: mmondor@gmail.com
 Reply-To: mmondor@gmail.com
 X-send-pr-version: 3.95
 
 
 	Userland 2.0_BETA 12 June sources, Kernel 2.0_BETA 20 July sources