From owner-freebsd-alpha Wed Jul 17 16:14:39 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC7A637B400 for ; Wed, 17 Jul 2002 16:14:36 -0700 (PDT) Received: from vvl15.fh-konstanz.de (vvl15.fh-konstanz.de [141.37.112.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A48FA43E65 for ; Wed, 17 Jul 2002 16:14:35 -0700 (PDT) (envelope-from vahe@fh-konstanz.de) Received: (from nobody@localhost) by vvl15.fh-konstanz.de (8.11.4/8.11.4) id g6HNQRY44467 for freebsd-alpha@FreeBSD.ORG; Thu, 18 Jul 2002 01:26:27 +0200 (MEST) (envelope-from vahe@fh-konstanz.de) X-Authentication-Warning: vvl15.fh-konstanz.de: nobody set sender to vahe@fh-konstanz.de using -f To: freebsd-alpha@FreeBSD.ORG Subject: How did I break CCC? Message-ID: <1026948385.3d35fd2179b20@vvl15.fh-konstanz.de> Date: Thu, 18 Jul 2002 01:26:25 +0200 (MEST) From: Vahe Khachikyan MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.5 X-Originating-IP: 217.235.130.239 Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi list, Can please anybody spread a little bit light on how did I managed to brake the ccc ? I do nothing specific about ccc I've just updated the source tree. But it MUST have nothing to do with CCC :-(( Sorry for pasting output here but I have no any idea how i broke the GOT DAMN ccc. ------------------ CONSOLE ---------------------------- alpha# /usr/bin/ccc -E tests.c > out.i cc: Warning: //usr/lib/compaq/ccc-6.4.9.005-1/alpha-freebsd/include/stdio.h, line 23: The redefinition of the macro "__attribute__" conflicts with a current definition because the spelling of one or more parameters is different. The redefinition is now in effect. (macroredef) #define __attribute__(x) ----------------------^ alpha# cat tests.c #include #include alpha# /usr/bin/ccc -E test1.c > out.i alpha# cat test1.c #include #include ---------------------- END OF CONSOLE------------------------------- If I do more than just preprocessing then i get a couple of errors all having the warning above as their root. As you can see where stdio.h is included first ccc gives no warnings at all, however there will be a couple of errors if I'll do compilation instead of preprocessing. It will look then like ----------------CONSOLE------------------------- alpha# /usr/bin/ccc -c test1.c > out.i cc: Error: /usr/include/libio.h, line 363: Ill-formed parameter type list. (parmtyplist) extern int _IO_vfscanf __P ((_IO_FILE * __restrict, const char * __restrict, -----------------------^ ---------------END OF CONSOLE------------------- The outut of ccc -v gives me the following details ----------------CONSOLE------------------------- comp.config contains: | -SysIncDir //usr/lib/compaq/ccc-6.4.9.005-1/alpha-freebsd/include -SysIncDir /usr/local/include -L//usr/lib/compaq/ccc-6.4.9.005-1/alpha-freebsd/lib -L/usr/local/lib ---------------END OF CONSOLE------------------- Any idea is welcome! -- Vahe --- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message