From owner-freebsd-python@FreeBSD.ORG Sat Jan 31 15:48:06 2015 Return-Path: Delivered-To: python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DB8DC152 for ; Sat, 31 Jan 2015 15:48:06 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A8306AF9 for ; Sat, 31 Jan 2015 15:48:06 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t0VFm6N7089037 for ; Sat, 31 Jan 2015 15:48:06 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 197226] lang/python27: fix pyport.h _PY_PORT_CTYPE_UTF8_ISSUE issue with c++ Date: Sat, 31 Jan 2015 15:48:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: thierry@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jan 2015 15:48:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197226 Bug ID: 197226 Summary: lang/python27: fix pyport.h _PY_PORT_CTYPE_UTF8_ISSUE issue with c++ Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: python@FreeBSD.org Reporter: thierry@FreeBSD.org Flags: maintainer-feedback?(python@FreeBSD.org) Assignee: python@FreeBSD.org Created attachment 152416 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=152416&action=edit Patch pyport.h I'm trying to resurrect cad/freecad (with Andrea Venturoli), and it fails with the following error: In file included from /usr/ports/cad/freecad.WIP/work/freecad-20150106/src/Main/MainGui.cpp:57: In file included from /usr/ports/cad/freecad.WIP/work/freecad-20150106/src/Base/Console.h:33: In file included from /usr/ports/cad/freecad.WIP/work/freecad-20150106/src/Base/Stream.h:32: In file included from /usr/include/c++/v1/fstream:169: In file included from /usr/include/c++/v1/ostream:131: In file included from /usr/include/c++/v1/ios:216: /usr/include/c++/v1/__locale:436:15: error: C++ requires a type specifier for all declarations char_type toupper(char_type __c) const ^~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python2.7/pyport.h:731:29: note: expanded from macro 'toupper' #define toupper(c) towupper(btowc(c)) The "fix" _PY_PORT_CTYPE_UTF8_ISSUE is also applied for Apple, and it causes the same error on Mac Ports with C++, and they solved it with the attached patch. See https://trac.macports.org/attachment/ticket/44288/issue10910-workaround.txt This patch also fixes the error for FreeBSD. --- Comment #1 from Bugzilla Automation --- Auto-assigned to maintainer python@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug.