Date: Fri, 29 Jun 2001 15:45:06 -0700 (PDT) From: Pat Lashley <patl@phoenix.volant.org> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/28529: runetype.h doesn't have C++ 'extern "C"' wrapper Message-ID: <200106292245.f5TMj6s65644@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <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:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106292245.f5TMj6s65644>
