From bz@zabbadoz.net  Sun Sep 14 04:27:58 2003
Return-Path: <bz@zabbadoz.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2C3B316A4C0
	for <freebsd-gnats-submit@freebsd.org>; Sun, 14 Sep 2003 04:27:58 -0700 (PDT)
Received: from transport.cksoft.de (transport.cksoft.de [62.111.66.27])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3FD2843FF9
	for <freebsd-gnats-submit@freebsd.org>; Sun, 14 Sep 2003 04:27:56 -0700 (PDT)
	(envelope-from bz@zabbadoz.net)
Received: from localhost (localhost [127.0.0.1])
	by transport.cksoft.de (Postfix) with ESMTP id 6C9241FF906
	for <freebsd-gnats-submit@freebsd.org>; Sun, 14 Sep 2003 13:27:54 +0200 (CEST)
Received: by transport.cksoft.de (Postfix, from userid 66)
	id 3093B1FF8FF; Sun, 14 Sep 2003 13:27:53 +0200 (CEST)
Received: by mail.int.zabbadoz.net (Postfix, from userid 1060)
	id 667A7155E8; Sun, 14 Sep 2003 11:27:37 +0000 (UTC)
Message-Id: <20030914112737.667A7155E8@mail.int.zabbadoz.net>
Date: Sun, 14 Sep 2003 11:27:37 +0000 (UTC)
From: "Bjoern A. Zeeb" <bzeeb+freebsd@zabbadoz.net>
Reply-To: "Bjoern A. Zeeb" <bzeeb+freebsd@zabbadoz.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: bzeeb+freebsd@zabbadoz.net
Subject: sys/endian.h broken with c++
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         56865
>Category:       kern
>Synopsis:       sys/endian.h broken with c++
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 14 04:30:15 PDT 2003
>Closed-Date:    Thu Oct 16 09:21:58 PDT 2003
>Last-Modified:  Thu Oct 16 09:21:58 PDT 2003
>Originator:     Bjoern A. Zeeb
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
Zabbadoz.NeT
>Environment:
System: FreeBSD e0-0.noc.int.zabbadoz.net 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT 2003 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386

>Description:
from what I can see sys/endian.h is still broken -
at least on i386 - with c++ in HEAD

This is somewhat wellknown and nobody fixes this :(((

>How-To-Repeat:
/* compile with: c++ endian.c */

#include <sys/endian.h>

int main(int argc, char *argv[])
{
        return 0;
}

>Fix:

please see 
http://lists.freebsd.org/pipermail/freebsd-hackers/2003-June/001477.html


>Release-Note:
>Audit-Trail:

From: "Bjoern A. Zeeb" <bzeeb+freebsd@zabbadoz.net>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: "Bjoern A. Zeeb" <bzeeb+freebsd@zabbadoz.net>
Subject: Re: kern/56865: sys/endian.h broken with c++
Date: Thu, 16 Oct 2003 15:58:23 +0000 (UTC)

 On Sun, 14 Sep 2003 FreeBSD-gnats-submit@FreeBSD.org wrote:
 
 > It has the internal identification `kern/56865'.
 >
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=56865
 >
 > >Category:       kern
 > >Responsible:    freebsd-bugs
 > >Synopsis:       sys/endian.h broken with c++
 > >Arrival-Date:   Sun Sep 14 04:30:15 PDT 2003
 
 please close; should be fixed with latest commit from obrien:
 
 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/endian.h.diff?r1=1.5&r2=1.6
 
 -- 
 Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT
 56 69 73 69 74				http://www.zabbadoz.net/
State-Changed-From-To: open->closed 
State-Changed-By: obrien 
State-Changed-When: Thu Oct 16 09:21:47 PDT 2003 
State-Changed-Why:  
fix committed, thanks for the report. 

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