From owner-freebsd-bugs@FreeBSD.ORG Wed Aug 5 04:10:03 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A96361065678 for ; Wed, 5 Aug 2009 04:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 841008FC24 for ; Wed, 5 Aug 2009 04:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n754A3w2026703 for ; Wed, 5 Aug 2009 04:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n754A3Cg026702; Wed, 5 Aug 2009 04:10:03 GMT (envelope-from gnats) Resent-Date: Wed, 5 Aug 2009 04:10:03 GMT Resent-Message-Id: <200908050410.n754A3Cg026702@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Stas Timokhin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A90F1106566B for ; Wed, 5 Aug 2009 04:03:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 619098FC14 for ; Wed, 5 Aug 2009 04:03:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7543SfA022462 for ; Wed, 5 Aug 2009 04:03:28 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n7543SfM022461; Wed, 5 Aug 2009 04:03:28 GMT (envelope-from nobody) Message-Id: <200908050403.n7543SfM022461@www.freebsd.org> Date: Wed, 5 Aug 2009 04:03:28 GMT From: Stas Timokhin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/137443: Including /usr/include/rpc/xdr.h fails with C++ X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2009 04:10:04 -0000 >Number: 137443 >Category: misc >Synopsis: Including /usr/include/rpc/xdr.h fails with C++ >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Aug 05 04:10:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Stas Timokhin >Release: 8.0-CURRENT >Organization: None >Environment: FreeBSD home.stasyan.com 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Fri Jun 12 14:30:16 NOVST 2009 root@home.stasyan.com:/usr/src/sys/i386/compile/EASTERN200906 i386 >Description: Building of C++ application (Salome) fail with current version rpc/xdr.h header: ==================== In file included from ../.././../src/Communication/Receivers.cxx:239, from ../.././../src/Communication/Receivers.hxx:151, from ../.././../src/Communication/ReceiverFactory.cxx:27: /usr/include/rpc/xdr.h:125: error: conflicting declaration 'typedef struct __rpc_xdr XDR' ./.././../src/Communication/Receivers.hxx:127: error: 'struct XDR' has a previous declaration as 'struct XDR' /usr/include/rpc/xdr.h: In function 'int xdr_getint32(XDR*, int32_t*)': /usr/include/rpc/xdr.h:168: error: invalid use of incomplete type 'struct XDR' ./.././../src/Communication/Receivers.hxx:127: error: forward declaration of 'struct XDR' /usr/include/rpc/xdr.h: In function 'int xdr_putint32(XDR*, int32_t*)': /usr/include/rpc/xdr.h:180: error: invalid use of incomplete type 'struct XDR' ./.././../src/Communication/Receivers.hxx:127: error: forward declaration of 'struct XDR' In file included from ../.././../src/Communication/Receivers.hxx:151, ====================== >How-To-Repeat: >Fix: Replace all "__rpc_xdr" to "XDR" in /usr/include/rpc/xdr.h in typedef struct XDR. C-applications (net/samba3, for example) and C++ applications (salome, not in ports yet) will be build OK. >Release-Note: >Audit-Trail: >Unformatted: