473,472 Members | 2,184 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Re: OS 10.5 build 64 bits

Hi Robin,

On 2008-10-23 17:55, Robin Becker wrote:
I'm trying to build Python from the unix sources on an OS 10.5 machine.
This is because we're getting strange faults when using the built in
python 2.5 together with some precompiled versions of MySQLdb PIL etc etc.

The build works if I use python2.6 and with one minor fix I can get all
the extensions built and apparently working. However, there are some
minor problems with deprecated code inside the version of django we're
using.

I then tried to build against Python2.5. All the extensions build
cleanly except for MySQLdb. I'm now getting

>In file included from /Users/rptlab/PYTHON/include/python2.5/Python.h:57,
from pymemcompat.h:10,
from _mysql.c:29:
/Users/rptlab/PYTHON/include/python2.5/pyport.h:761:2: error: #error
"LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

and related
>In file included from _mysql.c:35:
/usr/local/mysql/include/mysql/my_config.h:1095:1: warning:
"SIZEOF_LONG" redefined
In file included from /Users/rptlab/PYTHON/include/python2.5/Python.h:8,
from pymemcompat.h:10,
from _mysql.c:29:
/Users/rptlab/PYTHON/include/python2.5/pyconfig.h:814:1: warning: this
is the location of the previous definition
That looks like a classical name clash between C header files.
It also suggests that you have 64-bit client libs of MySQL
installed.
I assume that's because MySQLdb wants to get settings from the
mysql_config file and the database is compiled in 64 bit mode whilst by
default python seems to be building 32 bit.
As long as the MySQL client lib is built as 32-bit lib, you shouldn't
have a problem.
Is there some magic I can try to make the OS 10.5 build as 64 bits? I
don't see any options to do that in the configure script.
The config options --with-universal-archs is used for this. In theory
you could build a 4-way binary for Intel,PPC/32-bit,64-bit.
Default is 32-bit only.
Also is it reasonable to expect MySQLdb to operate in both camps ie 32
bit on the python side and 64 bit on the mysql side. We didn't see any
obvious errors with the 2.6 build, but our testing was not extensive.
As long as the MySQL wire protocol doesn't get in the way, this
should be possible - again, provided you compile the MySQL client
libs as 32-bit.

--
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source (#1, Oct 23 2008)
>>Python/Zope Consulting and Support ... http://www.egenix.com/
mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
__________________________________________________ ______________________

:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
Oct 23 '08 #1
4 1576
M.-A. Lemburg wrote:
.........igure script.
>
The config options --with-universal-archs is used for this. In theory
you could build a 4-way binary for Intel,PPC/32-bit,64-bit.
Default is 32-bit only.
.........

apparently this issue is known

http://bugs.python.org/issue1619130

but I still don't know how to get the configure script to make 64 bits
only. In the past I have done the configure and then messed with the
resulting Makefiles.
--
Robin Becker
Oct 23 '08 #2
On 2008-10-23 20:28, Robin Becker wrote:
M.-A. Lemburg wrote:
........igure script.
>>
The config options --with-universal-archs is used for this. In theory
you could build a 4-way binary for Intel,PPC/32-bit,64-bit.
Default is 32-bit only.
........

apparently this issue is known

http://bugs.python.org/issue1619130

but I still don't know how to get the configure script to make 64 bits
only. In the past I have done the configure and then messed with the
resulting Makefiles.
That ticket has been closed, so I guess things do work that way.

Note however that this is just for building Python itself, not
for extensions (even though they pick up config settings from
Python).

--
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source (#1, Oct 24 2008)
>>Python/Zope Consulting and Support ... http://www.egenix.com/
mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
__________________________________________________ ______________________

:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
Oct 23 '08 #3
On Oct 24, 5:28*am, Robin Becker <ro...@NOSPAMreportlab.comwrote:
M.-A. Lemburg wrote:

........igure script.
The config options --with-universal-archs is used for this. In theory
you could build a 4-way binary for Intel,PPC/32-bit,64-bit.
Default is 32-bit only.

........

apparently this issue is known

http://bugs.python.org/issue1619130

but I still don't know how to get the configure script to make 64 bits
only. In the past I have done the configure and then messed with the
resulting Makefiles.
Comments in the following may or may not be useful:

http://code.google.com/p/modwsgi/wik...lationOnMacOSX
http://developer.apple.com/releaseno...tes/index.html

The latter only works for Apple supplied Python as I understand it.

Graham

Oct 23 '08 #4
Graham Dumpleton wrote:
>........

http://code.google.com/p/modwsgi/wik...lationOnMacOSX
http://developer.apple.com/releaseno...tes/index.html

The latter only works for Apple supplied Python as I understand it.

......
thanks for these, the mod_wsgi build contains interesting stuff; no doubt I'll
burn my fingers with a few misguided fudges.
--
Robin Becker

Oct 24 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Steve Mack | last post by:
I was downloading from the MSDN subscription site and used the File Transfer Manager, and was wondering if that was something I could use for my site? Is there an API that allows me to build this...
0
by: HoT!cE | last post by:
When I try to build a storedprocedure using db2 develop center I get this error msg: DB2INST1.PROCEDURE1 - Build started. C:\PROGRA~1\IBM\SQLLIB\java\jdk\bin\javac -classpath...
48
by: yezi | last post by:
Hi, all: I want to record some memory pointer returned from malloc, is possible the code like below? int memo_index; int i,j; char *tmp; for (i=0;i<10;i++){
3
by: Steve Franks | last post by:
I'm using Visual Studio 2005 RC and cannot figure out how to produce a "release" build. Am I doing something wrong? I'm wondering if perhaps MS locked out the ability to produce a release build...
28
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, I am developing C++ COM native code (unmanaged C++) using Visual Studio 2005. I do not take any new features of 64-bit platform, and currently my code runs fine on 32-bit...
2
by: Robin Becker | last post by:
I'm trying to build Python from the unix sources on an OS 10.5 machine. This is because we're getting strange faults when using the built in python 2.5 together with some precompiled versions of...
0
by: Akira Kitada | last post by:
Hi list, I was trying to build Python 2.6 on FreeBSD 4.11 and found it failed to build some of the modules. """ Failed to find the necessary bits to build these modules: _bsddb ...
0
by: M.-A. Lemburg | last post by:
On 2008-10-25 08:39, Akira Kitada wrote: Please post a bug report on python.org about these failures. The multiprocessing module is still fairly new and obviously needs more fine tuning for...
0
by: Akira Kitada | last post by:
Hi Marc-Andre, Thanks for the suggestion. I opened a ticket for this issue: http://bugs.python.org/issue4204 Now I understand the state of the multiprocessing module, but it's too bad to see...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.