Subject: -current compilation error on macppc
To: None <>
From: Martijn van Buul <>
List: current-users
Date: 01/30/2002 15:04:44
While trying to compile NetBSD-current on my Mac (NetBSD-1.5ZA, 22 Dec. 
snapshot), I got the following error:

(cvs update from earlier today; but the problem existed earlier this week

cc -O -I/usr/src/tools/compat/obj -I/usr/src/tools/compat/obj/include  -I/usr/src/tools/gencat/../compat -DHAVE_CONFIG_H -Dlint  -D_FILE_OFFSET_BITS=64    -o gencat gencat.lo -L/usr/src/tools/compat/obj -lnbcompat -lutil -lz
gencat.lo: In function `MCWriteCat':
gencat.lo(.text+0xc94): undefined reference to `htonl'
gencat.lo(.text+0xca0): undefined reference to `htonl'
gencat.lo(.text+0xcac): undefined reference to `htonl'
gencat.lo(.text+0xcb8): undefined reference to `htonl'
gencat.lo(.text+0xcd0): undefined reference to `htonl'
gencat.lo(.text+0xd20): more undefined references to `htonl' follow

Suggestions how to fix this are welcome. I'm a bit lost in all Makefile
inheritances. Building a new toolchain (using -t) fails on 
exactly the same file.

Kind regards,

    Martijn van Buul - -
	 Geek code: G--  - Visit OuterSpace: 3333
   Kees J. Bot: The sum of CPU power and user brain power is a constant.