Subject: building -current on FreeBSD fails
To: None <current-users@netbsd.org>
From: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
List: current-users
Date: 04/28/2003 14:48:37
I am trying to cross build -current on FreeBSD 4.8-RELEASE. I got an error
in line 300 of usr.sbin/installboot/installboot.c. I changed
ulong val;
into
u_long val;
(is u_long supposed to exist on all posix compliant systems?)

But what would be the fix for the endian symbols below? This is a
"build tools".

[...]
cc -O -I. -I/src/rvdp-router-image/NetBSD/src/tools/installboot -I/src/rvdp-router-image/NetBSD/src/tools/installboot/../mips-elf2ecoff -I/src/rvdp-router-image/NetBSD/obj/src/rvdp-router-image/NetBSD/src/tools/compat -I/src/rvdp-router-image/NetBSD/obj/src/rvdp-router-image/NetBSD/src/tools/compat/include  -I/src/rvdp-router-image/NetBSD/src/tools/installboot/../compat -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64  -I/src/rvdp-router-image/NetBSD/src/tools/installboot/../../usr.sbin/installboot -I.   -o installboot installboot.lo sum.lo machines.lo fstypes.lo ffs.lo ffs_bswap.lo bbinfo.lo alpha.lo amiga.lo i386.lo macppc.lo news.lo pmax.lo sparc.lo sparc64.lo sun68k.lo vax.lo x68k.lo -L/src/rvdp-router-image/NetBSD/obj/src/rvdp-router-image/NetBSD/src/tools/compat -lnbcompat -lz
sum.lo: In function `set_sunsum':
sum.lo(.text+0x9c): undefined reference to `be16toh'
sum.lo(.text+0xb9): undefined reference to `be16toh'
bbinfo.lo: In function `shared_bbinfo_setboot':
bbinfo.lo(.text+0x4a0): undefined reference to `le32toh'
bbinfo.lo(.text+0x4af): undefined reference to `be32toh'
bbinfo.lo(.text+0x5b4): undefined reference to `htole32'
bbinfo.lo(.text+0x5c3): undefined reference to `htobe32'
bbinfo.lo(.text+0x5e0): undefined reference to `htole32'
bbinfo.lo(.text+0x5f2): undefined reference to `htobe32'
bbinfo.lo(.text+0x62b): undefined reference to `htole32'
bbinfo.lo(.text+0x647): undefined reference to `htobe32'
alpha.lo: In function `alpha_clearboot':
alpha.lo(.text+0x15c): undefined reference to `le64toh'
alpha.lo(.text+0x17f): undefined reference to `le64toh'
alpha.lo(.text+0x223): undefined reference to `le64toh'
alpha.lo(.text+0x246): undefined reference to `le64toh'
alpha.lo: In function `alpha_setboot':
alpha.lo(.text+0x601): undefined reference to `htole64'
alpha.lo(.text+0x614): undefined reference to `htole64'
alpha.lo(.text+0x69c): undefined reference to `le64toh'
alpha.lo: In function `sun_bootstrap':
alpha.lo(.text+0x948): undefined reference to `htobe16'
alpha.lo: In function `check_sparc':
alpha.lo(.text+0xaff): undefined reference to `htobe16'
alpha.lo(.text+0xb16): undefined reference to `htobe16'
amiga.lo: In function `chksum':
amiga.lo(.text+0x248): undefined reference to `htobe32'
i386.lo: In function `i386_setboot':
i386.lo(.text+0x1f2): undefined reference to `le32toh'
i386.lo(.text+0x21f): undefined reference to `htole32'
i386.lo(.text+0x238): undefined reference to `htole32'
i386.lo(.text+0x255): undefined reference to `htole32'
i386.lo(.text+0x32d): undefined reference to `htole32'
i386.lo(.text+0x387): undefined reference to `htole32'
macppc.lo: In function `writeapplepartmap':
macppc.lo(.text+0x129): undefined reference to `htobe16'
macppc.lo(.text+0x13d): undefined reference to `htobe16'
macppc.lo(.text+0x151): undefined reference to `htobe32'
macppc.lo(.text+0x1a9): undefined reference to `htobe16'
macppc.lo(.text+0x1ba): undefined reference to `htobe32'
macppc.lo(.text+0x1cd): undefined reference to `htobe32'
macppc.lo(.text+0x1dd): undefined reference to `htobe32'
macppc.lo(.text+0x1f0): undefined reference to `htobe32'
macppc.lo(.text+0x235): undefined reference to `htobe32'
macppc.lo(.text+0x28d): undefined reference to `htobe16'
macppc.lo(.text+0x29e): undefined reference to `htobe32'
macppc.lo(.text+0x2b1): undefined reference to `htobe32'
macppc.lo(.text+0x2c4): undefined reference to `htobe32'
macppc.lo(.text+0x2da): undefined reference to `htobe32'
macppc.lo(.text+0x319): undefined reference to `htobe32'
macppc.lo(.text+0x358): more undefined references to `htobe32' follow
pmax.lo: In function `pmax_clearboot':
pmax.lo(.text+0xc6): undefined reference to `le32toh'
pmax.lo(.text+0x10b): undefined reference to `htole32'
pmax.lo: In function `pmax_setboot':
pmax.lo(.text+0x372): undefined reference to `htole32'
pmax.lo(.text+0x38f): undefined reference to `htole32'
pmax.lo(.text+0x3a5): undefined reference to `htole32'
pmax.lo(.text+0x3b9): undefined reference to `htole32'
pmax.lo(.text+0x3d0): more undefined references to `htole32' follow
pmax.lo: In function `pmax_setboot':
pmax.lo(.text+0x433): undefined reference to `le32toh'
pmax.lo(.text+0x452): undefined reference to `le32toh'
pmax.lo(.text+0x471): undefined reference to `le32toh'
pmax.lo(.text+0x490): undefined reference to `le32toh'
pmax.lo: In function `load_bootstrap':
pmax.lo(.text+0x632): undefined reference to `le32toh'
pmax.lo(.text+0x685): more undefined references to `le32toh' follow
pmax.lo: In function `load_bootstrap':
pmax.lo(.text+0x753): undefined reference to `le16toh'
pmax.lo(.text+0x774): undefined reference to `le32toh'
sparc.lo: In function `sparc_setheader':
sparc.lo(.text+0x164): undefined reference to `htobe32'
sparc.lo(.text+0x173): undefined reference to `htobe32'
vax.lo: In function `vax_setboot':
vax.lo(.text+0x3e8): undefined reference to `htole16'
vax.lo(.text+0x3ff): undefined reference to `htole16'
vax.lo(.text+0x455): undefined reference to `htole32'
vax.lo(.text+0x465): undefined reference to `htole32'
vax.lo(.text+0x47b): undefined reference to `htole32'
vax.lo(.text+0x492): undefined reference to `le32toh'
vax.lo(.text+0x4a5): undefined reference to `le32toh'
vax.lo(.text+0x4b5): undefined reference to `le32toh'
vax.lo(.text+0x4c2): undefined reference to `htole32'
vax.lo(.text+0x525): undefined reference to `le32toh'
*** Error code 1

Stop.
nbmake: stopped in /src/rvdp-router-image/NetBSD/src/tools/installboot
*** Error code 1

Stop.
nbmake: stopped in /src/rvdp-router-image/NetBSD/src/tools/installboot
*** Error code 1

Stop.
nbmake: stopped in /src/rvdp-router-image/NetBSD/src/tools

ERROR: failed to make tools
*** BUILD ABORTED ***

	rvdp