Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2006 23:50:47 -0800
From:      Peter Carah <pete@altadena.net>
To:        current@freebsd.org
Subject:   Problem building new bsnmpd import on amd64
Message-ID:  <43C60A57.3040405@altadena.net>

next in thread | raw e-mail | index | archive | help
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.
------------------------------------------------------------------------------



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