[Bug 191148] New: net-mgmt/net-snmp does not build with python support

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jun 18 07:30:43 UTC 2014


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 at FreeBSD.org
          Reporter: girgen at 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.


More information about the freebsd-ports-bugs mailing list