From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Sep 5 20:40:21 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6892E16A4DD for ; Tue, 5 Sep 2006 20:40:21 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB0CE43D46 for ; Tue, 5 Sep 2006 20:40:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k85KeJMa098135 for ; Tue, 5 Sep 2006 20:40:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k85KeJvP098134; Tue, 5 Sep 2006 20:40:19 GMT (envelope-from gnats) Resent-Date: Tue, 5 Sep 2006 20:40:19 GMT Resent-Message-Id: <200609052040.k85KeJvP098134@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, Jez Hancock Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4DBCB16A4DD; Tue, 5 Sep 2006 20:36:30 +0000 (UTC) (envelope-from munk@munk.me.uk) Received: from munk.me.uk (mail.munk.me.uk [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0CC343D58; Tue, 5 Sep 2006 20:36:12 +0000 (GMT) (envelope-from munk@munk.me.uk) Received: from munk by munk.me.uk with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1GKheU-0001FW-3j; Tue, 05 Sep 2006 21:36:10 +0100 Message-Id: <20060905203609.GA4247@munk.me.uk> Date: Tue, 5 Sep 2006 21:36:10 +0100 From: Jez Hancock Sender: Jez Hancock To: FreeBSD-gnats-submit@FreeBSD.org Cc: clsung@FreeBSD.org, snort-users@lists.sourceforge.net Subject: ports/102922: Snort make build fails on FreeBSD 4.11 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jez Hancock List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Sep 2006 20:40:21 -0000 >Number: 102922 >Category: ports >Synopsis: Snort make build fails on FreeBSD 4.11 >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Sep 05 20:40:18 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jez Hancock >Release: FreeBSD 4.11-STABLE i386 >Organization: n/a >Environment: FreeBSD users.munk.me.uk 4.11-STABLE FreeBSD 4.11-STABLE #0:= Thu Apr 27 02:47:55 BST 2006 root@users.munk.nu:/usr/obj/usr/src/sys/MUNKB= OXEN i386 >Description: Build of snort 2.6.0 fails on FreeBSD 4.11. Seems to be a problem building the dynamic-rule target(?) 'all-am' - make build is successful when run with the -DWITHOUT_DYNAMIC flag on FreeBSD 4.11. Apparently the build is ok on 6.x maintainer - only 4.x seems to be affected, unsure of 5.x. In researching the problem I came across a similar problem with snort here: http://marc.theaimsgroup.com/?l=3Dsnort-users&m=3D102319926701636&w=3D2 which was resolved here: http://marc.theaimsgroup.com/?l=3Dsnort-users&m=3D102322142426677&w=3D2 although how relevant that fix is to this problem I can't say - the message was: cvs update - sys/types.h should be before socket.h so I'm wondering if this problem has something to do with header files not being included on FreeBSD 4.11 that are involved in the dynamic rule processing section of the code? May be way off though. cc'ing to snort-users list in the hope the snort developers might have some insight in the issue. Output of errors listed below: [18:18:10] root@users /home/munk/ports/security/snort#=1B[105C ; make build =3D=3D=3D> Building for snort-2.6.0 make all-recursive Making all in src Making all in dynamic-rule cp ../include/sfsnort_dynamic_detection_lib.c sfsnort_dynamic_detection_lib= =2Ec cp ../include/sfsnort_dynamic_detection_lib.h sfsnort_dynamic_detection_lib= =2Eh make all-am /bin/sh /usr/local/bin/libtool --mode=3Dcompile --tag=3DCC cc -DHAVE_CONFIG= _H -I. -I. -I../../.. -I../include -I/usr/local/include -I/usr/local/incl= ude/mysql -DENABLE_MYSQL -O -pipe -Wall -DDYNAMIC_PLUGIN -c -o sfsnort_dy= namic_detection_lib.lo sfsnort_dynamic_detection_lib.c mkdir .libs cc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../include -I/usr/local/include -I= /usr/local/include/mysql -DENABLE_MYSQL -O -pipe -Wall -DDYNAMIC_PLUGIN -c = sfsnort_dynamic_detection_lib.c -fPIC -DPIC -o .libs/sfsnort_dynamic_detec= tion_lib.o In file included from ../include/sf_snort_plugin_api.h:39, from sfsnort_dynamic_detection_lib.c:2: /usr/include/netinet/in.h:235: syntax error before `in_addr_t' /usr/include/netinet/in.h:287: syntax error before `u_char' In file included from /usr/include/netinet/in.h:493, from ../include/sf_snort_plugin_api.h:39, from sfsnort_dynamic_detection_lib.c:2: /usr/include/netinet6/in6.h:122: syntax error before `u_int8_t' /usr/include/netinet6/in6.h:144: syntax error before `u_int8_t' /usr/include/netinet6/in6.h:149: syntax error before `u_int32_t' /usr/include/netinet6/in6.h:612: syntax error before `*' /usr/include/netinet6/in6.h:613: warning: type defaults to `int' in declara= tion of `inet6_option_append' /usr/include/netinet6/in6.h:614: syntax error before `*' /usr/include/netinet6/in6.h:614: warning: type defaults to `int' in declara= tion of `inet6_option_alloc' /usr/include/netinet6/in6.h:614: warning: data definition has no type or st= orage class /usr/include/netinet6/in6.h:615: syntax error before `u_int8_t' /usr/include/netinet6/in6.h:616: syntax error before `u_int8_t' /usr/include/netinet6/in6.h:631: syntax error before `u_int8_t' /usr/include/netinet6/in6.h:636: syntax error before `u_int8_t' /usr/include/netinet6/in6.h:638: syntax error before `u_int8_t' *** Error code 1 Stop in /home/munk/ports/security/snort/work/snort-2.6.0/src/dynamic-exampl= es/dynamic-rule. *** Error code 1 Stop in /home/munk/ports/security/snort/work/snort-2.6.0/src/dynamic-exampl= es/dynamic-rule. *** Error code 1 Stop in /home/munk/ports/security/snort/work/snort-2.6.0/src/dynamic-exampl= es. *** Error code 1 Stop in /home/munk/ports/security/snort/work/snort-2.6.0/src/dynamic-exampl= es. *** Error code 1 Stop in /home/munk/ports/security/snort/work/snort-2.6.0/src. *** Error code 1 Stop in /home/munk/ports/security/snort/work/snort-2.6.0. *** Error code 1 Stop in /home/munk/ports/security/snort/work/snort-2.6.0. *** Error code 1 Stop in /home/munk/ports/security/snort. >How-To-Repeat: cvsup to latest ports tree. cd /usr/ports/security/snort make clean build >Fix: Temporary workaround for users who don't require dynamic rule functionality as mentioned above is to pass -DWITHOUT_DYNAMIC flag to make: cd /usr/ports/security/snort make -DWITHOUT_DYNAMIC clean install However the default port installed snort.conf file will need changing as per the message displayed by the port when installing WITHOUT_DYNAMIC. >Release-Note: >Audit-Trail: >Unformatted: