[New-bugs-announce] [issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors
Jeffrey Armstrong
report at bugs.python.org
Mon Oct 6 16:20:05 CEST 2014
New submission from Jeffrey Armstrong:
Under certain circumstances, Modules/posixmodule.c will fail to compile due to a number of utime-related functions using a variable named "utime" when a function named "utime" already exists in the compiler's C header files. Specifically, if the following are undefined:
HAVE_UTIMENSAT
HAVE_UTIMES
and the following are defined:
HAVE_UTIMENSAT
HAVE_LUTIMES
HAVE_UTIME_H
the compiler will fail because the UTIME_TO_UTIMBUF module attempts to access utime->now when utime is acutually a function included from utime.h.
I've attached a patch that renames the uname functions' parameter "utime" to "ut" to avoid the conflict.
This bug was encountered using Open Watcom 2.0 (owcc) under GNU/Linux 32-bit.
----------
components: Interpreter Core
files: utime-3.4.1.patch
keywords: patch
messages: 228690
nosy: Jeffrey.Armstrong
priority: normal
severity: normal
status: open
title: Use of "utime" as variable name in Modules/posixmodule.c causes errors
type: compile error
versions: Python 3.4
Added file: http://bugs.python.org/file36825/utime-3.4.1.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22568>
_______________________________________
More information about the New-bugs-announce
mailing list