473,696 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OS 10.5 build 64 bits

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:1 0,
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:109 5:1: warning: "SIZEOF_LON G" redefined
In file included from /Users/rptlab/PYTHON/include/python2.5/Python.h:8,
from pymemcompat.h:1 0,
from _mysql.c:29:
/Users/rptlab/PYTHON/include/python2.5/pyconfig.h:814: 1: warning: this is the location of the previous definition
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.

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.

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.
Robin Becker

Oct 23 '08 #1
2 1258
In message <ma************ *************** ***********@pyt hon.org>, Robin
Becker wrote:
Is there some magic I can try to make the OS 10.5 build as 64 bits?
Bear in mind OS X isn't really 64-bit, it's still only a 32-bit kernel.
Oct 24 '08 #2
Lawrence D'Oliveiro wrote:
In message <ma************ *************** ***********@pyt hon.org>, Robin
Becker wrote:
>Is there some magic I can try to make the OS 10.5 build as 64 bits?

Bear in mind OS X isn't really 64-bit, it's still only a 32-bit kernel.
Well, you can compile and execute 64-bit user-space programs (including Python,
with some effort), so I'm not really sure what you mean here. What practical
effect does it having "still only a 32-bit kernel" have on the hopeful 64-bit
Python programmer?

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

Oct 24 '08 #3

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

Similar topics

by: M.-A. Lemburg | last post by:
Hi Robin, On 2008-10-23 17:55, Robin Becker wrote: That looks like a classical name clash between C header files. It also suggests that you have 64-bit client libs of MySQL installed. As long as the MySQL client lib is built as 32-bit lib, you shouldn't
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 _sqlite3 _tkinter gdbm linuxaudiodev spwd sunaudiodev
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 the large set of platforms on which Python can run. However, please also note that FreeBSD4 is a rather old version of that OS. FWIW: Python 2.6 compiles just fine on FreeBSD6. Thanks.
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 math, mmap and readline modules, that worked fine before, cannot be built anymore.
by: M.-A. Lemburg | last post by:
On 2008-10-25 20:19, Akira Kitada wrote: Thanks. The errors you are getting appear to be related to either some missing header files or a missing symbol definition to enable these - looking at the ticket, you seem to have resolved all this already :-)
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
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.