From owner-freebsd-questions@FreeBSD.ORG Mon Dec 7 01:26:21 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 4C1A1106566B for ; Mon, 7 Dec 2009 01:26:21 +0000 (UTC) (envelope-from trix@basement.net) Received: from fran.basement.net (fran.basement.net [76.74.249.173]) by mx1.freebsd.org (Postfix) with ESMTP id 1329D8FC12 for ; Mon, 7 Dec 2009 01:26:20 +0000 (UTC) Received: from willow.basement.net (nat.home.basement.net [173.162.16.100]) by fran.basement.net (8.12.8/8.12.8) with ESMTP id nB713x34009108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 6 Dec 2009 19:04:00 -0600 Received: from willow.basement.net (localhost [127.0.0.1]) by willow.basement.net (8.14.3/8.14.3) with ESMTP id nB713wtr010376 for ; Sun, 6 Dec 2009 19:03:59 -0600 (CST) (envelope-from trix@willow.basement.net) Received: (from trix@localhost) by willow.basement.net (8.14.3/8.14.2/Submit) id nB713wRS010375 for freebsd-questions@freebsd.org; Sun, 6 Dec 2009 19:03:58 -0600 (CST) (envelope-from trix) Date: Sun, 6 Dec 2009 19:03:58 -0600 From: Trix Farrar To: FreeBSD Questions Message-ID: <20091207010358.GG70263@basement.net> Mail-Followup-To: FreeBSD Questions Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JSkcQAAxhB1h8DcT" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on fran.basement.net Subject: 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 01:26:21 -0000 --JSkcQAAxhB1h8DcT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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). 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: configure:5967: checking for snmp_parse_oid in -lnetsnmp configure:6002: cc -o conftest -O2 -pipe -fno-strict-aliasing -R/usr/local= /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_loca= l' 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. The copy of net-mgmt/net-snmp that I compiled under 7.2-RELEASE does not contain the __stack_chk_fail_local symbol. 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 John D. "Trix" Farrar, CCNA __\\|//__ Basement.NET trix@basement.net (` o-o ') http://www.basement.net/ -----------------------------------ooO-(_)-Ooo-------------------------- GPG Key Fprint: 525F DBA7 1A62 E4C4 E642 DF95 384B B851 3CEF C10A --JSkcQAAxhB1h8DcT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEARECAAYFAkscVH4ACgkQOEu4UTzvwQq83ACff3NUFP0RwYfcCvEC9fsyF3/J NWgAoMSRNpE2cQqOb1ay1zOyXM1Km0Ii =WK1s -----END PGP SIGNATURE----- --JSkcQAAxhB1h8DcT--