Subject: Boostrap error on OpenBSD 3.4 based system
To: None <pkgsrc-bugs@netbsd.org>
From: Philip Reynolds <philip.reynolds@rfc-networks.ie>
List: pkgsrc-bugs
Date: 02/13/2004 18:07:19
--CdrF4e02JqNVZeln
Content-Type: multipart/mixed; boundary="M9NhX3UHpAaciwkO"
Content-Disposition: inline


--M9NhX3UHpAaciwkO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

A tiny tiny patch for pkgsrc to build on openbsd 3.4 based systems
(the main problem is with the newer version of gcc afaics)

	gcc version 2.95.3 20010125 (prerelease, propolice)

FYI, the error was as follows:

	cc1: warnings being treated as errors
	job.c: In function `JobFinish':
	job.c:975: warning: `and' of mutually exclusive equal-tests is
	always 0
=09

Compiling with NOGCCERROR=3Dyes is a simple workaround.

Regards,
--=20
Philip Reynolds                      | RFC Networks Ltd.
philip.reynolds@rfc-networks.ie      | +353 (0)1 8832063
http://people.rfc-networks.ie/~phil/ | www.rfc-networks.ie

--M9NhX3UHpAaciwkO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="job.c.patch"

--- bmake/job.c.orig	Fri Feb 13 17:46:54 2004
+++ bmake/job.c	Fri Feb 13 17:46:58 2004
@@ -972,7 +972,7 @@
 #endif
 	    (void) fflush(out);
 	    return;
-	} else if (WIFSTOPPED(status) &&  WTERMSIG(status) == SIGCONT) {
+	} else if ((WIFSTOPPED(status)) &&  WTERMSIG(status) == SIGCONT) {
 	    /*
 	     * If the beastie has continued, shift the Job from the stopped
 	     * list to the running one (or re-stop it if concurrency is

--M9NhX3UHpAaciwkO--

--CdrF4e02JqNVZeln
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQFALRJXKmoTT9WktYwRAswoAJ4068cT4S1K/gF0Bl4ZH98Y01xrLQCfYnka
EOqNNEny8yxQQ8gfxcJt7lc=
=bJld
-----END PGP SIGNATURE-----

--CdrF4e02JqNVZeln--