Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 2002 09:26:38 +0200
From:      Anders Nordby <anders@FreeBSD.org>
To:        Vincent Goupil <goups@bigfoot.com>
Cc:        kuriyama@freebsd.org, ports@freebsd.org
Subject:   Re: FreeBSD Port: net-snmp-5.0.1_1
Message-ID:  <20020604072638.GA93429@totem.fix.no>
In-Reply-To: <000001c20b84$a630cd80$0f32a8c0@w2kworkstation>
References:  <000001c20b84$a630cd80$0f32a8c0@w2kworkstation>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

On Tue, Jun 04, 2002 at 12:59:45AM -0400, Vincent Goupil wrote:
> I want to use PHP with snmp support (PHP need the shared library).
> I got an error when I try to build the package with shared library.  (I
> got the error on two different computer running FreeBSD-Release-P6)
> 
> After, I try to enable the shared library:
> [root@systemlog /usr/ports/net/net-snmp/work/net-snmp-5.0.1] ./configure
> --enable-shared
> Great, I return to install the package:
> [root@systemlog /usr/ports/net/net-snmp] make install
> 
> I got the error:
> /bin/sh ../libtool --mode=link cc -g -O2 -Dfreebsd4 -o snmpd snmpd.lo
> libnetsnmpagent.la  libnetsnmpmibs.la helpers/libnetsnmphelpers.la
> ../snmplib/libnetsnmp.la -lkvm -lcrypto -lm
> cc -g -O2 -Dfreebsd4 -o .libs/snmpd snmpd.o .libs/libnetsnmpagent.so
> .libs/libnetsnmpmibs.so helpers/.libs/libnetsnmphelpers.so
> ../snmplib/.libs/libnetsnmp.so -lkvm -lcrypto -lm  -Wl,--rpath
> -Wl,/usr/local/lib
> .libs/libnetsnmpagent.so: undefined reference to `hosts_ctl'
> *** Error code 1
> 
> Stop in /usr/ports/net/net-snmp/work/net-snmp-5.0.1/agent.
> *** Error code 1
> 
> Stop in /usr/ports/net/net-snmp/work/net-snmp-5.0.1.
> *** Error code 1

This seems to be a missing libwrap library. Try adding -lwrap.

Cheers,

-- 
Anders.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020604072638.GA93429>