From owner-freebsd-bugs@FreeBSD.ORG Sat Dec 18 01:40:22 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5CDF16A4CE for ; Sat, 18 Dec 2004 01:40:21 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5F3643D58 for ; Sat, 18 Dec 2004 01:40:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBI1eLFP022345 for ; Sat, 18 Dec 2004 01:40:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBI1eLDi022344; Sat, 18 Dec 2004 01:40:21 GMT (envelope-from gnats) Resent-Date: Sat, 18 Dec 2004 01:40:21 GMT Resent-Message-Id: <200412180140.iBI1eLDi022344@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Robert Millan Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 029B216A4CE for ; Sat, 18 Dec 2004 01:33:19 +0000 (GMT) Received: from khazad.dyndns.org (5.red-62-57-140.user.auna.net [62.57.140.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FA9D43D4C for ; Sat, 18 Dec 2004 01:33:18 +0000 (GMT) (envelope-from rmh@khazad.dyndns.org) Received: from rmh by khazad.dyndns.org with local (Exim 4.34) id 1CfTOo-0001U7-1a for FreeBSD-gnats-submit@freebsd.org; Sat, 18 Dec 2004 02:28:46 +0100 Message-Id: Date: Sat, 18 Dec 2004 02:28:46 +0100 From: Robert Millan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: misc/75210: make fails to build with gcc-4.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Robert Millan List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Dec 2004 01:40:22 -0000 >Number: 75210 >Category: misc >Synopsis: make fails to build with gcc-4.0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 18 01:40:21 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Robert Millan >Release: GNU/kFreeBSD 5.3-2 i386 >Organization: Debian >Environment: System: GNU/kFreeBSD aragorn 5.3-2 #0: Thu Dec 2 01:55:37 CET 2004 i386 GNU/KFreeBSD >Description: I'm forwarding this report Andreas Jochens sent to Debian BTS (bugs #285953 and #285954). Quoting him: When building 'freebsd5-buildutils' on amd64 with gcc-4.0, I get the following error: cc -O -I/freebsd5-buildutils-5.3/build-tree/src/usr.bin/make -DMAKE_VERSION=\"5200408120\" -DDEFSHELL=1 -O2 -g -Wall -DMACHINE_ARCH='"x86_64"' -c job.c job.c:231: error: static declaration of 'maxJobs' follows non-static declaration job.h:229: error: previous declaration of 'maxJobs' was here *** Error code 1 Stop. pmake: stopped in /freebsd5-buildutils-5.3/build-tree/src/usr.bin/make make: *** [build/freebsd5-buildutils] Error 1 With the attached patch 'freebsd5-buildutils' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens >How-To-Repeat: >Fix: diff -urN tmp/usr.bin/make/job.c src/usr.bin/make/job.c --- tmp/usr.bin/make/job.c 2004-12-16 17:06:50.255866000 +0100 +++ src/usr.bin/make/job.c 2004-12-16 17:08:49.266774208 +0100 @@ -228,7 +228,7 @@ *shellName = NULL; /* last component of shell */ -static int maxJobs; /* The most children we can run at once */ +int maxJobs; /* The most children we can run at once */ static int maxLocal; /* The most local ones we can have */ STATIC int nJobs; /* The number of children currently running */ STATIC int nLocal; /* The number of local children */ >Release-Note: >Audit-Trail: >Unformatted: