[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't compile pkgsrc on OpenBSD 3.4

I've put this on the NetBSD group, but no answers - its probably more
appropriate to put it here.

I am trying to install pkgsrc (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

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

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?