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.

classification
Title: compiler warning for _NSGetExecutablePath() in getpath.c
Type: Stage:
Components: macOS Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jackjansen Nosy List: brett.cannon, jackjansen
Priority: low Keywords:

Created on 2004-06-24 00:49 by brett.cannon, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg21269 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2004-06-24 00:49
On OS X 10.3.4 (gcc 3.3, compiled with --disable-framework --
disable-toolbox-glue), a warning about no function prototype for 
_NSGetExecutablePath() is thrown for Modules/getpath.c:399 .  It 
looks like this has to do with the include file for the function 
(mach-o/dyld.h) being #ifdef'ed with WITH_NEXT_FRAMEWORK 
while the code using _NSGetExecutablePath() is #ifdef'ed with 
__APPLE__.  Should probably use the same #ifdef statement, but I 
don't know which one.
msg21270 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2004-06-25 10:55
Logged In: YES 
user_id=45365

Brett,
you want the _NSGetExecutablePath code for non-framework builds as 
well as for framework builds. I can't test right now, but I assume that  
using
#ifdef __APPLE__
#include <mach-o/dyld.h>
#endif
at the top (in stead of the #ifdef WITH_NETX_FRAMEWORK that's there 
right now) should do the trick. Could you check this, and check in the fix 
if it works, please?
msg21271 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2004-06-25 11:47
Logged In: YES 
user_id=45365

PS: if you commit the patch, could you put in a note it needs to be 
backported?
msg21272 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2004-06-26 04:11
Logged In: YES 
user_id=357491

Checked in on HEAD as rev. 1.49 and on 2.3 as rev. 1.46.14.2 .
History
Date User Action Args
2022-04-11 14:56:05adminsetgithub: 40442
2004-06-24 00:49:32brett.cannoncreate