Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#13078 closed defect (fixed)

py25-mysql Fails on Leopard

Reported by: brian@… Owned by: stechert@…
Priority: Normal Milestone:
Component: ports Version: 1.5.0
Keywords: Python MySQL Cc: stechert@…
Port:

Description

py25-mysql is failing for me. sudo port install py25-mysql gets:

running build running build_py copying MySQLdb/release.py -> build/lib.macosx-10.3-ppc-2.5/MySQLdb running build_ext building '_mysql' extension gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -DDARWIN_UNIX03 -Dversion_info=(1,2,2,'final',0) -Dversion=1.2.2 -I/opt/local/include/mysql5/mysql -I/opt/local/include/python2.5 -c _mysql.c -o build/temp.macosx-10.3-ppc-2.5/_mysql.o In file included from /opt/local/include/mysql5/mysql/mysql.h:43,

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 error: command 'gcc' failed with exit status 1 Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-mysql/work/MySQL-python-1.2.2" && /opt/local/bin/python2.5 setup.py build " returned error 1

Change History (7)

comment:1 Changed 17 years ago by freeed@…

This bug also applies to py-mysql (for Python 2.4). The same error message appears.

comment:2 Changed 17 years ago by derekb@…

Actually it seems that this isn't just a macports problem. It appears that it might also happen in the standard distribution of python when compiling MySQLdb 1.2.2 on 10.5

http://notyoume.com/2007/oct/28/error-python-mysqldb-osx-leopard/ and a potential solution here: http://forums.mysql.com/read.php?50,175059,179979#msg-179979

but this solution is for the MySQL AB supplied version of mysql, not the macports version.

comment:3 Changed 17 years ago by treborhudson@…

I performed the patch in the comment of this thread in my py25-mysql work directory and it installed: http://sourceforge.net/tracker/index.php?func=detail&aid=1808476&group_id=22307&atid=374932

-Rob

comment:4 Changed 17 years ago by stechert@…

Owner: changed from macports-dev@… to stechert@…
Status: newassigned

comment:5 Changed 17 years ago by stechert@…

Resolution: fixed
Status: assignedclosed

comment:6 in reply to:  1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to freeed@gmail.com:

This bug also applies to py-mysql (for Python 2.4). The same error message appears.

The problem remains in py-mysql. Ticket #13818 will handle fixing that.

comment:7 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.