Problem building new bsnmpd import on amd64

Harti Brandt hartmut.brandt at dlr.de
Wed Jan 11 23:58:03 PST 2006


This should been fixed now (by building a shareable libdisk).

harti

On Wed, 11 Jan 2006, Peter Carah wrote:

PC>I'm seeing a problem with the new import of bsnmpd; it refuses to build on my
PC>amd64 (with native fbsd).  substituting -fPIC resulted in no change; the hint
PC>that ld gave is insufficient (or unrelated?).
PC>
PC>-- Pete
PC>---------------------------------------------------------------------------------
PC>........
PC>cc -fpic -DPIC -O2 -fno-strict-aliasing -pipe -DNDEBUG -I/usr/src/usr.sbin/bsnmp
PC>d/modules/snmp_hostres/../../../lpr/common_source -I. -c /usr/src/usr.sbin/bsnmp
PC>d/modules/snmp_hostres/../../../lpr/common_source/printcap.c -o printcap.So
PC>cc -fpic -DPIC -O2 -fno-strict-aliasing -pipe  -DNDEBUG -I/usr/src/usr.sbin/bsnm
PC>error
PC>-Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-pro
PC>totypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wsha
PC>dow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs
PC>-Wredundant-decls -c hostres_tree.c -o hostres_tree.So
PC>building shared library snmp_hostres.so.4
PC>/usr/obj/usr/src/tmp/usr/bin/ld: /usr/obj/usr/src/tmp/usr/lib/libdisk.a(disk.o):
PC> relocation R_X86_64_32S can not be used when making a shared object; recompile
PC>with -fPIC
PC>/usr/obj/usr/src/tmp/usr/lib/libdisk.a: could not read symbols: Bad value
PC>*** Error code 1
PC>
PC>Stop in /usr/src/usr.sbin/bsnmpd/modules/snmp_hostres.
PC>*** Error code 1
PC>
PC>Stop in /usr/src/usr.sbin/bsnmpd/modules.
PC>*** Error code 1
PC>
PC>Stop in /usr/src/usr.sbin/bsnmpd.
PC>*** Error code 1
PC>
PC>Stop in /usr/src/usr.sbin.
PC>*** Error code 1
PC>
PC>Stop in /usr/src.
PC>*** Error code 1
PC>
PC>Stop in /usr/src.
PC>*** Error code 1
PC>
PC>Stop in /usr/src.
PC>------------------------------------------------------------------------------
PC>_______________________________________________
PC>freebsd-current at freebsd.org mailing list
PC>http://lists.freebsd.org/mailman/listinfo/freebsd-current
PC>To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
PC>
PC>
PC>


More information about the freebsd-current mailing list