Subject: crt0.c and include/dlfcn.h conflict
To: None <port-sparc@NetBSD.ORG>
From: Brain fried. Explanation is in file "core". <greywolf@starwolf.starwolf.com>
List: port-sparc
Date: 06/04/1997 20:26:19
I keep trying to do a make build but I'm running into some problems.
I've been doing sup -ovsz on a regular basis; the last date
on crt0.c shows 1 May 1997, and dlfcn.h shows 20 May 1997.

Here's what happens when I get to building in /usr/src/lib:

===> lib
===> lib/csu
===> lib/csu/sparc
cc -O -DLIBC_SCCS -I/usr/src/lib/csu/sparc/..  -Werror  -c -DCRT0 -DDYNAMIC /usr/src/lib/csu/sparc/crt0.c -o crt0.o
cc1: warnings being treated as errors
/usr/src/lib/csu/sparc/../common.c: In function `dlopen':
In file included from /usr/src/lib/csu/sparc/crt0.c:224:
/usr/src/lib/csu/sparc/../common.c:168: warning: passing arg 1 discards `const' from pointer target type
/usr/src/lib/csu/sparc/../common.c: In function `dlsym':
/usr/src/lib/csu/sparc/../common.c:189: warning: passing arg 2 discards `const' from pointer target type
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

Any help would be greatly appreciated; I went through once and hand-tuned
the code such that it was no longer "const char *", but "char *", and
that got it to shut up, but I somehow think this is Not the Right Solution.



				--*greywolf;
--
Rule #1 of Role Playing Gaming:
	Never give the Gamemaster ideas.