From nobody@FreeBSD.org  Fri Jun 29 15:45:06 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 5EB2737B403
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 29 Jun 2001 15:45:06 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.3/8.11.3) id f5TMj6s65644;
	Fri, 29 Jun 2001 15:45:06 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200106292245.f5TMj6s65644@freefall.freebsd.org>
Date: Fri, 29 Jun 2001 15:45:06 -0700 (PDT)
From: Pat Lashley <patl@phoenix.volant.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: runetype.h doesn't have C++ 'extern "C"' wrapper
X-Send-Pr-Version: www-1.0

>Number:         28529
>Category:       misc
>Synopsis:       runetype.h doesn't have C++ 'extern "C"' wrapper
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 29 15:50:03 PDT 2001
>Closed-Date:    Thu Feb 06 16:24:04 PST 2003
>Last-Modified:  Thu Feb 06 16:24:04 PST 2003
>Originator:     Pat Lashley
>Release:        4.3-STABLE 2001-06-29
>Organization:
>Environment:
>Description:
/usr/include/runetype.h contains declarations for two global variables.
But it doesn't have the 'extern "C" { ... }' wrapper for C++; so if a
C++ file includes (something which includes...) runetype.h, those two
variable names will be mangled and produce 'Undefined symbol' errors
at link time.
>How-To-Repeat:
Add '#include <runetype.h>' to any simple C++ program and try to link it
>Fix:
Add standard C++ 'extern "C" { ... }' wrapper to runetype.h
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mike 
State-Changed-When: Thu Feb 6 16:21:47 PST 2003 
State-Changed-Why:  
rune(3) is in deprecation mode in 5.x.  There's not much point in 
supporting C++ for deprecated interfaces. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=28529 
>Unformatted:
