This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2010年04月27日 16:43 by jbinder, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| python-build-logs.tar.gz | jbinder, 2010年04月27日 16:43 | Logs of ./configure and make output | ||
| py_cygwin_build-3.1.3.txt | Scott.Rostrup, 2010年12月24日 04:05 | Log of make error | ||
| Messages (9) | |||
|---|---|---|---|
| msg104334 - (view) | Author: Jeff Binder (jbinder) | Date: 2010年04月27日 16:43 | |
Building Python 3.1.2 on Cygwin 1.7, I got errors in main.c stemming from a warning: PATH_MAX redefined (see attached log). I got around this by commenting out the #define. I don't know if the best solution is #ifndef, #undef, or something else. . . . I know CygWin has changed the value of PATH_MAX in 1.7 (see: http://www.cygwin.com/cygwin-ug-net/ov-new1.7.html), though I'm not sure why that would cause this problem. |
|||
| msg113037 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2010年08月05日 20:01 | |
None of the developers are much up on Cygwin and I am not sure it is directly supported by the core distribution. If it is not, this should be closed unless you have a specific patch. In any case, you might do better with your question on python-list. Also, PEP11 list Jason Tishler (jason@tishler.net) as Cygwin maintainer. Next time, please attach an edited, plain-text .txt log that can be viewed in the browser. I would have to be really motivated to download and extract a tar.gz file. |
|||
| msg124589 - (view) | Author: Scott Rostrup (Scott.Rostrup) | Date: 2010年12月24日 04:05 | |
I just encountered this error in python 3.1.3 on cygwin 1.7. I used the same fix as jbinder. Old Modules/main.c (line 13): #if defined(MS_WINDOWS) || defined(__CYGWIN__) #include <windows.h> #ifdef HAVE_FCNTL_H #include <fcntl.h> #define PATH_MAX MAXPATHLEN #endif #endif I guess now cygwin is defining PATH_MAX, one possible fix with ifndef: #if defined(MS_WINDOWS) || defined(__CYGWIN__) #include <windows.h> #ifdef HAVE_FCNTL_H #include <fcntl.h> #ifndef #define PATH_MAX MAXPATHLEN #endif #endif #endif This compiled and worked for me and it appears jbinder as well. |
|||
| msg161910 - (view) | Author: Nicholas DiPiazza (Nicholas.DiPiazza) | Date: 2012年05月29日 20:14 | |
In Python3.1.2-src/Modules/main.c I actually had to use this to get it to work: #if defined(MS_WINDOWS) || defined(__CYGWIN__) #include <windows.h> #ifdef HAVE_FCNTL_H #include <fcntl.h> #endif #ifndef HAVE_FCNTL_H #define PATH_MAX MAXPATHLEN #endif #endif |
|||
| msg224260 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2014年07月29日 21:51 | |
main.c has this. #if defined(MS_WINDOWS) || defined(__CYGWIN__) #include <windows.h> #ifdef HAVE_FCNTL_H #include <fcntl.h> #define PATH_MAX MAXPATHLEN #endif #endif Wouldn't inserting #else before #define fix this issue? |
|||
| msg224619 - (view) | Author: Roumen Petrov (rpetrov) * | Date: 2014年08月03日 08:31 | |
Hi Mark, #else before is not solution. See unified diff below as post by Scott Rostrup lack definition Some additional information: a) move outside #ifdef HAVE_FCNTL_H : definition PATH_MAX is not related to control functions on open files (fcntl.h) b) HAVE_FCNTL_H is defined for MSC build as well. so no impact on other build --- a/Modules/main.c +++ b/Modules/main.c @@ -9,6 +9,8 @@ #include <windows.h> #ifdef HAVE_FCNTL_H #include <fcntl.h> +#endif +#ifndef PATH_MAX #define PATH_MAX MAXPATHLEN #endif #endif -- |
|||
| msg241698 - (view) | Author: Masayuki Yamamoto (masamoto) * | Date: 2015年04月21日 04:37 | |
This issue resolved on default branch in #20597 . In 3.4 branch latest, PATH_MAX seems unused already in Modules/main.c:12 and Python/pythonrun.c:35. I want to cherry-pick #20597 to 3.4 branch. |
|||
| msg305403 - (view) | Author: Masayuki Yamamoto (masamoto) * | Date: 2017年11月02日 02:10 | |
This issue has been out-of-date since Python 3.4 maintenance became security status. |
|||
| msg305411 - (view) | Author: Berker Peksag (berker.peksag) * (Python committer) | Date: 2017年11月02日 10:20 | |
Thank you for doing issue triage, Masayuki! |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:00 | admin | set | github: 52794 |
| 2017年11月02日 10:20:49 | berker.peksag | set | status: open -> closed nosy: + berker.peksag messages: + msg305411 resolution: out of date stage: resolved |
| 2017年11月02日 02:10:11 | masamoto | set | messages: + msg305403 |
| 2015年04月21日 04:37:47 | masamoto | set | nosy:
+ masamoto messages: + msg241698 |
| 2014年08月03日 08:31:05 | rpetrov | set | messages: + msg224619 |
| 2014年07月30日 00:24:34 | terry.reedy | set | nosy:
- terry.reedy |
| 2014年07月29日 21:56:16 | BreamoreBoy | set | components: + Windows |
| 2014年07月29日 21:53:22 | rpetrov | set | nosy:
+ rpetrov |
| 2014年07月29日 21:51:17 | BreamoreBoy | set | versions:
+ Python 3.4, Python 3.5, - Python 3.1 nosy: + stutzbach, jlt63, BreamoreBoy messages: + msg224260 components: + Build, - Installation, Windows |
| 2012年05月29日 20:14:41 | Nicholas.DiPiazza | set | nosy:
+ Nicholas.DiPiazza messages: + msg161910 |
| 2010年12月24日 04:05:38 | Scott.Rostrup | set | files:
+ py_cygwin_build-3.1.3.txt nosy: + Scott.Rostrup messages: + msg124589 |
| 2010年08月10日 11:37:32 | flox | set | components: + Windows |
| 2010年08月05日 20:01:56 | terry.reedy | set | nosy:
+ terry.reedy messages: + msg113037 |
| 2010年04月27日 16:43:09 | jbinder | create | |