Date: Sat, 19 Oct 2002 13:05:05 -0700 (PDT) From: Alex Zepeda <freebsd@blarf.homeip.net> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/44277: devinfo is not C++ safe Message-ID: <200210192005.g9JK55UJ098300@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 44277 >Category: bin >Synopsis: devinfo is not C++ safe >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 19 13:10:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Alex Zepeda >Release: -current >Organization: >Environment: FreeBSD blarf.homeip.net 5.0-CURRENT FreeBSD 5.0-CURRENT #6: Fri Oct 18 18:10:43 PDT 2002 alex@blarf.homeip.net:/usr/src/sys/i386/compile/ZIPPY_WITNESS i386 >Description: The devinfo(3) interface is defined in a header which is not C++ safe, and will not work properly in a C++ program. >How-To-Repeat: Try to compile the following. It won't link, because it assumes the devinfo symbols should be mangled C++ symbols. test.cpp: #include <devinfo.h> int main() { devinfo_init(); return 0; } >Fix: devinfo.h needs __BEGIN_DECLS and >__END_DECLS. >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?200210192005.g9JK55UJ098300>