From owner-freebsd-ports@FreeBSD.ORG Thu Sep 11 10:13:13 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 243B016A4BF for ; Thu, 11 Sep 2003 10:13:13 -0700 (PDT) Received: from chaos.obstruction.com (CPE00e018983b2f-CM013349903124.cpe.net.cable.rogers.com [24.156.200.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDBA043FD7 for ; Thu, 11 Sep 2003 10:13:11 -0700 (PDT) (envelope-from guy-dated-1065892383.cd51ba@obstruction.com) Received: from chaos.obstruction.com (localhost [127.0.0.1]) by chaos.obstruction.com (Postfix) with ESMTP id 0BAAA5C20 for ; Thu, 11 Sep 2003 13:13:04 -0400 (EDT) Received: by chaos.obstruction.com (tmda-sendmail, from uid 1000); Thu, 11 Sep 2003 13:13:03 -0400 (EDT) Date: Thu, 11 Sep 2003 13:13:03 -0400 To: ports@FreeBSD.org Message-ID: <20030911171303.GA73207@chaos.obstruction.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i From: Guy Middleton X-Delivery-Agent: TMDA/0.80 (Determine) Subject: stlport warning: "__WORD_BIT" redefined X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Guy Middleton List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 17:13:13 -0000 I have stlport-gcc-4.5.3_1 installed on a 5.1-RELEASE system, with gcc 3.2.2. Compiling this program generates the following warning: #include int main() { std::vector iv; return 0; } $ c++ -O -pipe -march=pentium3 -Wall -I/usr/local/include/stlport -D_STLP_DEBUG -L/usr/local/lib -lstlport_gcc_stldebug vector.cc -o vector In file included from /usr/local/include/stlport/stl/_vector.h:575, from /usr/local/include/stlport/vector:36, from vector.cc:1: /usr/local/include/stlport/stl/_bvector.h:37:1: warning: "__WORD_BIT" redefined In file included from /usr/include/sys/limits.h:40, from /usr/include/limits.h:128, from /usr/include/g++/climits:49, from /usr/local/include/stlport/climits:27, from /usr/local/include/stlport/stl/_algobase.h:43, from /usr/local/include/stlport/vector:32, from vector.cc:1: /usr/include/machine/_limits.h:99:1: warning: this is the location of the previous definition The warning is correct, __WORD_BIT is defined in the system _limits.h and is redefined by STL. It seems the addition of __WORD_BIT to _limits.h is new; I could not find it in limits.h on a 4.6-RELEASE system.