Subject: Re: build problems...
To: Rui Paulo <goteki@pixeloverflow.com>
From: Jaka Jejcic <jj@gnorw.net>
List: current-users
Date: 04/20/2004 09:19:52
Try without -O2. I never could compile crypto with -O2, -O is the
maximum it worked for me.

jj



On Mon, Apr 19, 2004 at 10:12:47PM +0000, Rui Paulo wrote:
> Hi, I'm getting the folowing problem with building NetBSD-2.0C
>=20
> # ./build.sh -u build
> dependall =3D=3D=3D> usr.sbin/racoon/racoon
> #   compile  racoon/crypto_openssl.o
> /usr/src/obj/tooldir.NetBSD-2.0C-i386/bin/i386--netbsdelf-gcc -g -O2 -mcp=
u=3Dpentiumpro -O2 -mcpu=3Dpentiumpro  -Wall -Wstrict-prototypes -Wmissing-=
prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitia=
lized  -Werror   -DINET6 -DHAVE_FUNCTION_MACRO=3D1 -DHAVE_LIBCRYPTO=3D1 -DH=
AVE_LIBL=3D1 -DHAVE_LIBY=3D1 -DENABLE_IPV6=3D1 -DADVAPI=3D1 -DHAVE_GETADDRI=
NFO=3D1 -DHAVE_GETNAMEINFO=3D1 -DSTDC_HEADERS=3D1 -DHAVE_SYS_WAIT_H=3D1 -DH=
AVE_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 -DHA=
VE_VPRINTF=3D1 -DHAVE_GETTIMEOFDAY=3D1 -DHAVE_SELECT=3D1 -DHAVE_SOCKET=3D1 =
-DHAVE_STRERROR=3D1 -DHAVE_STRTOL=3D1 -DHAVE_STRTOUL=3D1 -DHAVE_STRDUP=3D1 =
-DHAVE_GETIFADDRS=3D1 -DHAVE_ARC4RANDOM=3D1 -DHAVE_PFKEYV2 -DYIPS_DEBUG -DI=
PSEC  -I. -I/usr/src/crypto/dist/kame/racoon -DSYSCONFDIR=3D\"/etc/racoon\"=
 -DHAVE_OPENSSL_OPENSSLV_H=3D1 -DYY_NO_UNPUT -I/usr/src/crypto/dist/kame/li=
bipsec -I/usr/src/crypto/dist/kame/racoon/missing -DHAVE_GSSAPI -I/usr/src/=
obj/destdir.i386/usr/include/krb5 -DHAVE_SIGNING_C=3D1 -DHAVE_OPENSSL_PEM_H=
=3D1 -DHAVE_OPENSSL_X509_H=3D1  -DHAVE_OPENSSL_EVP_H=3D1  -nostdinc -isyste=
m /usr/src/obj/destdir.i386/usr/include  -c    /usr/src/crypto/dist/kame/ra=
coon/crypto_openssl.c
> /usr/src/crypto/dist/kame/racoon/crypto_openssl.c: In function `eay_str2a=
sn1dn':
> /usr/src/crypto/dist/kame/racoon/crypto_openssl.c:185: warning: dereferen=
cing type-punned pointer will break strict-aliasing rules
> /usr/src/crypto/dist/kame/racoon/crypto_openssl.c: In function `eay_cmp_a=
sn1dn':
> /usr/src/crypto/dist/kame/racoon/crypto_openssl.c:214: warning: dereferen=
cing type-punned pointer will break strict-aliasing rules
> /usr/src/crypto/dist/kame/racoon/crypto_openssl.c:217: warning: dereferen=
cing type-punned pointer will break strict-aliasing rules
>=20
> *** Failed target:  crypto_openssl.o
> *** Failed command: /usr/src/obj/tooldir.NetBSD-2.0C-i386/bin/i386--netbs=
delf-gcc -g -O2 -mcpu=3Dpentiumpro -O2 -mcpu=3Dpentiumpro -Wall -Wstrict-pr=
ototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-tradit=
ional -Wno-uninitialized -Werror -DINET6 -DHAVE_FUNCTION_MACRO=3D1 -DHAVE_L=
IBCRYPTO=3D1 -DHAVE_LIBL=3D1 -DHAVE_LIBY=3D1 -DENABLE_IPV6=3D1 -DADVAPI=3D1=
 -DHAVE_GETADDRINFO=3D1 -DHAVE_GETNAMEINFO=3D1 -DSTDC_HEADERS=3D1 -DHAVE_SY=
S_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 -DRETSIGT=
YPE=3Dvoid -DHAVE_VPRINTF=3D1 -DHAVE_GETTIMEOFDAY=3D1 -DHAVE_SELECT=3D1 -DH=
AVE_SOCKET=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRTOL=3D1 -DHAVE_STRTOUL=3D1 -DH=
AVE_STRDUP=3D1 -DHAVE_GETIFADDRS=3D1 -DHAVE_ARC4RANDOM=3D1 -DHAVE_PFKEYV2 -=
DYIPS_DEBUG -DIPSEC -I. -I/usr/src/crypto/dist/kame/racoon -DSYSCONFDIR=3D\=
"/etc/racoon\" -DHAVE_OPENSSL_OPENSSLV_H=3D1 -DYY_NO_UNPUT -I/usr/src/crypt=
o/dist/kame/libipsec -I/usr/src/crypto/dist/kame/racoon/missing -DHAVE_GSSA=
PI -I/usr/src/obj/destdir.i386/usr/include/krb5 -DHAVE_SIGNING_C=3D1 -DHAVE=
_OPENSSL_PEM_H=3D1 -DHAVE_OPENSSL_X509_H=3D1 -DHAVE_OPENSSL_EVP_H
> =3D1 -nostdinc -isystem /usr/src/obj/destdir.i386/usr/include -c /usr/src=
/crypto/dist/kame/racoon/crypto_openssl.c
> *** Error code 1
> [...]
> ERROR: Failed to make build
> *** BUILD ABORTED ***
>=20
> I have no ideia what's happening.
>=20
>=20
> -
> Rui Paulo <goteki@pixeloverflow.com>
> 3F1E DB64 40B0 B027 1F3C  4A4A 1384 42C6 B05A DCB7
>=20
>   "Simplicity is the ultimate=20
>     sophistication."=20
>     -- Leonardo da Vinci     =20