>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 [email protected]:/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 <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> +#include <arpa/inet.h> #include <netdb.h> #include <syslog.h> #include <ctype.h> >Release-Note: >Audit-Trail: >Unformatted: _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "[email protected]"
