Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Dec 2009 19:03:58 -0600
From:      Trix Farrar <>
To:        FreeBSD Questions <>
Subject:   Net-SNMP and ProPolice under 8.0-RELEASE
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help

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/ undefined reference to `__stack_chk_fail_loca=

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/ -- 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.

John D. "Trix" Farrar, CCNA         __\\|//__               Basement.NET                   (` o-o ')
   GPG Key Fprint: 525F DBA7 1A62 E4C4 E642  DF95 384B B851 3CEF C10A

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v2.0.13 (FreeBSD)



Want to link to this message? Use this URL: <>