From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Aug 23 06:00:08 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 E699016A420 for ; Thu, 23 Aug 2007 06:00:07 +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 BD03F13C48E for ; Thu, 23 Aug 2007 06:00:07 +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 l7N607PA052416 for ; Thu, 23 Aug 2007 06:00:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7N607hG052415; Thu, 23 Aug 2007 06:00:07 GMT (envelope-from gnats) Resent-Date: Thu, 23 Aug 2007 06:00:07 GMT Resent-Message-Id: <200708230600.l7N607hG052415@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, Simun Mikecin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E447116A418 for ; Thu, 23 Aug 2007 05:55:51 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id D369813C483 for ; Thu, 23 Aug 2007 05:55:51 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l7N5tp2C046899 for ; Thu, 23 Aug 2007 05:55:51 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l7N5tpiI046898; Thu, 23 Aug 2007 05:55:51 GMT (envelope-from nobody) Message-Id: <200708230555.l7N5tpiI046898@www.freebsd.org> Date: Thu, 23 Aug 2007 05:55:51 GMT From: Simun Mikecin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/115744: [patch] misc/alevt: unbreak on 7.x (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: Thu, 23 Aug 2007 06:00:08 -0000 >Number: 115744 >Category: ports >Synopsis: [patch] misc/alevt: unbreak on 7.x (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: Thu Aug 23 06:00:06 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Simun Mikecin >Release: FreeBSD/amd64 7.0-CURRENT >Organization: >Environment: FreeBSD data.home.hr 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Tue Aug 21 18:58:27 CEST 2007 root@data.home.hr:/usr/obj/usr/src.current/sys/DATA amd64 >Description: This port is marked broken on 7-CURRENT since it doesn't compile with gcc 4.2 >How-To-Repeat: >Fix: With this patch alevt compiles with gcc 4.2 Patch attached with submission follows: diff -urN alevt.orig/Makefile alevt/Makefile --- alevt.orig/Makefile 2007-05-26 00:58:53.000000000 +0200 +++ alevt/Makefile 2007-08-23 07:43:52.099869878 +0200 @@ -22,10 +22,6 @@ .include -.if ${OSVERSION} >= 700042 -BROKEN= Broken with gcc 4.2 -.endif - .if defined(WITH_PNG) LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png MAKE_ARGS+= -DWITH_PNG diff -urN alevt.orig/files/patch-ad alevt/files/patch-ad --- alevt.orig/files/patch-ad 1970-01-01 01:00:00.000000000 +0100 +++ alevt/files/patch-ad 2007-08-23 07:49:27.381000655 +0200 @@ -0,0 +1,30 @@ +--- xio.c.orig 2002-08-20 05:09:38.000000000 +0200 ++++ xio.c 2007-08-23 07:48:59.587926513 +0200 +@@ -31,11 +31,11 @@ + + static struct dl_head dpys[1]; /* list of all displays */ + ++static void xio_timer(); + + static int + timer_init(int argc, char **argv) + { +- static void xio_timer(); + int p[2], timer_pid, i; + + if (pipe(p) == -1) +@@ -154,13 +154,12 @@ + fdset_del_fd(fds, fd); + } + +- ++static void handle_event(); //forward ref + + struct xio * + xio_open_dpy(char *dpy, int argc, char **argv) + { + XClassHint classhint[1]; +- static void handle_event(); //forward ref + struct xio *xio; + + if (local_init(argc, argv) == -1) >Release-Note: >Audit-Trail: >Unformatted: