From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31333 invoked by alias); 6 Nov 2010 23:53:56 -0000 Received: (qmail 31324 invoked by uid 22791); 6 Nov 2010 23:53:55 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 06 Nov 2010 23:53:49 +0000 From: "jay.krell at cornell dot edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/46333] problems with configure -enable-build-with-cxx -disable-bootstrap X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jay.krell at cornell dot edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sat, 06 Nov 2010 23:53:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-11/txt/msg00764.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46333 --- Comment #4 from Jay 2010-11-06 23:53:47 UTC --- "../../gcc-4.5/gcc/opts.c", line 1233: Error: The function "__flsbuf" must have a prototype. "../../gcc-4.5/gcc/opts.c", line 1350: Error: The function "__flsbuf" must have a prototype. #if (__cplusplus >= 199711L && (defined(_LP64) || defined(_REENTRANT))) || \ __cplusplus < 199711L ... #ifndef _LP64 extern int __filbuf(FILE *); extern int __flsbuf(int, FILE *); #endif /* _LP64 */ #else /* !defined __STDC__ */ either need to #if __GNUC__ around #define foo foo_unlocked or need to define __REENTRANT. This is all on Solaris 2.9, which may be out of support soon. I can move to Solaris 2.10. I need gcc 4.5.1. I can look into trunk *later*. Some of my own patches run afoul of SunStudio 12 C++, that maybe unique to me, e.g.: bool unused_gcc_feature (...) { gcc_unreachable (); } => unused_gcc_feature must return a value so I put in return 0; unpatched gcc doesn't necessarily have this. I'm not 100% which older g++ is on the other machine, just that it had problem with attribute(unused). However, I bet it is easier to use than non-g++! :) Also my ENUM_BITFIELD has an obvious typo in the last case, it need to reference NAME. Later, - Jay