ports/94283: [MAINTAINER] net/cnet: make it usable with modern GCCs
Ion-Mihai IOnut Tetcu
itetcu at people.tecnik93.com
Thu Mar 9 20:30:06 UTC 2006
>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 at 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 at csse.uwa.edu.au> (author), with big thanks for quick response.
Reported by: "B .Wiggins" <synack at 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:
More information about the freebsd-ports-bugs
mailing list