Subject: NetBSD pkgsrc on OpenBSD 3.4. Can't run bootstrap script
To: None <netbsd-help@netbsd.org>
From: Robert S <robert_s@emailme.net.au>
List: netbsd-help
Date: 12/13/2003 16:25:56
I am trying to install pkgsrc from NetBSD on my OpenBSD 3.4 system.  I 
have downloaded the file bootstrap-pkgsrc.tar.gz and have run the 
./bootstrap --pkgdbdir=/var/db/pkgsrc script as recommended.  It 
finishes like this:

gcc -O2 -I. -I. -DHAVE_CONFIG_H  -I./missing -DNEED_HOST_CDEFS_H 
"-D_PATH_DEFSYSPATH=\"/usr/pkg/share/mk\""    -Werror   -c hash.c
gcc -O2 -I. -I. -DHAVE_CONFIG_H  -I./missing -DNEED_HOST_CDEFS_H 
"-D_PATH_DEFSYSPATH=\"/usr/pkg/share/mk\""    -Werror   -c job.c
cc1: warnings being treated as errors
job.c: In function `JobFinish':
job.c:975: warning: `and' of mutually exclusive equal-tests is always 0
*** Error code 1

Stop.
bmake.boot: stopped in /usr/bootstrap-pkgsrc/bmake
*** Error code 1

Stop in /usr/bootstrap-pkgsrc/bmake (line 34 of makefile.boot).
===> exited with status 1
aborted.

I can't run the precompiled OpenBSD 3.2 binaries either.

I've managed to do this on a Linux system with no problems.

Has anyone got a fix?