From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Sep 14 08:20:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A3D2387C for ; Sat, 14 Sep 2013 08:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 813B02894 for ; Sat, 14 Sep 2013 08:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8E8K0RZ032596 for ; Sat, 14 Sep 2013 08:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8E8K0vu032595; Sat, 14 Sep 2013 08:20:00 GMT (envelope-from gnats) Resent-Date: Sat, 14 Sep 2013 08:20:00 GMT Resent-Message-Id: <201309140820.r8E8K0vu032595@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, Olivier Cochard-Labbe Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B1DB07F0 for ; Sat, 14 Sep 2013 08:12:39 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9DDB92866 for ; Sat, 14 Sep 2013 08:12:39 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8E8Cdlo044528 for ; Sat, 14 Sep 2013 08:12:39 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8E8CdWf044476; Sat, 14 Sep 2013 08:12:39 GMT (envelope-from nobody) Message-Id: <201309140812.r8E8CdWf044476@oldred.freebsd.org> Date: Sat, 14 Sep 2013 08:12:39 GMT From: Olivier Cochard-Labbe To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/182082: emulators/dynamips-community upgrade to 0.2.10 and head problem report X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Sep 2013 08:20:00 -0000 >Number: 182082 >Category: ports >Synopsis: emulators/dynamips-community upgrade to 0.2.10 and head problem report >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 14 08:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Olivier Cochard-Labbe >Release: 10.0-CURRENT >Organization: >Environment: FreeBSD laptop.bsdrp.net 10.0-CURRENT FreeBSD 10.0-CURRENT #4 r255188M: Fri Sep 6 00:15:11 CEST 2013 root@laptop.bsdrp.net:/usr/obj/usr/local/BSDRP/BSDRPcur/FreeBSD/src/sys/PROD amd64 >Description: I've got a problem with the previous version 0.2.8 on -current: dynamips crashes when it tried to start router emulation with message "bus error (core dump)". Then I've tried to upgrade it to 0.2.10 but I've got the same error. I didn't have 9.x right now for testing it compiled with gcc (clang problem?). By the way, here is the patch for upgrading it 0.2.10 in case it works on >How-To-Repeat: just start dynamips on a recent -current. >Fix: Patch attached with submission follows: Index: emulators/dynamips-community/Makefile =================================================================== --- emulators/dynamips-community/Makefile (revision 327190) +++ emulators/dynamips-community/Makefile (working copy) @@ -2,20 +2,21 @@ # $FreeBSD$ PORTNAME= dynamips -PORTVERSION= 0.2.8 +PORTVERSION= 0.2.10 CATEGORIES= emulators -MASTER_SITES= SF/gns-3/Dynamips/${PORTVERSION}-RC3${PKGNAMESUFFIX} +MASTER_SITES= SF/gns-3/Dynamips/${PORTVERSION} PKGNAMESUFFIX= -community -DISTNAME= ${PORTNAME}-${PORTVERSION}-RC3${PKGNAMESUFFIX} +DISTNAME= ${PORTNAME}-${PORTVERSION}-source +EXTRACT_SUFX= .zip MAINTAINER= pavelivolkov@googlemail.com COMMENT= Cisco 1700/2600/3600/3700/7200 Simulator -LIB_DEPENDS= elf.0:${PORTSDIR}/devel/libelf \ - uuid.1:${PORTSDIR}/misc/e2fsprogs-libuuid - LICENSE= GPLv2 +LIB_DEPENDS= elf:${PORTSDIR}/devel/libelf \ + uuid:${PORTSDIR}/misc/e2fsprogs-libuuid + CONFLICTS= dynamips-[0-9]* dynamips-devel-[0-9]* USE_GMAKE= yes @@ -65,13 +66,13 @@ .if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README.community ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.hypervisor ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/RELEASE-NOTES ${DOCSDIR} .endif .if !defined(NO_INSTALL_MANPAGES) - ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${PREFIX}/man/man1 - ${INSTALL_MAN} ${WRKSRC}/nvram_export.1 ${PREFIX}/man/man1 - ${INSTALL_MAN} ${WRKSRC}/hypervisor_mode.7 ${PREFIX}/man/man7 + ${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/man/nvram_export.1 ${PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/man/hypervisor_mode.7 ${PREFIX}/man/man7 .endif .include Index: emulators/dynamips-community/distinfo =================================================================== --- emulators/dynamips-community/distinfo (revision 327190) +++ emulators/dynamips-community/distinfo (working copy) @@ -1,2 +1,2 @@ -SHA256 (dynamips-0.2.8-RC3-community.tar.gz) = e808a50b6b9d24a90604885f90699f46b26a49e6ce9cf542aa288f135b2508ac -SIZE (dynamips-0.2.8-RC3-community.tar.gz) = 818199 +SHA256 (dynamips-0.2.10-source.zip) = d62f739547134aeb0ee5a6b28a52772ae79a93cb6426b712cbddc72cb0b7ba44 +SIZE (dynamips-0.2.10-source.zip) = 966018 Index: emulators/dynamips-community/files/patch-common-gen_eth.c =================================================================== --- emulators/dynamips-community/files/patch-common-gen_eth.c (revision 327190) +++ emulators/dynamips-community/files/patch-common-gen_eth.c (working copy) @@ -1,26 +0,0 @@ ---- common/gen_eth.c.orig 2011-04-17 11:32:08.000000000 +0400 -+++ common/gen_eth.c 2011-04-17 11:36:47.000000000 +0400 -@@ -22,6 +22,7 @@ - #include - #include - #include -+#include - #include - #include - #include -@@ -45,8 +46,13 @@ - if (!(p = pcap_open_live(device,2048,TRUE,10,pcap_errbuf))) - goto pcap_error; - -- /* Accept only incoming packets */ -- pcap_setdirection(p,PCAP_D_IN); -+ pcap_setdirection(p,PCAP_D_INOUT); -+#ifdef BIOCFEEDBACK -+ { -+ int on = 1; -+ ioctl(pcap_fileno(p), BIOCFEEDBACK, &on); -+ } -+#endif - #else - p = pcap_open(device,2048, - PCAP_OPENFLAG_PROMISCUOUS | Index: emulators/dynamips-community/files/patch-nvram_export.1 =================================================================== --- emulators/dynamips-community/files/patch-nvram_export.1 (revision 327190) +++ emulators/dynamips-community/files/patch-nvram_export.1 (working copy) @@ -1,11 +0,0 @@ ---- nvram_export.1.orig Thu May 3 12:46:51 2007 -+++ nvram_export.1 Thu May 3 12:47:10 2007 -@@ -13,7 +13,7 @@ - Please send bug reports to http://www.ipflow.utc.fr/bts/ - .SH SEE ALSO - .br --\fBdynmips\fP(1), \fBhypervisor_mode\fP(7) -+\fBdynamips\fP(1), \fBhypervisor_mode\fP(7) - .br - .UR - http://www.ipflow.utc.fr/index.php/ Index: emulators/dynamips-community/files/patch-stable-Makefile =================================================================== --- emulators/dynamips-community/files/patch-stable-Makefile (revision 327190) +++ emulators/dynamips-community/files/patch-stable-Makefile (working copy) @@ -1,20 +0,0 @@ ---- stable/Makefile.orig 2011-04-17 11:08:00.000000000 +0400 -+++ stable/Makefile 2011-04-17 11:11:30.000000000 +0400 -@@ -61,7 +61,7 @@ - -DHAS_POSIX_MEMALIGN=$(HAS_POSIX_MEMALIGN) - - #PCAP_LIB=/usr/local/lib/libpcap.a --PCAP_LIB=-lpcap -+PCAP_LIB?=-lpcap - - ifeq ($(shell uname), FreeBSD) - PTHREAD_LIBS?=-pthread -@@ -69,7 +69,7 @@ - OSNAME=FreeBSD - CFLAGS+=-I$(LOCALBASE)/include -I$(LOCALBASE)/include/libelf \ - $(PTHREAD_CFLAGS) -D_FILE_OFFSET_BITS=64 -- LIBS=-L$(LOCALBASE)/lib -L. -ldl -lelf $(PTHREAD_LIBS) $(LDFLAGS) -+ LIBS=-L$(LOCALBASE)/lib -L. -lelf $(PTHREAD_LIBS) $(LDFLAGS) - else - ifeq ($(shell uname), Linux) - PTHREAD_LIBS?=-lpthread Index: emulators/dynamips-community/files/patch-unstable-Makefile =================================================================== --- emulators/dynamips-community/files/patch-unstable-Makefile (revision 327190) +++ emulators/dynamips-community/files/patch-unstable-Makefile (working copy) @@ -1,20 +0,0 @@ ---- unstable/Makefile.orig 2011-04-17 11:26:40.000000000 +0400 -+++ unstable/Makefile 2011-04-17 11:27:29.000000000 +0400 -@@ -61,7 +61,7 @@ - -DUSE_UNSTABLE - - #PCAP_LIB=/usr/local/lib/libpcap.a --PCAP_LIB=-lpcap -+PCAP_LIB?=-lpcap - - ifeq ($(shell uname), FreeBSD) - PTHREAD_LIBS?=-pthread -@@ -69,7 +69,7 @@ - OSNAME=FreeBSD - CFLAGS+=-I$(LOCALBASE)/include -I$(LOCALBASE)/include/libelf \ - $(PTHREAD_CFLAGS) -D_FILE_OFFSET_BITS=64 -- LIBS=-L$(LOCALBASE)/lib -L. -ldl -lelf $(PTHREAD_LIBS) $(LDFLAGS) -+ LIBS=-L$(LOCALBASE)/lib -L. -lelf $(PTHREAD_LIBS) $(LDFLAGS) - else - ifeq ($(shell uname), Linux) - PTHREAD_LIBS?=-lpthread >Release-Note: >Audit-Trail: >Unformatted: