From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Mar 9 20:30:06 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0153A16A423 for ; Thu, 9 Mar 2006 20:30:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6801643D46 for ; Thu, 9 Mar 2006 20:30:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k29KU4sn050749 for ; Thu, 9 Mar 2006 20:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k29KU4Ah050748; Thu, 9 Mar 2006 20:30:04 GMT (envelope-from gnats) Resent-Date: Thu, 9 Mar 2006 20:30:04 GMT Resent-Message-Id: <200603092030.k29KU4Ah050748@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, "Ion-Mihai "IOnut" Tetcu" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44B0116A420 for ; Thu, 9 Mar 2006 20:21:11 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: from it.buh.tecnik93.com (it.buh.tecnik93.com [81.196.204.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4424943D46 for ; Thu, 9 Mar 2006 20:21:09 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id B7F561758D; Thu, 9 Mar 2006 22:21:04 +0200 (EET) Message-Id: <1141935664.79078@it.buh.tecnik93.com> Date: Thu, 9 Mar 2006 22:21:04 +0200 From: "Ion-Mihai "IOnut" Tetcu" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.7 Cc: chris@csse.uwa.edu.au Subject: ports/94283: [MAINTAINER] net/cnet: make it usable with modern GCCs 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, 09 Mar 2006 20:30:06 -0000 >Number: 94283 >Category: ports >Synopsis: [MAINTAINER] net/cnet: make it usable with modern GCCs >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Thu Mar 09 20:30:03 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Ion-Mihai "IOnut" Tetcu >Release: FreeBSD 6.1-PRERELEASE i386 >Organization: Tecnik'93 >Environment: System: FreeBSD 6.1-PRERELEASE #0: Fri Feb 24 07:01:54 EET 2006 root@it.buh.tecnik93.com:/usr/obj/usr/src/sys/IT6_B_P >Description: While the port compiles and installs/deinstalls OK, on systems with "modern" gcc versions (like 5 and 6) the resulting binary is unusable. Fix this by updating to the latest version. Tinderbox tested: on 4,5,6,7-STABLE. Brett, please do a folloup to this PR if you still have problems with it (and please do it fast, otherwise I will asume all is OK and try to sneak in this version for 5 and 6 upcoming releases) Obtain from: Chris McDonald (author), with big thanks for quick response. Reported by: "B .Wiggins" >How-To-Repeat: On a 5.x, 6.x or HEAD system do: cd /usr/ports/net/cnet/ && make install clean then try to use the program with any topology file, like: cnet -d T2 2 hosts, 0 routers and 1 link /usr/bin/gcc -ansi -Werror -Wall -fPIC -DFREEBSD -DHAVE_LONG_LONG=1 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -I/usr/local/share/cnet -c -o stopandwait.o stopandwait.c stopandwait.c: In function `transmit_frame': stopandwait.c:78: warning: passing arg 2 of `CNET_exit' discards qualifiers from pointer target type stopandwait.c: In function `application_ready': stopandwait.c:87: warning: passing arg 2 of `CNET_exit' discards qualifiers from pointer target type stopandwait.c: In function `physical_ready': stopandwait.c:102: warning: passing arg 2 of `CNET_exit' discards qualifiers from pointer target type stopandwait.c:124: warning: passing arg 2 of `CNET_exit' discards qualifiers from pointer target type stopandwait.c: In function `reboot_node': stopandwait.c:179: warning: passing arg 2 of `CNET_exit' discards qualifiers from pointer target type stopandwait.c:180: warning: passing arg 2 of `CNET_exit' discards qualifiers from pointer target type stopandwait.c:181: warning: passing arg 2 of `CNET_exit' discards qualifiers from pointer target type stopandwait.c:182: warning: passing arg 2 of `CNET_exit' discards qualifiers from pointer target type stopandwait.c:183: warning: passing arg 2 of `CNET_exit' discards qualifiers from pointer target type stopandwait.c:185: warning: passing arg 2 of `CNET_exit' discards qualifiers from pointer target type >Fix: --- cnet.diff begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/net/cnet/Makefile,v retrieving revision 1.28 diff -u -r1.28 Makefile --- Makefile 14 Dec 2005 08:37:11 -0000 1.28 +++ Makefile 9 Mar 2006 20:10:26 -0000 @@ -6,8 +6,7 @@ # PORTNAME= cnet -PORTVERSION= 2.0.9 -PORTREVISION= 1 +PORTVERSION= 2.0.10 CATEGORIES= net tcl84 tk84 MASTER_SITES= http://www.csse.uwa.edu.au/cnet/ EXTRACT_SUFX= .tgz Index: distinfo =================================================================== RCS file: /home/ncvs/ports/net/cnet/distinfo,v retrieving revision 1.15 diff -u -r1.15 distinfo --- distinfo 14 Dec 2005 08:37:11 -0000 1.15 +++ distinfo 9 Mar 2006 20:10:26 -0000 @@ -1,3 +1,3 @@ -MD5 (cnet-2.0.9.tgz) = 4c346b3b3d22ebf7b8d6fb2a247cfcc1 -SHA256 (cnet-2.0.9.tgz) = 6e50398cef2c444858325a7a53d87b941f0072e5ed67d1dfff0aa5c40287494a -SIZE (cnet-2.0.9.tgz) = 1165016 +MD5 (cnet-2.0.10.tgz) = c1db7aad3b0379599b3ab0e9b61625d9 +SHA256 (cnet-2.0.10.tgz) = 7b1e720179b7316d97b8b947155b261dda7ddfd01ff18fb04139c33f4a35bfcb +SIZE (cnet-2.0.10.tgz) = 1158887 --- cnet.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: