ports/111107: security/snort port broken in 7-current -- fails at snort configure stage
Garrett Cooper
youshi10 at u.washington.edu
Sun Apr 1 21:40:06 UTC 2007
>Number: 111107
>Category: ports
>Synopsis: security/snort port broken in 7-current -- fails at snort configure stage
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Apr 01 21:40:06 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Garrett Cooper
>Release: 7-CURRENT
>Organization:
>Environment:
[root at 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 at 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 at 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 at 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 at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list