From nobody@FreeBSD.org  Sat Oct 19 13:05:06 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1A50837B401
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd@blarf.homeip.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: devinfo is not C++ safe
X-Send-Pr-Version: www-1.0

>Number:         44277
>Category:       bin
>Synopsis:       devinfo is not C++ safe
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    rodrigc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 19 13:10:00 PDT 2002
>Closed-Date:    Fri Sep 02 03:19:06 GMT 2005
>Last-Modified:  Fri Sep 02 03:19:06 GMT 2005
>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:
Responsible-Changed-From-To: freebsd-bugs->rodrigc 
Responsible-Changed-By: rodrigc 
Responsible-Changed-When: Wed Aug 31 02:04:27 GMT 2005 
Responsible-Changed-Why:  
Mine 

http://www.freebsd.org/cgi/query-pr.cgi?pr=44277 
State-Changed-From-To: open->closed 
State-Changed-By: rodrigc 
State-Changed-When: Fri Sep 2 03:18:35 GMT 2005 
State-Changed-Why:  
Committed to HEAD and RELENG_6. 
Thanks! 

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