From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29554 invoked by alias); 7 Oct 2002 14:25:25 -0000 Mailing-List: contact sid-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sources.redhat.com Received: (qmail 29547 invoked from network); 7 Oct 2002 14:25:24 -0000 Received: from unknown (HELO iol.unh.edu) (132.177.123.82) by sources.redhat.com with SMTP; 7 Oct 2002 14:25:24 -0000 Received: from iol.unh.edu (astro.iol.unh.edu [132.177.124.196]) by iol.unh.edu (8.12.6/8.12.6) with ESMTP id g97EPN4K029258; Mon, 7 Oct 2002 10:25:23 -0400 Message-ID: <3DA19953.64A22D82@iol.unh.edu> Date: Mon, 07 Oct 2002 07:25:00 -0000 From: bemis Organization: University of New Hampshire X-Accept-Language: en MIME-Version: 1.0 To: sid@sources.redhat.com, clp Subject: c++ error with sid bootstrap-gcc_3.2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-q4/txt/msg00002.txt.bz2 Hello, I hope someone reads this list. This error occured on an 686 platform while compiling the toolchain with bootstrap-gcc_3.2 baseline Is this problem solved by adding hash to the namespace or a build error on our part? /bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I/home/buildsys/sourc e/toolchain/sid/component/bochs/vga -I.. -I../../../include -I/home/buildsys/sou rce/toolchain/sid/component/bochs/vga -I/home/buildsys/source/toolchain/sid/comp onent/bochs/vga/.. -I/home/buildsys/source/toolchain/sid/component/bochs/vga/../ ../../include -I/home/buildsys/source/toolchain/sid/component/bochs/vga/../cpu - I/home/buildsys/source/toolchain/sid/component/bochs/vga/../../memory -g -O2 -c /home/buildsys/source/toolchain/sid/component/bochs/vga/sid-vga-wrapper.cc c++ -DHAVE_CONFIG_H -I. -I/home/buildsys/source/toolchain/sid/component/bochs/vg a -I.. -I../../../include -I/home/buildsys/source/toolchain/sid/component/bochs/ vga -I/home/buildsys/source/toolchain/sid/component/bochs/vga/.. -I/home/buildsy s/source/toolchain/sid/component/bochs/vga/../../../include -I/home/buildsys/sou rce/toolchain/sid/component/bochs/vga/../cpu -I/home/buildsys/source/toolchain/s id/component/bochs/vga/../../memory -g -O2 -Wp,-MD,.deps/sid-vga-wrapper.pp -c / home/buildsys/source/toolchain/sid/component/bochs/vga/sid-vga-wrapper.cc -o sid -vga-wrapper.o In file included from /home/buildsys/source/toolchain/sid/component/bochs/vga/si d-vga-wrapper.h:15, from /home/buildsys/source/toolchain/sid/component/bochs/vga/si d-vga-wrapper.cc:7: /home/buildsys/source/toolchain/sid/include/sidattrutil.h: In member function `size_t sidutil::hash_string::operator()(const std::string&) const': /home/buildsys/source/toolchain/sid/include/sidattrutil.h:696: `hash' undeclared in namespace `std' /home/buildsys/source/toolchain/sid/include/sidattrutil.h:696: parse error before `;' token snips from sid/include/sidattrutil.h 689 #ifdef HAVE_HASHING 690 struct hash_string 691 { 692 size_t 693 operator () (const std::string& s) const 694 { 695 // XXX: improve? 696 return std::hash () (s.c_str ()); 697 } 698 }; 699 #endif the name space looks like this namespace sidutil { // Make a string from an object by the default output-streaming operator. template static std::string make_attribute (const Type& value) { #if HAVE_SSTREAM std::ostringstream stream; stream << value; return stream.str (); #elif HAVE_STRSTREAM_H ostrstream stream; stream << value; std::string result (stream.str (), stream.pcount ()); stream.freeze (0); return result; #else #error "need or !" #endif }