I tried commenting out those lines but still got:

/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/
pyconfig.h:807:1: warning: this is the location of the previous
definition
error: command 'gcc' failed with exit status 1

any other ideas other than uninstall and install 32-bit?

On Mar 25, 8:36 am, Mike H <[EMAIL PROTECTED]> wrote:
> I had the same problem just this morning.
>
> Commenting out
>
> #ifndef uint
> #define uint unsigned int
> #endif
>
> from _mysql.c fixed it for me, and all the django tests pass with a
> mysql backend afterwards, so I should be safe :)
>
> Cheers,
>
> Mike
>
> On 25 Mar 2008, at 15:04, Karen Tracey wrote:
>
> > On Tue, Mar 25, 2008 at 3:49 AM, [EMAIL PROTECTED]
> > <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I'm trying to build MySQL-python-1.2.2 and I don't understand how to
> > fix these errors:
>
> > running build
> > running build_py
> > copying MySQLdb/release.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb
> > running build_ext
> > building '_mysql' extension
> > gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -
> > Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -
> > DNDEBUG -g -O3 -Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -
> > I/
> > usr/local/mysql-5.0.51a-osx10.4-powerpc-64bit/include -I/Library/
> > Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _mysql.c
> > -o build/temp.macosx-10.3-fat-2.5/_mysql.o -Os -arch ppc64 -fno-common
> > In file included from /Library/Frameworks/Python.framework/Versions/
> > 2.5/include/python2.5/Python.h:57,
> >                 from pymemcompat.h:10,
> >                 from _mysql.c:29:
> > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/
> > pyport.h:730:2: error: #error "LONG_BIT definition appears wrong for
> > platform (bad gcc/glibc config?)."
> > In file included from _mysql.c:35:
> > /usr/local/mysql-5.0.51a-osx10.4-powerpc-64bit/include/my_config.h:
> > 1032:1: warning: "SIZEOF_LONG" redefined
> > In file included from /Library/Frameworks/Python.framework/Versions/
> > 2.5/include/python2.5/Python.h:8,
> >                 from pymemcompat.h:10,
> >                 from _mysql.c:29:
> > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/
> > pyconfig.h:807:1: warning: this is the location of the previous
> > definition
> > error: command 'gcc' failed with exit status 1
>
> > Thanks for any help,
>
> > This page:
>
> >http://antoniocangiano.com/2007/12/22/how-to-install-django-with-mysq...
>
> > reports the same "LONG_BIT definition appears wrong" error resulting
> > from the conflict of trying to build with 64-bit MySQL libraries and
> > 32-bit Python.
>
> >  Karen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to