Subject: tools/compat configure does not find htole*
To: None <>
From: Martin Husemann <>
List: tech-toolchain
Date: 01/02/2006 15:31:16
I'm not sure this causes any problems, but just in case:
While looking at some strange C compiler warnings about duplicate defintions
I came along  this output from the src/tools/compat configure:

configure:7660: checking for htole16
configure:7717: cc -o conftest -O   conftest.c -lz  >&5
/var/tmp//ccYmqDa7.o(.text+0x8): In function `main':
: undefined reference to `htole16'
/var/tmp//ccYmqDa7.o(.text+0xc): In function `main':
: undefined reference to `htole16'
/var/tmp//ccYmqDa7.o(.data+0x0): undefined reference to `htole16'

and it does not define HAVE_HTOLE16 then.

This is on sparc64, -current as of a few hours ago, and of course there is
a htole16() macro in <sys/endian.h> (or <machine/endian.h>).

Should this be fixed?