Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue6416] Failed to compile selectmodule.c on windows (trunk)

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Jul 4, 2009, 4:24 AM

Post #1 of 8 (805 views)
Permalink
[issue6416] Failed to compile selectmodule.c on windows (trunk)

New submission from Hirokazu Yamamoto <ocean-city [at] m2>:

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>
<http://bugs.python.org/issue6416>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 4, 2009, 4:59 AM

Post #2 of 8 (767 views)
Permalink
[issue6416] Failed to compile selectmodule.c on windows (trunk) [In reply to]

Hirokazu Yamamoto <ocean-city [at] m2> added the comment:

>E:\python-dev\trunk\PC\msvcrtmodule.c(39) : warning C4013:
>関数'_heapmin' は定義されていません。int 型の値を返す外部関数と見なします。

This means "_heapmin is not defined".

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6416>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 4, 2009, 10:13 PM

Post #3 of 8 (755 views)
Permalink
[issue6416] Failed to compile selectmodule.c on windows (trunk) [In reply to]

Changes by Hirokazu Yamamoto <ocean-city [at] m2>:


----------
priority: -> high

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6416>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 4, 2009, 10:14 PM

Post #4 of 8 (749 views)
Permalink
[issue6416] Failed to compile selectmodule.c on windows (trunk) [In reply to]

Changes by Hirokazu Yamamoto <ocean-city [at] m2>:


----------
versions: +Python 3.1

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6416>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 4, 2009, 10:15 PM

Post #5 of 8 (756 views)
Permalink
[issue6416] Failed to compile selectmodule.c on windows (trunk) [In reply to]

Changes by Hirokazu Yamamoto <ocean-city [at] m2>:


----------
versions: +Python 3.2 -Python 3.1

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6416>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 9, 2009, 10:32 AM

Post #6 of 8 (712 views)
Permalink
[issue6416] Failed to compile selectmodule.c on windows (trunk) [In reply to]

R. David Murray <rdmurray [at] bitdance> added the comment:

This constant was introduced in r73818 by Gregory, so I'm assigning this
ticket to him. Note that the trunk Windows buildbot is also failing to
compile because of this bug.

----------
assignee: -> gregory.p.smith
components: +Library (Lib) -Windows
keywords: +easy
nosy: +gregory.p.smith, r.david.murray
priority: high -> critical
stage: -> needs patch
type: -> compile error

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6416>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 9, 2009, 10:53 AM

Post #7 of 8 (713 views)
Permalink
[issue6416] Failed to compile selectmodule.c on windows (trunk) [In reply to]

R. David Murray <rdmurray [at] bitdance> added the comment:

I found this article that might be of interest with regards to PIPE_BUF
(or rather lack thereof) on Windows:

http://cygwin.com/ml/cygwin-patches/2004-q3/msg00084.html

It doesn't look like "doing the right thing" in Windows where in Posix
you would use PIPE_BUF is particularly easy, but that doesn't really
impact fixing the compile error.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6416>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 9, 2009, 3:44 PM

Post #8 of 8 (722 views)
Permalink
[issue6416] Failed to compile selectmodule.c on windows (trunk) [In reply to]

Amaury Forgeot d'Arc <amauryfa [at] gmail> added the comment:

PIPE_BUF was introduced for the subprocess module to use it... on posix
platforms only.
r73916 (trunk) and r73917 (py3k) add the suggested #ifdef, and also fix
test_subprocess.

----------
nosy: +amaury.forgeotdarc
resolution: -> fixed
status: open -> closed

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6416>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.