From owner-freebsd-bugs Sat Oct 19 13:10: 3 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FEE837B401 for ; Sat, 19 Oct 2002 13:10:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C22643E88 for ; Sat, 19 Oct 2002 13:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9JKA1x3025958 for ; Sat, 19 Oct 2002 13:10:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9JKA169025957; Sat, 19 Oct 2002 13:10:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A50837B401 for ; Sat, 19 Oct 2002 13:05:06 -0700 (PDT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFA6F43E6A for ; Sat, 19 Oct 2002 13:05:05 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g9JK557R098301 for ; Sat, 19 Oct 2002 13:05:05 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.6/8.12.6/Submit) id g9JK55UJ098300; Sat, 19 Oct 2002 13:05:05 -0700 (PDT) Message-Id: <200210192005.g9JK55UJ098300@www.freebsd.org> Date: Sat, 19 Oct 2002 13:05:05 -0700 (PDT) From: Alex Zepeda To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/44277: devinfo is not C++ safe 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: 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 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