Subject: toolchain/26892: 2.0_BETA build fails in racoon/crypto_openssl.c
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <mmondor@gmail.com>
List: netbsd-bugs
Date: 08/02/2004 09:46:02
>Number: 26892
>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: Thu Sep 09 07:33:01 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/GINSENG 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 ===> usr.sbin/racoon/racoon
# compile racoon/crypto_openssl.o
/usr/tools/bin/i386--netbsdelf-gcc -march=pentiumpro -O2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized -Werror -DINET6 -DHAVE_FUNCTION_MACRO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBL=1 -DHAVE_LIBY=1 -DENABLE_IPV6=1 -DADVAPI=1 -DHAVE_GETADDRINFO=1 -DHAVE_GETNAMEINFO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDARG_H=1 -DHAVE_VARARGS_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_STRDUP=1 -DHAVE_GETIFADDRS=1 -DHAVE_ARC4RANDOM=1 -DHAVE_PFKEYV2 -DYIPS_DEBUG -DIPSEC -I. -I/home/src/crypto/dist/kame/racoon -DSYSCONFDIR=\"/etc/racoon\" -DHAVE_OPENSSL_OPENSSLV_H=1 -DYY_NO_UNPUT -I/home/src/crypto/dist/kame/libipsec -I/home/src/crypto/dist/kame/racoon/missing -DHAVE_GSSAPI -I/usr/NetBSD-new-build/usr/include/krb5 -DHAVE_SIGNING_!
C=1 -DHAVE_OPENSSL_PEM_H=1 -DHAVE_OPENSSL_X509_H=1 -DHAVE_OPENSSL_EVP_H=1 -nostdinc -isystem /usr/NetBSD-new-build/usr/include -c /home/src/crypto/dist/kame/racoon/crypto_openssl.c
/home/src/crypto/dist/kame/racoon/crypto_openssl.c: In function `eay_str2asn1dn':
/home/src/crypto/dist/kame/racoon/crypto_openssl.c:186: warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/src/crypto/dist/kame/racoon/crypto_openssl.c: In function `eay_cmp_asn1dn':
/home/src/crypto/dist/kame/racoon/crypto_openssl.c:215: warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/src/crypto/dist/kame/racoon/crypto_openssl.c:218: warning: dereferencing type-punned pointer will break strict-aliasing rules
*** Failed target: crypto_openssl.o
*** Failed command: /usr/tools/bin/i386--netbsdelf-gcc -march=pentiumpro -O2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized -Werror -DINET6 -DHAVE_FUNCTION_MACRO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBL=1 -DHAVE_LIBY=1 -DENABLE_IPV6=1 -DADVAPI=1 -DHAVE_GETADDRINFO=1 -DHAVE_GETNAMEINFO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDARG_H=1 -DHAVE_VARARGS_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_STRDUP=1 -DHAVE_GETIFADDRS=1 -DHAVE_ARC4RANDOM=1 -DHAVE_PFKEYV2 -DYIPS_DEBUG -DIPSEC -I. -I/home/src/crypto/dist/kame/racoon -DSYSCONFDIR=\"/etc/racoon\" -DHAVE_OPENSSL_OPENSSLV_H=1 -DYY_NO_UNPUT -I/home/src/crypto/dist/kame/libipsec -I/home/src/crypto/dist/kame/racoon/missing -DHAVE_GSSAPI -I/usr/NetBSD-new-build/usr/include/krb5 !
-DHAVE_SIGNING_C=1 -DHAVE_OPENSSL_PEM_H=1 -DHAVE_OPENSSL_X509_H=1 -DHAVE_OPENSSL_EVP_H=1 -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/nbmake realall
*** Error code 1
Stop.
nbmake: stopped in /home/src/usr.sbin/racoon/racoon
*** Failed target: dependall-racoon
*** Failed command: targ=dependall;dir=racoon; case "$dir" in /*) echo "$targ ===> $dir"; cd "$dir"; /usr/tools/bin/nbmake "_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> usr.sbin/racoon/$dir"; cd "/home/src/usr.sbin/racoon/$dir"; /usr/tools/bin/nbmake "_THISDIR_=usr.sbin/racoon/$dir/" $targ; ;; esac
*** Error code 1
Stop.
nbmake: stopped in /home/src/usr.sbin/racoon
*** Failed target: dependall-racoon
*** Failed command: targ=dependall;dir=racoon; case "$dir" in /*) echo "$targ ===> $dir"; cd "$dir"; /usr/tools/bin/nbmake "_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> usr.sbin/$dir"; cd "/home/src/usr.sbin/$dir"; /usr/tools/bin/nbmake "_THISDIR_=usr.sbin/$dir/" $targ; ;; esac
*** Error code 1
Stop.
nbmake: stopped in /home/src/usr.sbin
*** Failed target: dependall-usr.sbin
*** Failed command: targ=dependall;dir=usr.sbin; case "$dir" in /*) echo "$targ ===> $dir"; cd "$dir"; /usr/tools/bin/nbmake "_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> $dir"; cd "/home/src/$dir"; /usr/tools/bin/nbmake "_THISDIR_=$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=no BUILD_lib=no)
*** 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:
Userland 2.0_BETA 12 June sources, Kernel 2.0_BETA 20 July sources