[Patches] [ python-Patches-1457736 ] patch for building trunk with VC6
SourceForge.net
noreply at sourceforge.net
Mon Jul 24 15:02:37 CEST 2006
Patches item #1457736, was opened at 2006-03-24 22:40
Message generated for change (Comment added) made by ocean-city
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1457736&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Hirokazu Yamamoto (ocean-city)
Assigned to: Nobody/Anonymous (nobody)
Summary: patch for building trunk with VC6
Initial Comment:
Hello. I tried to build trunk with VC6, but failed.
The reasons are
- _W64 is not defined on VC6. (PC/pyconfig.h)
- intptr_t and uintptr_t are not decleared on VC6.
(should use Py_intptr_t and Py_uintptr_t respectively)
I'll submit the patch for these two issues as
"build_trunk_for_vc6.patch".
And more two issues.
- zlib was make built into pythoncore, but
PC/VC6/pythoncore.dsp is not updated for it yet.
I'll submit the file itself.
- long long cannot be used on VC6, so 0xFFFFULL is
failed to compile with "invalid suffix" error.
I workarounded this replaced ULL with UI64 (_int64's
suffix) but I don't know how to make the patch. maybe
can this tequnique be used?
#define Py_ULL(x) x##ULL /* non VC6 */
#define Py_ULL(x) x##UI64 /* VC6 */
Py_ULL(0xFFFFFFFFFFFFFFFF) instead of 0xFFF...FULL
----------------------------------------------------------------------
>Comment By: Hirokazu Yamamoto (ocean-city)
Date: 2006-07-24 22:02
Message:
Logged In: YES
user_id=1200846
This supports other packages other than _msi. (I skipped
this package because I don't know how to test it)
test case passed successfully.
----------------------------------------------------------------------
Comment By: Hirokazu Yamamoto (ocean-city)
Date: 2006-05-25 13:33
Message:
Logged In: YES
user_id=1200846
Thanks to Luke Dunstan, my patch becomes much smaller.
- Replace *.dsp in PC/VC6 with attached files.
- Remove PC/VC6/zlib.dsp
- _sqlite3 and other new packages are not supported
I read core member are not interested in VC6 anymore, so
this is for VC6 guy. I don't want to install VC++2005Express
because it installs .net framework which I don't need. I'm
Java guy. :-)
----------------------------------------------------------------------
Comment By: Hirokazu Yamamoto (ocean-city)
Date: 2006-05-07 14:40
Message:
Logged In: YES
user_id=1200846
Oops, I forgot to upload the file.
- Apply x.patch.
- Replace pythoncore.dsp and pcbuild.dsw in PC/VC6 with
attached files.
- Remove PC/VC6/zlib.dsp
----------------------------------------------------------------------
Comment By: Hirokazu Yamamoto (ocean-city)
Date: 2006-05-07 14:37
Message:
Logged In: YES
user_id=1200846
Hello. I updated the patch. (Probably this is better)
- defined ULL() macro locally in Modules/sha512module.c
maybe it's better to declare Py_ULL or something
globally, but I don't know how to do it.
- more patch for zlib builtin (ie: PC/VC6/Readme.txt)
I cannot try this patch on VC7 or later, but
I confirmed lib/test/testall.py passed on VC6.
----------------------------------------------------------------------
Comment By: Luke Dunstan (infidel)
Date: 2006-05-07 03:16
Message:
Logged In: YES
user_id=30442
Is there anything preventing this patch from being
applied? It would help me with building the trunk using
both VC6 and Microsoft eMbedded Visual C++ 4.0 (for
Windows CE).
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2006-03-27 02:02
Message:
Logged In: YES
user_id=33168
Raymond, maybe this will help get VC6 building?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1457736&group_id=5470
More information about the Patches
mailing list