Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jan 2015 20:53:16 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Michael Butler <imb@protected-networks.net>
Cc:        zi@freebsd.org, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: SVN r377448 breaks net-snmp on -current
Message-ID:  <20150119205316.2f5880d6.ohartman@zedat.fu-berlin.de>
In-Reply-To: <54BD5D99.8000200@protected-networks.net>
References:  <54BD5D99.8000200@protected-networks.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/=PSqsp6bzoRQEzlJL5V7Cn/
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Am Mon, 19 Jan 2015 14:40:09 -0500
Michael Butler <imb@protected-networks.net> schrieb:

> Apparently, there was some 'magic' to accessing these sysctls:
>=20
> libtool: link: cc -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -O2 -pipe
> -march=3Dpentium4 -I/usr/local/include -I/include -D_WANT_IFADDR
> -fstack-protector -fno-strict-aliasing -Ufreebsd11 -Dfreebsd11=3Dfreebsd11
> -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe
> -fstack-protector -I/usr/local/include
> -I/usr/local/lib/perl5/5.18/mach/CORE -o .libs/snmpd .libs/snmpd.o
> -Wl,-R/usr/local/lib/perl5/5.18/mach/CORE  -L/usr/lib -L/lib
> ./.libs/libnetsnmpagent.so -L/usr/local/lib
> -L/usr/local/lib/perl5/5.18/mach/CORE ./.libs/libnetsnmpmibs.so
> /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.3/agent/.libs/libnetsnmpag=
ent.so
> /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.3/snmplib/.libs/libnetsnmp=
.so
> ../snmplib/.libs/libnetsnmp.so -lpkg -lwrap -lperl -lcrypt -lutil -lelf
> -lssp_nonshared -lm -lkvm -ldevstat -lcrypto -pthread  -Wl,-rpath
> -Wl,/usr/local/lib
> ./.libs/libnetsnmpmibs.so: undefined reference to `sysctl_read_icmp_stat'
> ./.libs/libnetsnmpmibs.so: undefined reference to `sysctl_read_icmp6_stat'
> ./.libs/libnetsnmpmibs.so: undefined reference to
> `sysctl_read_icmp6_msg_stat'
> ./.libs/libnetsnmpmibs.so: undefined reference to
> `sysctl_read_icmp_msg_stat'
> cc: error: linker command failed with exit code 1 (use -v to see invocati=
on)
> *** Error code 1
>=20
> 	imb
>=20

Me, too here. I just filed a PR: Bug 196904 - net-mgmt/net-snmp: undefined =
reference to
`sysctl_read_XXXXXX=20

oh

--Sig_/=PSqsp6bzoRQEzlJL5V7Cn/
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJUvWCsAAoJEOgBcD7A/5N8rs8H/2quzSqkyLsaVhudrIgmZuBS
aKWrDLc7mNOJG94KouP2hhufGC9dy+Bz70go/H16/MyUQTOV89+ln3Y7S6oWRni3
84QxkXeCJ69lk+ZuN577SoGERuwJsbsZ7eaoEqGxk3ca6mXpjBAgzIvF5554NE2k
pnKun5uQY0UGTx1pg/oszWtIXE8dxe6y4uym0+2HdoLwsRRSbbwqaedW8/b0g978
InTVIHl85jsQ8e5NRzeu9WQAY+eJGhStYRJ6utxaUs6J4E7lq1KBjylJGUOWlZIf
WfSZ1XkVaLH+CckA7tVwOla/6EX0PjYe6Yst6S4P6OA0h2cxAkOKz1LxkJYOxMs=
=LwZ0
-----END PGP SIGNATURE-----

--Sig_/=PSqsp6bzoRQEzlJL5V7Cn/--



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