Bug 55278

Summary: Externs on implicit declarations
Product: Base System Reporter: Roderick van Domburg <roderick>
Component: gnuAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.1-CURRENT   
Hardware: Any   
OS: Any   

Description Roderick van Domburg 2003-08-05 14:30:07 UTC
	
I am getting a lot of errors like "error: ISO C++ forbids the use of `
extern' on explicit instantiations" during C++ compiles. (Specifically,
I have stumbled upon them trying to compile KDevelop and Kopete from
recent ports.)

Initially it looked like a bug in libstdc++ so I reported it to the GCC
project (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11792) but they
have determined it to be an issue with the FreeBSD compiler.

The output listed there is that of the Kopete compile. KDevelop
complains more than would suitably fit here. Concerned libstdc++ source
files are locale_facets.tcc, ostream.tcc and istream.tcc.

Fix: 

Unknown.
How-To-Repeat: 	
Try to compile KDevelop or Kopete (probably many others) from recent
ports on FreeBSD 5.1-CURRENT.
Comment 1 David Schultz freebsd_committer freebsd_triage 2003-08-09 19:33:23 UTC
On Tue, Aug 05, 2003, Roderick van Domburg wrote:
> I am getting a lot of errors like "error: ISO C++ forbids the use of `
> extern' on explicit instantiations" during C++ compiles. (Specifically,
> I have stumbled upon them trying to compile KDevelop and Kopete from
> recent ports.)
> 
> Initially it looked like a bug in libstdc++ so I reported it to the GCC
> project (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11792) but they
> have determined it to be an issue with the FreeBSD compiler.

FreeBSD doesn't hide warnings in system headers, whereas Linux and
other systems do.  If GNU does not intend to fix the warnings in
libstdc++, then we may need to make an exception for it.  We keep
the rest of our headers warnings-clean.
Comment 2 Craig Rodrigues freebsd_committer freebsd_triage 2005-10-05 04:12:39 UTC
State Changed
From-To: open->feedback

Is this still a problem with gcc 3.4.4?
Comment 3 Remko Lodder freebsd_committer freebsd_triage 2007-02-28 12:08:25 UTC
State Changed
From-To: feedback->closed

feedback timeout