[New-bugs-announce] [issue1638] %zd configure test fails on Linux

Hrvoje Nikšić report at bugs.python.org
Sun Dec 16 21:22:53 CET 2007


New submission from Hrvoje Nikšić:

The printf("%zd", ...) configure test fails on Linux, although it
supports the %zd format.  config.log reveals that the test tests for %zd
with Py_ssize_t, which is (within the test) typedeffed to ssize_t.  But
the appropriate system header is not included by the test, and ssize_t
is not defined.  This results in Py_ssize_t not being correctly defined,
and the test failing.

According to http://tinyurl.com/3dhbbm/, ssize_t is defined in
<sys/types.h>.  Adding #include <sys/types.h> manually to the test fixes
the test for me.  A patch like the one attached should fix the problem.

----------
files: patch
messages: 58675
nosy: hniksic
severity: normal
status: open
title: %zd configure test fails on Linux
versions: Python 2.5
Added file: http://bugs.python.org/file8966/patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1638>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 248 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20071216/9080a5bd/attachment.obj 


More information about the New-bugs-announce mailing list