From owner-freebsd-questions@FreeBSD.ORG Sun Aug 9 12:24:51 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 F0A34106566C for ; Sun, 9 Aug 2009 12:24:50 +0000 (UTC) (envelope-from chowse@charter.net) Received: from mta11.charter.net (mta11.charter.net [216.33.127.80]) by mx1.freebsd.org (Postfix) with ESMTP id B15AC8FC08 for ; Sun, 9 Aug 2009 12:24:50 +0000 (UTC) Received: from imp10 ([10.20.200.10]) by mta11.charter.net (InterMail vM.7.09.01.00 201-2219-108-20080618) with ESMTP id <20090809122437.PSLH22327.mta11.charter.net@imp10> for ; Sun, 9 Aug 2009 08:24:37 -0400 Received: from larry.local ([24.176.107.74]) by imp10 with smtp.charter.net id SCQd1c0041cLRPc05CQdQL; Sun, 09 Aug 2009 08:24:37 -0400 X-Authority-Analysis: v=1.0 c=1 a=JzeP3PO7k-g51T8N4L8A:9 a=hxjvAUDik3s1w5kGMv8A:7 a=N_mD808oaJJSYxz7d5FhNWjjWJkA:4 Message-Id: <2A95E0AE-73DF-48F5-87E6-32683FE5AA8C@charter.net> From: Charles Howse To: FreeBSD Questions In-Reply-To: <200908082038.51127.mel.flynn+fbsd.questions@mailing.thruhere.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Sun, 9 Aug 2009 07:24:37 -0500 References: <2097B988-0F1B-4F60-812D-71F6AB2C17CA@charter.net> <200908080836.09084.mel.flynn+fbsd.questions@mailing.thruhere.net> <200908082038.51127.mel.flynn+fbsd.questions@mailing.thruhere.net> X-Mailer: Apple Mail (2.936) 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 12:24:51 -0000 On Aug 8, 2009, at 11:38 PM, Mel Flynn wrote: > 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 root@curly /root# make -C /usr/ports/www/mod_security actual-package- depends pcre-7.9:devel/pcre apr-gdbm-db42-1.3.8.1.3.9:devel/apr curl-7.19.5_1:ftp/curl libxml2-2.7.3:textproc/libxml2 apache-2.2.11_7:www/apache22 pkg-config-0.23_1:devel/pkg-config expat-2.0.1:textproc/expat2 gdbm-1.8.3_3:databases/gdbm db42-4.2.52_5:databases/db42 libiconv-1.13.1:converters/libiconv ca_root_nss-3.11.9_2:security/ca_root_nss pkg-config-0.23_1:devel/pkg-config libiconv-1.13.1:converters/libiconv expat-2.0.1:textproc/expat2 perl-5.8.9_3:lang/perl5.8 pcre-7.9:devel/pcre libiconv-1.13.1:converters/libiconv root@curly /root# > > Also the contents of /var/db/ports/apr/options. root@curly /root# cat /var/db/ports/apr/options # This file is auto-generated by 'make config'. # No user-servicable parts inside! # Options for apr-gdbm-db42-1.3.3.1.3.4_1 _OPTIONS_READ=apr-gdbm-db42-1.3.3.1.3.4_1 WITH_THREADS=true WITHOUT_IPV6=true WITH_GDBM=true WITH_BDB=true WITHOUT_NDBM=true WITHOUT_LDAP=true WITHOUT_MYSQL=true WITHOUT_PGSQL=true root@curly /root# Thanks Mel!