Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 2006 22:21:04 +0200
From:      "Ion-Mihai "IOnut" Tetcu" <itetcu@people.tecnik93.com>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Cc:        chris@csse.uwa.edu.au
Subject:   ports/94283: [MAINTAINER] net/cnet: make it usable with modern GCCs
Message-ID:  <1141935664.79078@it.buh.tecnik93.com>
Resent-Message-ID: <200603092030.k29KU4Ah050748@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <chris@csse.uwa.edu.au> (author), with big thanks for quick response.
Reported by:		"B .Wiggins" <synack@netspace.net.au>


>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1141935664.79078>