Subject: misc/24727: racoon in -current doesn't build due to -Werror
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <ali@microkernel.net>
List: netbsd-bugs
Date: 03/10/2004 10:22:13
>Number: 24727
>Category: misc
>Synopsis: racoon in -current doesn't build due to -Werror
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 10 10:23:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Anders Lindgren
>Release: -current tarballs as of March 6th, anoncvs updated on March 10.
>Organization:
>Environment:
NetBSD ida 1.6.2 NetBSD 1.6.2 (IDA) #0: Thu Feb 12 22:15:42 CET 2004 root@ida:/usr/src/sys/arch/sparc64/compile/IDA sparc64
>Description:
Racoon breaks during build distribution (it has in the past too, with the same errors, so this may be an old or recurring problem...) because
-Werror is enabled and some openssl files produce warnings. Not sure if
this is somehow sparc64 specific. I can't say I understand what information the cryptic warning is trying to convey. Output from build.sh:
-----------8<--------------8<--------------8<---------
dependall ===> usr.sbin/racoon/racoon
# compile racoon/crypto_openssl.o
/local/tools/bin/sparc64--netbsd-gcc -g -mcpu=ultrasparc -mtune=ultrasparc -O2 -pipe -mcpu=ultrasparc -mtune=ultrasparc -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/usr/src/crypto/dist/kame/racoon -DSYSCONFDIR=\"/etc/racoon\" -DHAVE_OPENSSL_OPENSSLV_H=1 -DYY_NO_UNPUT -I/usr/src/crypto/dist/kame/libipsec -I/usr/src/crypto/dist/kame/racoon/missing -DHAVE_GSSAPI -DRACOON_PKG_VERSION="\"netbsd-20040116\""
-I/usr/src/dist/tcpdump -I/usr/src/dist/tcpdump/lbl -DHAVE_PRINT_ISAKMP_C=1 -I/local/dist/usr/include/krb5 -DHAVE_SIGNING_C=1 -DHAVE_OPENSSL_PEM_H=1 -DHAVE_OPENSSL_X509_H=1 -DHAVE_OPENSSL_EVP_H=1 -nostdinc -isystem /local/dist/usr/include
-c /usr/src/crypto/dist/kame/racoon/crypto_openssl.c
/usr/src/crypto/dist/kame/racoon/crypto_openssl.c: In function `eay_str2asn1dn':
/usr/src/crypto/dist/kame/racoon/crypto_openssl.c:185: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/crypto/dist/kame/racoon/crypto_openssl.c: In function `eay_cmp_asn1dn':
/usr/src/crypto/dist/kame/racoon/crypto_openssl.c:214: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/crypto/dist/kame/racoon/crypto_openssl.c:217: warning: dereferencing type-punned pointer will break strict-aliasing rules
*** Failed target: crypto_openssl.o
-----------8<--------------8<--------------8<---------
>How-To-Repeat:
./build.sh -T yourtooldir -M yourobjdirprefix -D yourdistdir distribution
on sparc64 and possibly other architectures.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: