From owner-freebsd-questions@FreeBSD.ORG Mon Dec 7 06:49:59 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 86E1C106566C for ; Mon, 7 Dec 2009 06:49:59 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id D953B8FC0A for ; Mon, 7 Dec 2009 06:49:58 +0000 (UTC) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id nB76nqCj036704 for ; Mon, 7 Dec 2009 06:49:53 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk nB76nqCj036704 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1260168593; bh=fpYduondjlY7lo2oCCabtLX58OzjAoa+XjCf0BZV28Y=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4B1CA589.4010300@infracaninophile.co.uk>|Date:=20M on,=2007=20Dec=202009=2006:49:45=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.23=20(X11/20091129)|MIME-Vers ion:=201.0|To:=20FreeBSD=20Questions=20|Subject:=20Re:=20Net-SNMP=20and=20ProPolice=20under=208.0-REL EASE|References:=20<20091207010358.GG70263@basement.net>|In-Reply- To:=20<20091207010358.GG70263@basement.net>|X-Enigmail-Version:=20 0.95.6|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha256=3 B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20bounda ry=3D"------------enig545231FD44D00742C8662F33"; b=tDvhCnQpANBHX3o3B3O8SkNZDHJGuO4Pw97BWG3LqP6zGajvnFp0ivVjhXZjA/aNB jMsF8IVXLEaoncELEF3cY4y7S44DhGt8dJ3Nq4CTtGEga2mbB4u7Cl/Xk/gP0a9HBD 0S07S+xa2L/7q5yUjol7hbi9oXBRpwvdNTiaFPiY= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4B1CA589.4010300@infracaninophile.co.uk> Date: Mon, 07 Dec 2009 06:49:45 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.23 (X11/20091129) MIME-Version: 1.0 To: FreeBSD Questions References: <20091207010358.GG70263@basement.net> In-Reply-To: <20091207010358.GG70263@basement.net> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig545231FD44D00742C8662F33" X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Subject: Re: Net-SNMP and ProPolice under 8.0-RELEASE 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: Mon, 07 Dec 2009 06:49:59 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig545231FD44D00742C8662F33 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Trix Farrar wrote: > The Net-SNMP port (net-mgmt/net-snmp) builds and appears to work just > fine, but I cannot build the SNMP module for PHP (net-mgmt/php5-snmp). >=20 > Attempting to build php5-snmp fails during the configure stage. The > error message says to check the config.log. In the > /usr/ports/net-mgmt/php5-snmp/work/php-5.2.11/ext/snmp/config.log file > I found: >=20 > configure:5967: checking for snmp_parse_oid in -lnetsnmp > configure:6002: cc -o conftest -O2 -pipe -fno-strict-aliasing -R/usr/l= ocal/lib -L/usr/local/lib -L/usr/local/lib -lcrypto -lssl -rpath=3D/usr/= local/lib -lnetsnmp -lelf -lm -lkvm -ldevstat conftest.c -lnetsnmp >&5 > /usr/local/lib/libnetsnmp.so: undefined reference to `__stack_chk_fail_= local' >=20 > Google-ing around, I have found that the __stack_chk_fail_local symbol > is a side effect of compiling with the '-fstack-protector' option for > gcc -- which, I believe, is the default for 8.0-RELEASE. Searching > /usr/src, I found that this function is referenced in > /usr/src/lib/libc/sys/stack_protector.c, but appears to be defined in > /usr/src/contrib/gcclibs/libssp/ssp.c, which is part of GCC. I > believe that this winds up in /lib/libssp.so.0 -- which also exists > under 7.2-RELEASE. >=20 > The copy of net-mgmt/net-snmp that I compiled under 7.2-RELEASE does > not contain the __stack_chk_fail_local symbol. >=20 > What am I missing? I tried adding '-lssp' to the --with-libs option > included in CONFIGURE_ARGS in /usr/ports/net-mgmt/net-snmp/Makefile > with no change in behavior. As it stands, I cannot build anything > that relies on Net-SNMP. >=20 Yes -- you're not alone. I've seen exactly the same thing, but only on one machine. It works perfectly on an amd64 box running 8.0-RELEASE-p1, but fails miserably on an i386 box running 8.0-STABLE. Time to warm up send-pr(1). Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig545231FD44D00742C8662F33 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkscpZAACgkQ8Mjk52CukIyi6wCbBv/WNqZzG7uuX3NYVGUwfOQw y5MAn3awCrC2rJEkn/ZdeK/Z9V+qvSC8 =id0X -----END PGP SIGNATURE----- --------------enig545231FD44D00742C8662F33--