Subject: -current compilation error on macppc
To: None <current-users@netbsd.org>
From: Martijn van Buul <pino@dohd.org>
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
too)
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 buil.sh -t) fails on
exactly the same file.
Kind regards,
Martijn
--
Martijn van Buul - Pino@dohd.org - http://www.stack.nl/~martijnb/
Geek code: G-- - Visit OuterSpace: mud.stack.nl 3333
Kees J. Bot: The sum of CPU power and user brain power is a constant.