From nobody@FreeBSD.org  Sun Apr  1 21:41:25 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id BB62616A46C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  1 Apr 2007 21:41:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 9FB5C13C448
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  1 Apr 2007 21:41:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l31LfPY7039545
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 1 Apr 2007 21:41:25 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l31LaNFj039036;
	Sun, 1 Apr 2007 21:36:23 GMT
	(envelope-from nobody)
Message-Id: <200704012136.l31LaNFj039036@www.freebsd.org>
Date: Sun, 1 Apr 2007 21:36:23 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: security/snort port broken in 7-current -- fails at snort configure stage
X-Send-Pr-Version: www-3.0

>Number:         111109
>Category:       ports
>Synopsis:       security/snort port broken in 7-current -- fails at snort configure stage
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    clsung
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 01 21:50:03 GMT 2007
>Closed-Date:    Sun Apr 01 23:09:49 GMT 2007
>Last-Modified:  Sun Feb 03 22:26:09 UTC 2013
>Originator:     Garrett Cooper
>Release:        7-CURRENT
>Organization:
>Environment:
[root@hoover /usr/ports/net/libnet10]# uname -a
FreeBSD hoover.localdomain 7.0-CURRENT FreeBSD 7.0-CURRENT #25: Mon Mar 26 23:21:11 PST 2007     root@hoover.localdomain:/usr/obj/usr/src/sys/HOOVER  i386
>Description:
The ports patched version of security/snort fails to build erroring out with the following message:

checking for strlcat... yes
checking for strerror... yes
checking for __FUNCTION__... yes
checking for floor in -lm... yes
checking for pcap_datalink in -lpcap... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking for pcre_compile in -lpcre... yes
checking for dlsym in -ldl... no
checking for dlsym in -lc... no

   ERROR!  programmatic interface to dynamic link loader
   not found.  Cannot use dynamic plugin libraries.

===>  Script "configure" failed unexpectedly.
Please report the problem to clsung@FreeBSD.org [maintainer] and attach the
"/usr/ports/security/snort/work/snort-2.6.1.3/config.log" including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).

Attempted to contact maintainer but he hasn't replied since I last sent him a message (2-3 weeks ago).

>How-To-Repeat:
Try and compile ports patched version of snort under 7-CURRENT.
>Fix:
	From what I can tell configure operates properly, with snort unpatched using the local files instead of the system files:

[root@hoover /usr/ports/distfiles/snort-2.6.1.3]# ./configure --enable-pthread --enable-perfprofiling --enable-maintainer-mode --prefix=/usr/local 
# SNIP
checking for strerror... yes
checking for __FUNCTION__... yes
checking for floor in -lm... yes
checking for pcap_datalink in -lpcap... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking for pcre_compile in -lpcre... yes
checking for dlsym in -ldl... no
checking for dlsym in -lc... yes
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status 

I can't seem to determine what the differences might be though:

[root@hoover /usr/ports/distfiles/snort-2.6.1.3]# diff configure /usr/ports/security/snort/work/snort-2.6.1.3/configure
19567c19567
< LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
---
> LIBTOOL_DEPS=" /usr/local/share/libtool/ltmain.sh"
19570c19570
< LIBTOOL='$(SHELL) $(top_builddir)/libtool'
---
> LIBTOOL='$(SHELL) /usr/local/bin/libtool'
23906,23907c23906,23907
<             CFLAGS="${CFLAGS} `libnet-config --defines` `libnet-config --cflags`"
<             LIBS="${LIBS} `libnet-config --libs`"
---
>             CFLAGS="${CFLAGS} `/usr/local/bin/libnet10-config --defines` `/usr/local/bin/libnet10-config --cflags`"
>             LIBS="${LIBS} `/usr/local/bin/libnet10-config --libs`"
23931c23931
<    CPPFLAGS="${CPPFLAGS} -DENABLE_RESPONSE `libnet-config --defines --cflags`" LDFLAGS="${LDFLAGS} `libnet-config --libs`"
---
>    CPPFLAGS="${CPPFLAGS} -DENABLE_RESPONSE `/usr/local/bin/libnet10-config --defines --cflags`" LDFLAGS="${LDFLAGS} `/usr/local/bin/libnet10-config --libs`"
23942c23942
<   if test `libnet-config --cflags | wc -c` = "1"; then
---
>   if test `/usr/local/bin/libnet10-config --cflags | wc -c` = "1"; then
23947,23949c23947,23949
<   if test `libnet-config --libs | wc -c` = "1"; then
<     { echo "$as_me:$LINENO: WARNING: libnet-config --libs is broken on your system.  If you" >&5
< echo "$as_me: WARNING: libnet-config --libs is broken on your system.  If you" >&2;}
---
>   if test `/usr/local/bin/libnet10-config --libs | wc -c` = "1"; then
>     { echo "$as_me:$LINENO: WARNING: /usr/local/bin/libnet10-config --libs is broken on your system.  If you" >&5
> echo "$as_me: WARNING: /usr/local/bin/libnet10-config --libs is broken on your system.  If you" >&2;}
24129c24129
<     libnet_dir=`libnet-config --cflags | cut -dI -f2`
---
>     libnet_dir=`/usr/local/bin/libnet10-config --cflags | cut -dI -f2`
24533c24533
<    CPPFLAGS="${CPPFLAGS} -DENABLE_REACT `libnet-config --defines --cflags`" LDFLAGS="${LDFLAGS} `libnet-config --libs`"
---
>    CPPFLAGS="${CPPFLAGS} -DENABLE_REACT `/usr/local/bin/libnet10-config --defines --cflags`" LDFLAGS="${LDFLAGS} `/usr/local/bin/libnet10-config --libs`"
24545c24545
<   if test `libnet-config --cflags | wc -c` = "1"; then
---
>   if test `/usr/local/bin/libnet10-config --cflags | wc -c` = "1"; then
24550,24552c24550,24552
<   if test `libnet-config --libs | wc -c` = "1"; then
<     { echo "$as_me:$LINENO: WARNING: libnet-config --libs is broken on your system.  If you" >&5
< echo "$as_me: WARNING: libnet-config --libs is broken on your system.  If you" >&2;}
---
>   if test `/usr/local/bin/libnet10-config --libs | wc -c` = "1"; then
>     { echo "$as_me:$LINENO: WARNING: /usr/local/bin/libnet10-config --libs is broken on your system.  If you" >&5
> echo "$as_me: WARNING: /usr/local/bin/libnet10-config --libs is broken on your system.  If you" >&2;}
24732c24732
<     libnet_dir=`libnet-config --cflags | cut -dI -f2`
---
>     libnet_dir=`/usr/local/bin/libnet10-config --cflags | cut -dI -f2`

But then again this package pulls in its own ltmain.sh file, instead of using the system wide one (that's my hunch for where stuff's not meshing).

I've posted a complete side by side diff at: http://students.washington.edu/youshi10/posted/ltmain.sh.side_by_side.diff

Any help would be more than appreciated in solving this annoying problem.

Thanks!
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->clsung 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Apr 1 21:50:11 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=111109 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Apr 1 23:09:40 UTC 2007 
State-Changed-Why:  
Duplicate of ports/111105. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=111109 
>Unformatted:
