Date: Wed, 18 Jun 2014 07:30:43 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 191148] New: net-mgmt/net-snmp does not build with python support Message-ID: <bug-191148-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191148 Bug ID: 191148 Summary: net-mgmt/net-snmp does not build with python support Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: girgen@FreeBSD.org net-snmp fails when adding python support: cc -shared -pthread -Wl,-rpath,/usr/lib:/usr/local/lib -O2 -pipe -I/usr/local/include -D_WANT_IFADDR -fno-strict-aliasing build/temp.freebsd-10.0-RELEASE-amd64-2.7/netsnmp/client_intf.o -L/wrkdirs/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2/agent/.libs -L/wrkdirs/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2/snmplib/.libs -lm -lkvm -ldevstat -lpkg -lnetsnmp -lcrypto -lelf -lssp_nonshared -o build/lib.freebsd-10.0-RELEASE-amd64-2.7/netsnmp/client_intf.so /usr/bin/ld: cannot find -lpkg cc: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'cc' failed with exit status 1 *** Error code 1 I made a trivial fix by adding LDFLAGS: Index: Makefile =================================================================== --- Makefile (revision 357392) +++ Makefile (working copy) @@ -42,6 +42,7 @@ USES= perl5 CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ENV+= PERLPROG="${PERL}" PSPROG="${PS_CMD}" SED="${SED}" CONFIGURE_ARGS+=--enable-shared --enable-internal-md5 \ --with-default-snmp-version="${DEFAULT_SNMP_VERSION}" \ -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191148-13>