From owner-freebsd-bugs@FreeBSD.ORG Fri Aug 27 13:50:07 2010 Return-Path: Delivered-To: freebsd-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 9B8D91065694 for ; Fri, 27 Aug 2010 13:50: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 5F6648FC12 for ; Fri, 27 Aug 2010 13:50:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7RDo7h5019476 for ; Fri, 27 Aug 2010 13:50:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7RDo71f019475; Fri, 27 Aug 2010 13:50:07 GMT (envelope-from gnats) Resent-Date: Fri, 27 Aug 2010 13:50:07 GMT Resent-Message-Id: <201008271350.o7RDo71f019475@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Rudolf Polzer Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E21721065698 for ; Fri, 27 Aug 2010 13:45:14 +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 D1CA18FC1F for ; Fri, 27 Aug 2010 13:45:14 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o7RDjEkb013334 for ; Fri, 27 Aug 2010 13:45:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o7RDjEFU013333; Fri, 27 Aug 2010 13:45:14 GMT (envelope-from nobody) Message-Id: <201008271345.o7RDjEFU013333@www.freebsd.org> Date: Fri, 27 Aug 2010 13:45:14 GMT From: Rudolf Polzer To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/150040: fwtk plug-gw does not run on 64bit architectures X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 13:50:07 -0000 >Number: 150040 >Category: misc >Synopsis: fwtk plug-gw does not run on 64bit architectures >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 27 13:50:06 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Rudolf Polzer >Release: 7.2 >Organization: Vodafone >Environment: FreeBSD dns7.tnd.lab.arcor.de 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Wed Oct 14 11:48:08 UTC 2009 root@build64-7.tnd.arcor.net:/usr/obj/usr/src/sys/DL380DNS amd64 >Description: fwtk plug-gw segfaults on startup. Caused by missing declaration of inet_ntoa causing its pointer return value to default to int, which has different size, and thus causing a segfault. >How-To-Repeat: cd /usr/ports/security/fwtk make install then set up fwtk normally, using a plug-gw filter then connect to the port >Fix: Patch attached that adds an #include directive to get inet_ntoa declared. Patch attached with submission follows: Patch from Rudolf Polzer to fix a compile time warning and make binaries compiled on 64bit FreeBSD 7.3 work without segfault on startup. diff -ru lib/pname.c lib/pname.c --- lib/pname.c 1997-01-18 19:20:57.000000000 +0000 +++ lib/pname.c 2010-06-30 12:06:26.000000000 +0000 @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include >Release-Note: >Audit-Trail: >Unformatted: