From owner-freebsd-i386@FreeBSD.ORG Wed Apr 11 18:10:12 2012 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C1AC1065675 for ; Wed, 11 Apr 2012 18:10:12 +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 759338FC2A for ; Wed, 11 Apr 2012 18:10:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q3BIAC5u007939 for ; Wed, 11 Apr 2012 18:10:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3BIACd3007938; Wed, 11 Apr 2012 18:10:12 GMT (envelope-from gnats) Resent-Date: Wed, 11 Apr 2012 18:10:12 GMT Resent-Message-Id: <201204111810.q3BIACd3007938@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Efren Yevale Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B7D0F1065672 for ; Wed, 11 Apr 2012 18:08:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 972728FC18 for ; Wed, 11 Apr 2012 18:08:52 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q3BI8qiC091951 for ; Wed, 11 Apr 2012 18:08:52 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q3BI8qYk091950; Wed, 11 Apr 2012 18:08:52 GMT (envelope-from nobody) Message-Id: <201204111808.q3BI8qYk091950@red.freebsd.org> Date: Wed, 11 Apr 2012 18:08:52 GMT From: Efren Yevale To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: i386/166853: [patch] security/prelude-pflogger compilation when net/libpcap is installed X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2012 18:10:12 -0000 >Number: 166853 >Category: i386 >Synopsis: [patch] security/prelude-pflogger compilation when net/libpcap is installed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 11 18:10:12 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Efren Yevale >Release: 9.0 >Organization: Personal >Environment: FreeBSD dtimonitor 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Good day. It seems you are unable to compile prelude-pflogger when lippcap is installed in your system. Under this conditions the compilation fails due to the following: ===> Building for prelude-pflogger-0.9.0.r2_1 gmake all-recursive gmake[1]: Entering directory `/usr/ports/security/prelude-pflogger/work/prelude-pflogger-0.9.0-rc2' Making all in src gmake[2]: Entering directory `/usr/ports/security/prelude-pflogger/work/prelude-pflogger-0.9.0-rc2/src' Making all in include gmake[3]: Entering directory `/usr/ports/security/prelude-pflogger/work/prelude-pflogger-0.9.0-rc2/src/include' gmake[3]: Nothing to be done for `all'. gmake[3]: Leaving directory `/usr/ports/security/prelude-pflogger/work/prelude-pflogger-0.9.0-rc2/src/include' gmake[3]: Entering directory `/usr/ports/security/prelude-pflogger/work/prelude-pflogger-0.9.0-rc2/src' source='process_packet.c' object='process_packet.o' libtool=no \ depfile='.deps/process_packet.Po' tmpdepfile='.deps/process_packet.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ cc -I../ -I./include/ -I/usr/local/include -I. -I. -I.. -O2 -pipe -fno-strict-aliasing -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast -Wcast-align -Wnested-externs -Wunused -c `test -f process_packet.c || echo './'`process_packet.c In file included from process_packet.c:49: /usr/include/net/bpf.h:65: error: redefinition of 'struct bpf_program' /usr/include/net/bpf.h:1050: error: redefinition of 'struct bpf_insn' gmake[3]: *** [process_packet.o] Error 1 gmake[3]: Leaving directory `/usr/ports/security/prelude-pflogger/work/prelude-pflogger-0.9.0-rc2/src' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/security/prelude-pflogger/work/prelude-pflogger-0.9.0-rc2/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/security/prelude-pflogger/work/prelude-pflogger-0.9.0-rc2' gmake: *** [all] Error 2 *** Error code 1 Stop in /usr/ports/security/prelude-pflogger. >How-To-Repeat: Install libpcap: cd /usr/ports/net/libpcap make install clean And try to install the port: cd /usr/ports/security/prelude-pflogger make install clean >Fix: The patch provided for /usr/ports/security/prelude-pflogger/work/prelude-pflogger-0.9.0-rc2/src/process_packet.c changes the order in which the files net/bpf.h and pcap.h are included, the compilation succeeds after this with the command "make install clean". I'm not sure if this is the best way to solve the problem but prelude-pflogger is working without problems on my system. Patch attached with submission follows: --- process_packet.c.ori 2012-04-11 12:08:57.000000000 -0500 +++ process_packet.c 2012-04-11 12:05:26.000000000 -0500 @@ -43,10 +43,10 @@ #include #include #include +#include #include #include #include -#include #include #include >Release-Note: >Audit-Trail: >Unformatted: