From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Nov 14 02:20:00 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E710916A420 for ; Wed, 14 Nov 2007 02:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CB7D213C43E for ; Wed, 14 Nov 2007 02:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id lAE2K0Es012292 for ; Wed, 14 Nov 2007 02:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id lAE2K0nl012291; Wed, 14 Nov 2007 02:20:00 GMT (envelope-from gnats) Resent-Date: Wed, 14 Nov 2007 02:20:00 GMT Resent-Message-Id: <200711140220.lAE2K0nl012291@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Pietro Cerutti" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C983016A421 for ; Wed, 14 Nov 2007 02:17:34 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 6420C13C474 for ; Wed, 14 Nov 2007 02:17:34 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from 80-218-191-236.dclient.hispeed.ch ([80.218.191.236] helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpa (Exim 4.63) (envelope-from ) id 1Is7oj-0001gB-Mt for FreeBSD-gnats-submit@freebsd.org; Wed, 14 Nov 2007 03:17:25 +0100 Received: from gahrtop.localhost (localhost [127.0.0.1]) by gahrtop.localhost (Postfix) with ESMTP id A3E3A73063 for ; Wed, 14 Nov 2007 03:17:20 +0100 (CET) Message-Id: <1195006640.69619@gahrtop.localhost> Date: Wed, 14 Nov 2007 03:17:20 +0100 From: "Pietro Cerutti" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.8 Cc: Subject: ports/118029: [patch] lang/q unbreak fix build with GCC 4.2 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2007 02:20:01 -0000 >Number: 118029 >Category: ports >Synopsis: [patch] lang/q unbreak fix build with GCC 4.2 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 14 02:20:00 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Pietro Cerutti >Release: FreeBSD 8.0-CURRENT i386 >Organization: >Environment: System: FreeBSD 8.0-CURRENT #9: Fri Nov 9 14:50:37 CET 2007 root@gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034 >Description: - fixed two "invalid storage class" errors >How-To-Repeat: cd /usr/ports/lang/q && make >Fix: --- _q.diff begins here --- --- Makefile.orig 2007-11-14 02:28:29.000000000 +0100 +++ Makefile 2007-11-14 02:30:53.000000000 +0100 @@ -80,10 +80,6 @@ .include -.if ${OSVERSION} >= 700042 -BROKEN= Does not compile with GCC 4.2 -.endif - .if ${ARCH} == "amd64" BROKEN= Does not build on amd64 (shared libraries must be compiled with -fPIC) .endif --- /dev/null 2007-11-14 03:15:30.000000000 +0100 +++ files/patch-modules-octave_octave.c 2007-11-14 03:07:07.000000000 +0100 @@ -0,0 +1,19 @@ +--- modules/octave/octave.c.orig 2007-11-14 03:04:18.000000000 +0100 ++++ modules/octave/octave.c 2007-11-14 03:06:27.000000000 +0100 +@@ -126,6 +126,8 @@ + static const char *octaverc = ".octaverc"; + static const char *octaverc_bak = ".octaverc.$$$"; + ++static int send_octave(char *); ++ + /* handle SIGINT and SIGTERM */ + + #if RETSIGTYPE == void +@@ -272,7 +274,6 @@ + FILE *fp, *fp2; + char buf[bufsz]; + int bak = 0; +- static int send_octave(char *cmd); + static int init = 0; + if (!octp) { + /* get the command from the OCTAVE variable if defined */ --- /dev/null 2007-11-14 03:15:30.000000000 +0100 +++ files/patch-src_qmparse.y 2007-11-14 03:09:24.000000000 +0100 @@ -0,0 +1,10 @@ +--- src/qmparse.y.orig 2007-11-14 03:07:31.000000000 +0100 ++++ src/qmparse.y 2007-11-14 03:09:06.000000000 +0100 +@@ -239,7 +239,6 @@ + + | _PROMPT_ arg_list + { +- static savepos(); + char **argv = $2.v; + int argc = $2.c, i; + if (argc == 0) { --- _q.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: