[issue10320] printf %qd is nonstandard
[email protected] added the comment: Objects/stringobject.c already does something similar: else if (longlongflag) sprintf(s, "%" PY_FORMAT_LONG_LONG "d", va_arg(vargs, PY_LONG_LONG)); so it makes sense to do the same in Modules/_ctypes/callproc.c. ------ nosy: [email protected] ___ Python tracker <http://bugs.python.org/issue10320> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10800] libffi build failure on HP-UX 11/PA
New submission from [email protected] : Python 3.1.3 fails to build on HP-UX/PA: In file included from /opt/build/Python-3.1.3/Modules/_ctypes/libffi/src/dlmalloc.c:1156: /opt/TWWfsw/gcc42/lib/gcc/hppa2.0-hp-hpux11.31/4.2/include/stdlib.h:577: error: redefinition of 'struct mallinfo' Failed to build these modules: _ctypes on HP-UX has a conflicting definition for struct mallinfo: #ifndef _STRUCT_MALLINFO # define _STRUCT_MALLINFO /* structure filled by mallinfo */ struct mallinfo { int32_t arena; /* total number of bytes in arena */ int32_t ordblks;/* number of ordinary blocks */ int32_t smblks; /* number of small blocks */ int32_t hblks; /* number of holding blocks */ int32_t hblkhd; /* number of bytes in holding block headers */ int32_t usmblks;/* number of bytes in small blocks in use */ int32_t fsmblks;/* number of bytes in free small blocks */ int32_t uordblks; /* number of bytes in ordinary blocks in use */ int32_t fordblks; /* number of bytes in free ordinary blocks */ int32_t keepcost; /* cost of enabling keep option */ }; #endif /* _STRUCT_MALLINFO */ -- assignee: theller components: ctypes messages: 124956 nosy: [email protected], theller priority: normal severity: normal status: open title: libffi build failure on HP-UX 11/PA type: compile error versions: Python 3.1 ___ Python tracker <http://bugs.python.org/issue10800> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6006] ffi.c compile failures on AIX 5.3 with xlc
[email protected] added the comment: Python is using the wrong ffi code, it should be using ffi_darwin.c -- keywords: +patch nosy: [email protected] Added file: http://bugs.python.org/file17098/pyffi.patch ___ Python tracker <http://bugs.python.org/issue6006> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9270] distutils.util.getplatform and sysconfig.getplatform differ
New submission from [email protected] : We had issues building python 2.7 on hppa-hp-hpux machines because sysconfig and distutils had different ideas of the platform name. ./python -c 'import os, sys; from distutils.util import get_platform as plat1; from sysconfig import get_platform as plat2; print plat1();print plat2()' hp-ux-B.11.11-9000_785 hp-ux-B.11.11-9000-785 Notice that one has an underscore, the other a dash. Either the code is sysconfig or distutils needs to change slightly so that they match. e.g. Index: Lib/sysconfig.py === --- Lib/sysconfig.py.orig 2010-05-19 22:20:14.0 + +++ Lib/sysconfig.py2010-07-16 02:52:39.385322407 + @@ -569,3 +569,3 @@ machine = machine.replace(' ', '_') -machine = machine.replace('/', '-') +machine = machine.replace('/', '_') ------ assignee: tarek components: Distutils messages: 110411 nosy: [email protected], tarek priority: normal severity: normal status: open title: distutils.util.getplatform and sysconfig.getplatform differ type: compile error versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue9270> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
