Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!clyde!cbatt!ihnp4!chinet!nucsrl!gore From: gore@nucsrl.UUCP (Jacob Gore) Newsgroups: comp.lang.c++ Subject: Problem making cfront 1.1 on 4.3BSD Message-ID: <3960003@nucsrl.UUCP> Date: Wed, 19-Nov-86 10:59:11 EST Article-I.D.: nucsrl.3960003 Posted: Wed Nov 19 10:59:11 1986 Date-Received: Fri, 21-Nov-86 00:56:53 EST Organization: Northwestern Univ., Evanston IL Lines: 34 Well, I've applied James Lee Johnson's patch to CC (1.1, for 4.3BSD) -- thanks! -- and that got me through 'make munch'. Now I have a problem with making cfront, and also a question about some code in src/main.c. Here's the compilation error I get: =================================== cd src; /bin/make CC=CC CCFLAGS="-O -DBSD" CC -c main.c CC main.c: "/usr/include/CC/signal.h", line 10: error: signal() type mismatch: int (*() )() and int (*(int , PF ) )() 1 error =================================== Since /usr/include/CC/signal.h includes /usr/include/sys/signal.h, the conflict seems to arise in /usr/include/CC/signal.h itself (as opposed to src/main.c). Line 10 there redeclares the function 'signal'. Any suggestions? The question I have is about a related portion of src/main.c: =================================== typedef void (*ST)(...); // trick to circumvent problems with old ST sick = ST(&signal); // (or C) versions sick(SIGILL,core_dump); ... =================================== Now, if I understand this correctly, 'sick' is a pointer to the 'signal' function. In that case, shouldn't the call be "(*sick)(SIGILL,core_dump);"? Jacob Gore Northwestern University, Computer Science Research Lab {ihnp4,chinet}!nucsrl!gore