Date: Wed, 14 Feb 2007 22:50:06 -0800 From: Garrett Cooper <youshi10@u.washington.edu> To: Cheng-Lung Sung <clsung@FreeBSD.org> Cc: freebsd-ports@freebsd.org Subject: [PATCH] snort-2.6.1.2 libnet dependency pointing to wrong binary Message-ID: <45D4029E.6040209@u.washington.edu> In-Reply-To: <20070215034131.GA11697@FreeBSD.csie.nctu.edu.tw> References: <45CD37C7.8030205@u.washington.edu> <20070215011746.GB3039@FreeBSD.csie.nctu.edu.tw> <45D3C6B9.9000405@u.washington.edu> <20070215034131.GA11697@FreeBSD.csie.nctu.edu.tw>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------050408060102020605010204 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cheng-Lung Sung wrote: > Can you apply this patch and try again? > On Wed, Feb 14, 2007 at 06:34:33PM -0800, Garrett Cooper wrote: >> Cheng-Lung Sung wrote: >>> Hi, >>> Can you try reinstall ports/net/libnet10 and try again? >>> On Fri, Feb 09, 2007 at 07:11:03PM -0800, Garrett Cooper wrote: >>>> I looked briefly at the config log and it appears that gcc under >>>> 7-CURRENT doesn't support all the tests available in confdefs.h (C++ >>>> checks). >>>> >>>> I've attached the error logfile as asked by the port message. >>>> >>>> -Garrett >>>> This file contains any messages produced by compilers while >>>> running configure, to aid debugging if configure makes a mistake. >>>> >>>> It was created by configure, which was >>>> generated by GNU Autoconf 2.59. Invocation command line was >>>> >>>> $ ./configure --enable-dynamicplugin --enable-flexresp >>>> --with-libnet-includes= --with-libnet-libraries= --with-mysql=no >>>> --with-odbc=no --with-postgresql=no --disable-prelude >>>> --prefix=/usr/local --build=i386-portbld-freebsd7.0 >> I did that actually. Multiple times. Or do I need to uninstall both >> libnet10 and it's dependencies, then reinstall snort? >> >> -Garrett > > > ------------------------------------------------------------------------ > > Index: Makefile > =================================================================== > RCS file: /home/pcvs/ports/security/snort/Makefile,v > retrieving revision 1.81 > diff -u -r1.81 Makefile > --- Makefile 7 Feb 2007 01:57:04 -0000 1.81 > +++ Makefile 15 Feb 2007 03:38:48 -0000 > @@ -77,8 +77,8 @@ > .endif > BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10 > CONFIGURE_ARGS+= --enable-flexresp \ > - --with-libnet-includes=${LIBNET_INCDIR} \ > - --with-libnet-libraries=${LIBNET_LIBDIR} > + --with-libnet-includes=${LOCALBASE}/includes/libnet10 \ > + --with-libnet-libraries=${LOCALBASE}/lib/libnet10 > .endif > > .if defined(WITH_FLEXRESP2) Unfortunately the patch you provided above doesn't work.. Here's a patch that will work though. Thanks for getting me on the right direction with a fix :). I'm CC'ing the ports@ list just for documentation purposes. -Garrett --------------050408060102020605010204 Content-Type: text/plain; name="snort_libnet.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="snort_libnet.patch" --- Makefile Wed Feb 14 22:45:23 2007 +++ /home/gcooper/Makefile Wed Feb 14 22:46:03 2007 @@ -50,9 +50,9 @@ .endif .if defined(WITH_FLEXRESP) -LIBNET_CONFIG?= /usr/local/bin/libnet-config +LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config .elif defined(WITH_FLEXRESP2) -LIBNET_CONFIG?= /usr/local/bin/libnet11-config +LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config .endif .if exists(${LIBNET_CONFIG}) @@ -77,8 +77,8 @@ .endif BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10 CONFIGURE_ARGS+= --enable-flexresp \ - --with-libnet-includes=${LOCALBASE}/include \ - --with-libnet-libraries=${LOCALBASE}/lib/ + --with-libnet-includes=${LIBNET_INCDIR} \ + --with-libnet-libraries=${LIBNET_LIBDIR} .endif .if defined(WITH_FLEXRESP2) --------------050408060102020605010204--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45D4029E.6040209>