From owner-freebsd-questions@FreeBSD.ORG Sun Aug 9 04:38:54 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F20C4106564A for ; Sun, 9 Aug 2009 04:38:53 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 9AFB68FC08 for ; Sun, 9 Aug 2009 04:38:53 +0000 (UTC) Received: from smoochies.rachie.is-a-geek.net (mailhub.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 63B2D7E818; Sat, 8 Aug 2009 20:38:52 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Sat, 8 Aug 2009 20:38:50 -0800 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA2; KDE/4.2.4; i386; ; ) References: <2097B988-0F1B-4F60-812D-71F6AB2C17CA@charter.net> <200908080836.09084.mel.flynn+fbsd.questions@mailing.thruhere.net> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200908082038.51127.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Charles Howse Subject: Re: mod_security 2.5.9 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Aug 2009 04:38:54 -0000 On Saturday 08 August 2009 19:38:42 Charles Howse wrote: > On Aug 8, 2009, at 11:36 AM, Mel Flynn wrote: > > On Saturday 08 August 2009 08:00:47 Charles Howse wrote: > >> Just wondering if anyone has tried updating from mod_security 2.5.9 > >> to > >> 2.5.9_1 via portupgrade. > >> It fails with a "linker error" for me. > > > > And can we see the actual linker error? > > Thought I had included enough in my original post. > Here's the mod_security part of 'portupgrade -a' > > ... > [Updating the pkgdb in /var/db/pkg ... - 51 > packages found (-0 +1) . done] > ---> Upgrading 'mod_security-2.5.9' to 'mod_security-2.5.9_1' (www/ > mod_security) > ---> Building '/usr/ports/www/mod_security' ... > checking for libapr config script... /usr/local/bin/apr-1-config > configure: using ' -lcrypt -pthread' for apr Library ^^^^^^^^^^^^^^^^^^ > /usr/local/share/apr/build-1/libtool --silent --mode=link cc -o > mod_security2.la -R/usr/local/lib -L/usr/local/lib -L/usr/local/lib - > L/usr/local/lib -lpcre -lxml2 -lz -liconv -lm -rpath /usr/local/ > libexec/apache22 -module -avoid-version msc_release.lo msc_lua.lo > acmp.lo msc_geo.lo pdf_protect.lo msc_reqbody.lo persist_dbm.lo > msc_pcre.lo msc_util.lo msc_parsers.lo modsecurity.lo msc_multipart.lo > msc_xml.lo msc_logging.lo re_variables.lo re_tfns.lo re_actions.lo > re_operators.lo re.lo apache2_util.lo apache2_io.lo apache2_config.lo > mod_security2.lo > # XXX there is "mlogc-static" target in the Makefile, too > cd /usr/ports/www/mod_security/work/modsecurity-apache_2.5.9/apache2 > && /usr/bin/env SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local > LOCALBASE=/usr/local X11BASE=/usr/local MOTIFLIB="-L/usr/local/lib - > lXm -lXp" LIBDIR="/usr/lib" CC="cc" CFLAGS="-O2 -fno-strict-aliasing - > pipe" CXX="c++" CXXFLAGS="-O2 -fno-strict-aliasing -pipe" MANPREFIX="/ > usr/local" BSD_INSTALL_PROGRAM="install -s -o root -g wheel -m 555" > BSD_INSTALL_SCRIPT="install -o root -g wheel -m 555" > BSD_INSTALL_DATA="install -o root -g wheel -m 444" > BSD_INSTALL_MAN="install -o root -g wheel -m 444" make -f Makefile > mlogc > > Building dynamically linked mlogc... > /usr/local/lib/libapr-1.so: undefined reference to `pthread_yield' > /usr/local/lib/libapr-1.so: undefined reference to > `pthread_attr_destroy' > /usr/local/lib/libapr-1.so: undefined reference to `pthread_create' > /usr/local/lib/libapr-1.so: undefined reference to `pthread_attr_init' > /usr/local/lib/libapr-1.so: undefined reference to `pthread_exit' > /usr/local/lib/libapr-1.so: undefined reference to `pthread_equal' > /usr/local/lib/libapr-1.so: undefined reference to `pthread_detach' > /usr/local/lib/libapr-1.so: undefined reference to > `pthread_attr_setstacksize' > /usr/local/lib/libapr-1.so: undefined reference to > `pthread_attr_getdetachstate' > /usr/local/lib/libapr-1.so: undefined reference to > `pthread_attr_setguardsize' > /usr/local/lib/libapr-1.so: undefined reference to > `pthread_attr_setdetachstate' > /usr/local/lib/libapr-1.so: undefined reference to `pthread_join' > /usr/local/lib/libapr-1.so: undefined reference to > `pthread_cond_timedwait' > *** Error code 1 Apparently -pthread isn't passed here. I've tried to reproduce this, but I can't. Could you show the output of: make -C /usr/ports/www/mod_security actual-package-depends Also the contents of /var/db/ports/apr/options. -- Mel