From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 108850 invoked by alias); 23 Feb 2017 16:48:38 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 108818 invoked by uid 89); 23 Feb 2017 16:48:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_PASS,UNPARSEABLE_RELAY autolearn=ham version=3.3.2 spammy=salud, Hx-languages-length:1588, View, H*r:8.13.8 X-HELO: userp1040.oracle.com Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 Feb 2017 16:48:32 +0000 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v1NGmTl4009206 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 23 Feb 2017 16:48:30 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v1NGmTNh026041 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 23 Feb 2017 16:48:29 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id v1NGmPtF026185 for ; Thu, 23 Feb 2017 16:48:28 GMT Received: from termi.oracle.com (/10.175.209.105) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 23 Feb 2017 08:48:25 -0800 From: jose.marchesi@oracle.com (Jose E. Marchesi) To: gdb-patches@sourceware.org Subject: MemoryView missing from Python 2.4 and 2.6 Date: Thu, 23 Feb 2017 16:48:00 -0000 Message-ID: <87o9xsx38r.fsf@oracle.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00636.txt.bz2 Hi folks! While building git GDB on a certain distribution that features Python 2.6.6 (I know, ancient) we triggered a build failure: g++ -g -O2 -I. -I../../gdb -I../../gdb/common -I../../gdb/config -DLOCAL= EDIR=3D"\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I../../gdb/../include= /opcode -I../../gdb/../opcodes/.. -I../../gdb/../readline/.. -I../../gdb/..= /zlib -I../bfd -I../../gdb/../bfd -I../../gdb/../include -I../libdecnumber = -I../../gdb/../libdecnumber -I../../gdb/gnulib/import -Ibuild-gnulib/impor= t -DTUI=3D1 -I/usr/include/python2.6 -I/usr/include/python2.6 -Wall -Wpo= inter-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-c= har-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-var= iable -Wno-sign-compare -Wno-write-strings -Wno-narrowing -Wformat-nonliter= al -Werror -c -o py-record-btrace.o -MT py-record-btrace.o -MMD -MP -MF .de= ps/py-record-btrace.Tpo -fno-strict-aliasing -DNDEBUG -fwrapv ../../gdb/pyt= hon/py-record-btrace.c ../../gdb/python/py-record-btrace.c: In function =E2=80=98PyObject* btpy_in= sn_data(PyObject*, void*)=E2=80=99: ../../gdb/python/py-record-btrace.c:333:10: error: =E2=80=98PyMemoryView_Fr= omObject=E2=80=99 was not declared in this scope return PyMemoryView_FromObject (object); ^~~~~~~~~~~~~~~~~~~~~~~ ../../gdb/python/py-record-btrace.c:333:10: note: suggested alternative: = =E2=80=98PyBuffer_FromObject=E2=80=99 return PyMemoryView_FromObject (object); ^~~~~~~~~~~~~~~~~~~~~~~ PyBuffer_FromObject make: *** [py-record-btrace.o] Error 1 Looks like the Memory View object was introduced in Python 2.7. Salud!