Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 3566

Summary: Htdig doesn't find libstdc++ with gcc 3.1
Product: Gentoo Linux Reporter: Peter Bienstman (RETIRED) <pbienst>
Component: [OLD] GCC PortingAssignee: Matthew Kennedy (RETIRED) <mkennedy>
Status: RESOLVED FIXED    
Severity: normal CC: pbienst
Priority: High    
Version: 1.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Peter Bienstman (RETIRED) gentoo-dev 2002-06-09 21:09:11 UTC
... 
checking for malloc.h... (cached) yes 
checking for ostream.h... no 
checking for iostream.h... no 
checking for fstream.h... no 
configure: error: To compile ht://Dig, you will need a C++ library. Try 
installing libstdc++. 
 
!!! ERROR: The ebuild did not complete successfully. 
!!! Function src_compile, Line 11, Exitcode 1 
!!! (no error message) 
 
!!! emerge aborting on  /usr/portage/net-www/htdig/htdig-3.1.6-r3.ebuild .
Comment 1 Steve Flack 2002-06-11 14:03:43 UTC
These errors on configure seem to disappear if the 'configure' script is 
searched for all instances of ostream.h fstream.h and iostream.h and they are 
replaced by ostream fstream and iostream (The C++ standard). 
 
This doesn't stop the make step stopping with a syntax error about ostream 
being out of scope. I've tried correcting the includes on this to no avail.  
Comment 2 Peter Bienstman (RETIRED) gentoo-dev 2002-06-11 14:09:44 UTC
This probably means that 'ostream' should be replaced by 'std::ostream'.
Alternatively, 'using namespace std;' can be placed at the top of the source files.
Comment 3 Peter Bienstman (RETIRED) gentoo-dev 2002-06-14 08:30:29 UTC
Works with latest ebuild. Bug can be closed.