[New-bugs-announce] [issue6416] Failed to compile selectmodule.c on windows (trunk)

Hirokazu Yamamoto report at bugs.python.org
Sat Jul 4 13:24:35 CEST 2009


New submission from Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp>:

I cannot compile selectmodule.c on windows(trunk). PIPE_BUF will not be
defined if macro _POSIX_ is not defined. But if define _POSIX_ before
"#include <limits.h>" in Include/Python.h another compile error happens.

E:\python-dev\trunk\PC\msvcrtmodule.c(39) : warning C4013: 関数
'_heapmin' は定義されていません。int 型の値を返す外部関数と見なします。
E:\python-dev\trunk\Modules\posixmodule.c(2901) : warning C4013: 関数
'_exit' は定義されていません。int 型の値を返す外部関数と見なします。
E:\python-dev\trunk\Modules\posixmodule.c(2974) : warning C4013: 関数
'execv' は定義されていません。int 型の値を返す外部関数と見なします。
E:\python-dev\trunk\Modules\posixmodule.c(3107) : warning C4013: 関数
'execve' は定義されていません。int 型の値を返す外部関数と見なします。
E:\python-dev\trunk\Modules\posixmodule.c(3194) : error C2065:
'_OLD_P_OVERLAY' : 定義されていない識別子です。
E:\python-dev\trunk\Modules\posixmodule.c(3195) : error C2065:
'_P_OVERLAY' : 定義されていない識別子です。
E:\python-dev\trunk\Modules\posixmodule.c(3198) : warning C4013: 関数
'_spawnv' は定義されていません。int 型の値を返す外部関数と見なします。
E:\python-dev\trunk\Modules\posixmodule.c(3343) : warning C4013: 関数
'_spawnve' は定義されていません。int 型の値を返す外部関数と見なします。
E:\python-dev\trunk\Modules\posixmodule.c(3790) : warning C4013: 関数
'getpid' は定義されていません。int 型の値を返す外部関数と見なします。
E:\python-dev\trunk\Modules\posixmodule.c(4918) : warning C4013: 関数
'alloca' は定義されていません。int 型の値を返す外部関数と見なします。
E:\python-dev\trunk\Modules\posixmodule.c(5868) : warning C4013: 関数
'_cwait' は定義されていません。int 型の値を返す外部関数と見なします。
E:\python-dev\trunk\Modules\posixmodule.c(6743) : warning C4013: 関数
'putenv' は定義されていません。int 型の値を返す外部関数と見なします。
E:\python-dev\trunk\Modules\posixmodule.c(8941) : error C2065: '_P_WAIT'
: 定義されていない識別子です。
E:\python-dev\trunk\Modules\posixmodule.c(8942) : error C2065:
'_P_NOWAIT' : 定義されていない識別子です。
E:\python-dev\trunk\Modules\posixmodule.c(8944) : error C2065:
'_P_NOWAITO' : 定義されていない識別子です。
E:\python-dev\trunk\Modules\posixmodule.c(8945) : error C2065:
'_P_DETACH' : 定義されていない識別子です。
(snip)

Probaly it's not good define _POSIX_ on windows. Is it reasonable to put
"#ifdef PIPE_BUF" around

	PyModule_AddIntConstant(m, "PIPE_BUF", PIPE_BUF);

in selectmodule.c.

----------
components: Build, Windows
messages: 90113
nosy: ocean-city
severity: normal
status: open
title: Failed to compile selectmodule.c on windows (trunk)
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6416>
_______________________________________


More information about the New-bugs-announce mailing list