Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#13818 closed defect (fixed)

py-mysql build fails on 1.600 and 10.5.1 on intel

Reported by: nigel@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: nigel@…, rwilcox (Ryan Wilcox), stechert@…
Port:

Description

using mysql5+server installed this build fails with the following message

--->  Fetching py-mysql
--->  Verifying checksum(s) for py-mysql
--->  Extracting py-mysql
--->  Applying patches to py-mysql
--->  Configuring py-mysql
--->  Building py-mysql with target build
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_py-mysql/work/MySQL-python-1.2.2" && /opt/local/bin/python2.4 setup.py build " returned error 1
Command output: running build
running build_py
creating build
creating build/lib.macosx-10.3-i386-2.4
copying _mysql_exceptions.py -> build/lib.macosx-10.3-i386-2.4
creating build/lib.macosx-10.3-i386-2.4/MySQLdb
copying MySQLdb/__init__.py -> build/lib.macosx-10.3-i386-2.4/MySQLdb
copying MySQLdb/converters.py -> build/lib.macosx-10.3-i386-2.4/MySQLdb
copying MySQLdb/connections.py -> build/lib.macosx-10.3-i386-2.4/MySQLdb
copying MySQLdb/cursors.py -> build/lib.macosx-10.3-i386-2.4/MySQLdb
copying MySQLdb/release.py -> build/lib.macosx-10.3-i386-2.4/MySQLdb
copying MySQLdb/times.py -> build/lib.macosx-10.3-i386-2.4/MySQLdb
creating build/lib.macosx-10.3-i386-2.4/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.macosx-10.3-i386-2.4/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.macosx-10.3-i386-2.4/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.3-i386-2.4/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.macosx-10.3-i386-2.4/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.3-i386-2.4/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.macosx-10.3-i386-2.4/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.3-i386-2.4/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.macosx-10.3-i386-2.4
/usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -I/opt/local/include/mysql5/mysql -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c _mysql.c -o build/temp.macosx-10.3-i386-2.4/_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
error: command '/usr/bin/gcc-4.0' failed with exit status 1

Error: Status 1 encountered during processing.

Change History (6)

comment:1 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Milestone: Port Bugs

comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: rwilcox@… added
Summary: mysql-python build fails on 1.600 and 10.5.1 on intelpy-mysql build fails on 1.600 and 10.5.1 on intel

Cc'ing maintainer of py-mysql

comment:3 Changed 17 years ago by tony.becker@…

I don't know how to submit patches for MacPorts, but I can report the following:

  • 10.5.2 update did not resolve this issue; i got the exact same error as first reported
  • I went into the build working directory and edited _mysql.c to comment out lines 37-39 (the #define uint unsigned int and surrounding ifdefs)
  • repeated port install py-mysql and the build/install succeeded

So this appears to have a simple fix.

comment:4 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: stechert@… added
Owner: changed from macports-tickets@… to ryandesign@…

This problem was resolved for py25-mysql in r31502; see #13078. The same fix should be applied to py-mysql.

comment:5 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Fixed this by merging r31502 to py-mysql in r34153.

comment:6 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.