python/py-mysql
Ryan Schmidt
ryandesign at macports.org
Sat Feb 2 15:24:35 PST 2008
I can't really help you since I don't use python or leopard. I just
wanted to say a few things:
On Jan 31, 2008, at 09:29, Suresh Pillai wrote:
> I was imprecise on python25 not installing. In fact, it was py25-
> hashlib that failed to compile, a dependency for py25-mysql.
I don't see any tickets open about py25-hashlib so you should show us
the error you get when trying to build it, or file it in a ticket
> I've also found with some googling that the py-mysql error can be
> fixed on LEOPARD by commenting out from _mysql.c
>
> #ifndef uint
> #define uint unsigned int
> #endif
>
> Apologies if everyone already knew this. :)
The py25-mysql portfile does indeed include a patchfile which does
just that. It was added 2 months ago specifically to fix build issues
on leopard:
http://trac.macosforge.org/projects/macports/changeset/31502
This implies that it should work on leopard.
> I've got things working with system python and downloads of mysql/
> mysql-python so I guess I'll stick it out while Leopard problems
> with Macports python are being dealt with.
>
> Thanks,
> Suresh
>
> On Thu, 31 Jan 2008, Suresh Pillai wrote:
>
>> I am running
>>
>> Macports 1.6
>> OS X 10.5
>> xcode 3.0
>> xquartz 2.1.3
>>
>> python24 installs fine but gives me bus errors for the simplest of
>> things like printing a list. Someone else mentioned this too back
>> in Nov but I didnt see any responses to the thread. Also py-mysql
>> won't compile (log not show since python itself is unstable).
>>
>> So I tried python25/py25-mysql and python25 won't even compile.
>>
>> I am new to OSX and Macports, but if I can't get python working ...
>>
>> Okay, so I thought I'd stick with the system python and downloaded
>> the source for python-mysql from sourceforge. I got errors
>> installing that too, although the errors were related to the
>> macports install of mysql5:
>>
>> ...
>> running build_ext
>> building '_mysql' extension
>> creating build/temp.macosx-10.5-i386-2.5
>> gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-
>> fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-
>> prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -
>> arch ppc -pipe -Dversion_info=(1,2,2,'final',0) -
>> D__version__=1.2.2 -I/opt/local/include/mysql5/mysql -I/System/
>> Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>> -c _mysql.c -o build/temp.macosx-10.5-i386-2.5/_mysql.o
>> In file included from /opt/local/include/mysql5/mysql/mysql.h:47,
>> from _mysql.c:40:
>> /usr/include/sys/types.h:92: error: duplicate 'unsigned'
>> /usr/include/sys/types.h:92: error: two or more data types in
>> declaration specifiers
>> In file included from /opt/local/include/mysql5/mysql/mysql.h:47,
>> from _mysql.c:40:
>> /usr/include/sys/types.h:92: error: duplicate 'unsigned'
>> /usr/include/sys/types.h:92: error: two or more data types in
>> declaration specifiers
>> lipo: can't open input file: /var/folders/ZV/ZVl4o2PwHqaUrZYDYfN2CE
>> +++TI/-Tmp-//ccXNdGDK.out (No such file or directory)
>> error: command 'gcc' failed with exit status 1
>>
>>
>> Anyone got py-mysql/mysql-python working using the base Apple
>> python? Otherwise I am reverting to linux.
More information about the macports-users
mailing list