Click 1.1 glitch

Justin C. Walker justin at apple.com
Wed Dec 27 22:42:23 EST 2000


Hi,

I'm trying to build 'click' on Mac OS X.  Public Beta's compiler has a glitch that causes an internal error of some sort (/var/tmp/cc003584.s:unknown:Can't emit reloc {- symbol "L54$pb"} @ file address 8812), but more recent versions fail with what I guess is a difference in "rigorosity":

c++ -Wp,-w -W -Wall -DHAVE_CONFIG_H -DCLICK_BINDIR='"/usr/local/bin"' -DCLICK_LIBDIR='"/usr/local/lib"' -I.. -I../include -I. -I.. -I../include  -MD -DCLICK_USERLEVEL -fno-exceptions -fno-rtti -fvtable-thunks -g -O2 -c ../elements/userlevel/controlsocket.cc
../elements/userlevel/controlsocket.cc: In method `void ControlSocket::selected(int)':
../elements/userlevel/controlsocket.cc:366: passing `unsigned int *' as argument 3 of `accept(int, sockaddr *, int *)' changes signedness
make[1]: *** [controlsocket.o] Error 1
make: *** [userlevel] Error 2

The compiler version is:

Reading specs from /usr/libexec/gcc/darwin/ppc/2.95.2/specs
Apple Computer, Inc. version cc-920.1, based on gcc version 2.95.2 19991024 (release)

Changing "&sa_len" to "(int *)&sa_len" lets things proceed.

Is "-fpermissive" an appropriate fix?

Thanks.

Regards,

Justin

Justin C. Walker, Curmudgeon-At-Large   *
Institute for General Semantics         |
Manager, CoreOS Networking              |   When LuteFiske is outlawed
Apple Computer, Inc.                    |   Only outlaws will have
2 Infinite Loop                         |       LuteFiske
Cupertino, CA 95014                     |
*---------------------------------------*-------------------------------*



More information about the click mailing list