pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Boostrap error on OpenBSD 3.4 based system
In article <20040213180719.GB88941%rfc-networks.ie@localhost>,
Philip Reynolds <philip.reynolds%rfc-networks.ie@localhost> wrote:
>-=-=-=-=-=-
>-=-=-=-=-=-
>
>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
>
>
>Compiling with NOGCCERROR=yes is a simple workaround.
>
>Regards,
>--
>Philip Reynolds | RFC Networks Ltd.
>philip.reynolds%rfc-networks.ie@localhost | +353 (0)1 8832063
>http://people.rfc-networks.ie/~phil/ | www.rfc-networks.ie
>
>-=-=-=-=-=-
>
>--- 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
This code is wrong. the original make source has:
} else if (WIFSTOPPED(*status) && WSTOPSIG(*status) == SIGCONT) {
The compiler has every right to bitch because the two conditions
can never be true at the same time.
christos
Home |
Main Index |
Thread Index |
Old Index