From owner-freebsd-bugs Fri Jun 29 15:50: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 82F6C37B405 for ; Fri, 29 Jun 2001 15:50:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5TMo3g66528; Fri, 29 Jun 2001 15:50:03 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5EB2737B403 for ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/28529: runetype.h doesn't have C++ 'extern "C"' wrapper Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 29 15:50:03 PDT 2001 >Closed-Date: >Last-Modified: >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 ' to any simple C++ program and try to link it >Fix: Add standard C++ 'extern "C" { ... }' wrapper to runetype.h >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message