Subject: libcsu
To: None <port-arm32@NetBSD.ORG>
From: Daniel Brown <crp02@holyrood.ed.ac.uk>
List: port-arm32
Date: 04/30/1997 15:14:17
Dear folks,

Been remaking lib to (eventually) get all the MD5 stuff in the right
place. Two things I've noticed so far - the current bsd.own.mk doesn't set
NOPIC for arm32; and libcsu seems to be in terrible trouble...

cc -O -DLIBC_SCCS -I/home/netbsd/src/lib/csu/arm32/..  -Werror  -c -DCRT0
-DDYNAMIC crt0.c
crt0.c:41: conflicting types for `ntohl'
/usr/include/machine/endian.h:67: previous declaration of `ntohl'
cc1: warnings being treated as errors
/home/netbsd/src/lib/csu/arm32/../common.c: In function `dlopen':
In file included from crt0.c:119:
/home/netbsd/src/lib/csu/arm32/../common.c:168: warning: passing arg 1
discards `const' from pointer target type
/home/netbsd/src/lib/csu/arm32/../common.c: In function `dlsym':
/home/netbsd/src/lib/csu/arm32/../common.c:189: warning: passing arg 2
discards `const' from pointer target type
*** Error code 1

endiah.h prototypes ntohl as in_addr_t, boiling down to u_int32_t, whereas
libcsu, and the installed man page, claim long...

Are the above things fixed in the (impending? ;-) commit to come, or in
need of send-pr'ing?

Dan.

P.S. - Does csu still have a reason for existing? It doesn't seem to
provide any documented functions, just assembler versions of thoroughly
random stuff?