[ python-Bugs-978645 ] compiler warning for _NSGetExecutablePath()
in getpath.c
SourceForge.net
noreply at sourceforge.net
Sat Jun 26 00:11:06 EDT 2004
Bugs item #978645, was opened at 2004-06-23 17:49
Message generated for change (Comment added) made by bcannon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=978645&group_id=5470
Category: Macintosh
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 3
Submitted By: Brett Cannon (bcannon)
Assigned to: Jack Jansen (jackjansen)
Summary: compiler warning for _NSGetExecutablePath() in getpath.c
Initial Comment:
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.
----------------------------------------------------------------------
>Comment By: Brett Cannon (bcannon)
Date: 2004-06-25 21:11
Message:
Logged In: YES
user_id=357491
Checked in on HEAD as rev. 1.49 and on 2.3 as rev. 1.46.14.2 .
----------------------------------------------------------------------
Comment By: Jack Jansen (jackjansen)
Date: 2004-06-25 04:47
Message:
Logged In: YES
user_id=45365
PS: if you commit the patch, could you put in a note it needs to be
backported?
----------------------------------------------------------------------
Comment By: Jack Jansen (jackjansen)
Date: 2004-06-25 03:55
Message:
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?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=978645&group_id=5470
More information about the Python-bugs-list
mailing list