From owner-freebsd-current Sun Oct 6 17: 9: 0 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6914037B401 for ; Sun, 6 Oct 2002 17:08:59 -0700 (PDT) Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B44443E7B for ; Sun, 6 Oct 2002 17:08:58 -0700 (PDT) (envelope-from wa1ter@hotmail.com) Received: from hotmail.com wa1ter@smtp-send.myrealbox.com [67.119.36.135] by smtp-send.myrealbox.com with NetMail SMTP Agent $Revision: 3.12 $ on Novell NetWare via secured & encrypted transport (TLS); Sun, 06 Oct 2002 18:08:58 -0600 Message-ID: <3DA0D024.4030505@hotmail.com> Date: Sun, 06 Oct 2002 17:07:00 -0700 From: walt Organization: none User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021001 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: stdlib.h:57: redeclaration of C++ built-in type `wchar_t' References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hanspeter Roth wrote: > Hello, > > when running buildworld I get: > > ===> gnu/usr.bin/gperf/doc > c++ -O -pipe -D__FBSDID=__RCSID -I/usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/lib -I/usr/src/gnu/usr.bin/gperf -c /usr/src/contrib/gperf/src/bool-array.cc > c++ -O -pipe -D__FBSDID=__RCSID -I/usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/lib -I/usr/src/gnu/usr.bin/gperf -c /usr/src/contrib/gperf/src/gen-perf.cc > In file included from /usr/src/contrib/gperf/src/gen-perf.cc:23: > /usr/include/stdlib.h:57: redeclaration of C++ built-in type `wchar_t' > *** Error code 1 > > > #ifdef _BSD_SIZE_T_ > typedef _BSD_SIZE_T_ size_t; > #undef _BSD_SIZE_T_ > > How can I resolve this redeclaration? I'm no expert, but I'd guess you have some stale header files in /usr/include. You could try this: cd /usr mv include include.old cd /usr/src make includes make buildworld There may be things in the include.old directory you would want to move back to /usr/include [1], so I would look through it before deleting the whole thing. If you want to be more conservative you could just start by moving /usr/include/g++ out of the way instead of the whole /usr/include, but that may or may not be sufficient. [1] I'm not sure this applies to FreeBSD, since the ports are supposed to put their header files in /usr/local/include, but I don't want to give you risky advice when I'm not certain. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message