From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15540 invoked by alias); 4 Jun 2011 16:46:05 -0000 Received: (qmail 15532 invoked by uid 22791); 4 Jun 2011 16:46:05 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SARE_HEAD_8BIT_SPAM,SARE_SUB_ENC_UTF8x2 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 04 Jun 2011 16:45:52 +0000 From: "aurelien at aurel32 dot net" To: glibc-bugs@sources.redhat.com Subject: [Bug libc/12841] New: mqueue2.h:=?UTF-8?Q?=20declaration=20of=20=E2=80=98mqd=5Ft=20mq=5Fopen?=(const char*, int, ...)=?UTF-8?Q?=E2=80=99=20throws=20different=20exceptions?= X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aurelien at aurel32 dot net X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Sat, 04 Jun 2011 16:46:00 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2011-06/txt/msg00009.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=3D12841 Summary: mqueue2.h: declaration of =E2=80=98mqd_t mq_open(const = char*, int, ...)=E2=80=99 throws different exceptions Product: glibc Version: 2.13 Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: drepper.fsp@gmail.com ReportedBy: aurelien@aurel32.net Created attachment 5765 --> http://sourceware.org/bugzilla/attachment.cgi?id=3D5765 Patch to fix the issue Given the following code: #include int main() { mq_open("/tmp/test", O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR, 0); return 0; } When it is compiled with, "g++ -O -pedantic -D_FORTIFY_SOURCE=3D1", it fail= s with the following error: /usr/include/bits/mqueue2.h: In function =E2=80=98mqd_t mq_open(const char*= , int, ...)=E2=80=99: /usr/include/bits/mqueue2.h:37: error: declaration of =E2=80=98mqd_t mq_ope= n(const char*, int, ...)=E2=80=99 throws different exceptions /usr/include/bits/mqueue2.h:26: error: from previous declaration =E2=80=98m= qd_t mq_open(const char*, int, ...) throw ()=E2=80=99 As gcc said, it's due to two different declarations in bits/mqueue2.h. The attached patch fixes the issue. --=20 Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are on the CC list for the bug.