Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jul 2010 14:13:31 -0700
From:      paul beard <paulbeard@gmail.com>
To:        ports@freebsd.org
Subject:   FreeBSD 8 SSP challenge? [cacti-spine ===> Script "configure" failed unexpectedly]
Message-ID:  <AANLkTilBpT2N4zZApnZ6WxpUaCc-u2mhR7Pz-364zWO7@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
At the request of the maintainer, I am opening this up to the wider
audience here on ports@.

Trying to get cacti-spine to build on FreeBSD 8 and getting stuck.

checking whether we are using Solaris privileges... no
checking for mysql_init in -lmysqlclient_r... yes
checking for mysql_thread_init in -lmysqlclient_r... yes
checking if UCD-SNMP needs crypto support... no
checking if Net-SNMP needs crypto support... yes
checking for snmp_timeout in -lnetsnmp... no
Cannot find NET-SNMP libraries(snmp)... checking UCD-SNMP
checking for snmp_timeout in -lsnmp... no
configure: error: Cannot find UCD-SNMP libraries(snmp)

Over the course of trying to work this out, I found similar issues to
issue 141238 [1] . This patch

RCS file: /usr/share/cvs/freebsd/ports/net-mgmt/cacti-spine/Makefile,v
retrieving revision 1.22
diff -u -r1.22 Makefile
--- Makefile    2 Jun 2010 19:14:12 -0000       1.22
+++ Makefile    25 Jun 2010 15:42:18 -0000
@@ -19,6 +19,8 @@

 GNU_CONFIGURE= YES
 CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} --with-snmp=${LOCALBASE}
+CONFIGURE_ENV= LDFLAGS="`net-snmp-config --libs`" \
+               CPPFLAGS="`net-snmp-config --cflags`"
 USE_MYSQL=     YES
 USE_OPENSSL=   YES
 USE_AUTOTOOLS= libtool:22

seems to get us closer. We get through configure, anyway, and fail here:

libtool: link: cc -I/usr/local/include/net-snmp
-I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -pipe -g
-rpath=/usr/lib:/usr/local/lib -o spine sql.o spine.o util.o snmp.o
locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o
-L/usr/local/lib -L/usr/local/lib/mysql /usr/local/lib/libnetsnmp.so
-L/usr/lib -lkvm -ldevstat /usr/local/lib/mysql/libmysqlclient_r.so
-lcrypt -lcrypto -lz -lpthread -lm -pthread -Wl,-rpath
-Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib/mysql -Wl,-rpath
-Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib/mysql
/usr/local/lib/libnetsnmp.so: undefined reference to `__stack_chk_fail_local'
*** Error code 1






1. http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2009-December/177481.html

-- 
Paul Beard / www.paulbeard.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTilBpT2N4zZApnZ6WxpUaCc-u2mhR7Pz-364zWO7>