Subject: Cross compilation failure from linux : missing le32dec
To: None <current-users@netbsd.org>
From: Emmanuel Kasper <kdev@no-log.org>
List: current-users
Date: 08/19/2007 14:25:05
Hello
I am trying to compile netbsd-4 checked out yesterday from cvs.
The build.sh script fails to compile the toolchain with this message: 


/netbsd/obj/tools/compat/libnbcompat.a(rmd160.lo): In function `RMD160Transform':
rmd160.c:(.text+0xbc): undefined reference to `le32dec'
collect2: ld returned 1 exit status

*** Failed target:  xinstall
*** Failed command: cc -O -I/netbsd/obj/tools/compat -I/netbsd/obj/tools/compat/include -I/fatc/dev/netbsd/src/tools/binstall/../compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/fatc/dev/netbsd/src/tools/binstall/../compat/sys -I/fatc/dev/netbsd/src/bin/ls -I/fatc/dev/netbsd/src/usr.sbin/mtree -o xinstall xinstall.lo getid.lo -L/netbsd/obj/tools/compat -lnbcompat -lz
*** Error code 1

Stop.
nbmake: stopped in /fatc/dev/netbsd/src/tools/binstall

*** Failed target:  dependall
*** Failed command: cd /fatc/dev/netbsd/src/tools/binstall; /netbsd/obj/tooldir.Linux-2.6.18-5-powerpc-unknown/bin/nbmake realall


Accoring to this thread 
http://archive.netbsd.se/?ml=netbsd-current-users&a=2007-01&t=3048715
the le32dec function is defined in NetBSD but not on Linux.
Any idea how to work around this ? 

Emmanuel