Re: Problem building new bsnmpd import on amd64

From: Harti Brandt <hartmut.brandt_at_dlr.de>
Date: Thu, 12 Jan 2006 08:58:01 +0100 (CET)
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>
Received on Thu Jan 12 2006 - 06:58:03 UTC

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