Problem building new bsnmpd import on amd64

From: Peter Carah <pete_at_altadena.net>
Date: Wed, 11 Jan 2006 23:50:47 -0800
I'm seeing a problem with the new import of bsnmpd; it refuses to build on my
amd64 (with native fbsd).  substituting -fPIC resulted in no change; the hint
that ld gave is insufficient (or unrelated?).

-- Pete
---------------------------------------------------------------------------------
........
cc -fpic -DPIC -O2 -fno-strict-aliasing -pipe -DNDEBUG -I/usr/src/usr.sbin/bsnmp
d/modules/snmp_hostres/../../../lpr/common_source -I. -c /usr/src/usr.sbin/bsnmp
d/modules/snmp_hostres/../../../lpr/common_source/printcap.c -o printcap.So
cc -fpic -DPIC -O2 -fno-strict-aliasing -pipe  -DNDEBUG -I/usr/src/usr.sbin/bsnm
error
-Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-pro
totypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wsha
dow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs
-Wredundant-decls -c hostres_tree.c -o hostres_tree.So
building shared library snmp_hostres.so.4
/usr/obj/usr/src/tmp/usr/bin/ld: /usr/obj/usr/src/tmp/usr/lib/libdisk.a(disk.o):
 relocation R_X86_64_32S can not be used when making a shared object; recompile
with -fPIC
/usr/obj/usr/src/tmp/usr/lib/libdisk.a: could not read symbols: Bad value
*** Error code 1

Stop in /usr/src/usr.sbin/bsnmpd/modules/snmp_hostres.
*** Error code 1

Stop in /usr/src/usr.sbin/bsnmpd/modules.
*** Error code 1

Stop in /usr/src/usr.sbin/bsnmpd.
*** Error code 1

Stop in /usr/src/usr.sbin.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
------------------------------------------------------------------------------
Received on Thu Jan 12 2006 - 06:50:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:50 UTC