Greetings,
I can't seem to compile mysql-python-py25 on Snow Leopard.
With a virgin installation of Fink 0.29.2, I do: fink install mysql-
python-py25. It seems to compile and install all the dependencies
correctly, but fails at the end. Looks like there are a few compiler
errors.
FWIW: I can install mysql-python-py26 with no problems, but I need py25.
Below is the relevant output from the install process:
Any ideas?
##################################
running build_ext
building '_mysql' extension
creating build/temp.macosx-10.6-i386-2.5
gcc -fno-strict-aliasing -mno-fused-madd -DNDEBUG -g -fwrapv -O3 -
Wall -Wstrict-prototypes -I/sw/include -Dversion_info=(1,2,2,'final',
0) -D__version__=1.2.2 -I/sw/include/mysql -I/sw/include/python2.5 -c
_mysql.c -o build/temp.macosx-10.6-i386-2.5/_mysql.o -Wreturn-type -
Wtrigraphs -W -Wformat -Wsign-compare -Wunused -fno-omit-frame-
pointer -g
In file included from /sw/include/python2.5/Python.h:57,
from pymemcompat.h:10,
from _mysql.c:29:
/sw/include/python2.5/pyport.h:547: warning: 'struct winsize'
declared inside parameter list
/sw/include/python2.5/pyport.h:547: warning: its scope is only this
definition or declaration, which is probably not what you want
/sw/include/python2.5/pyport.h:548: warning: 'struct winsize'
declared inside parameter list
_mysql.c: In function '_mysql_server_init':
_mysql.c:234: warning: unused parameter 'self'
_mysql.c: In function '_mysql_server_end':
_mysql.c:325: warning: unused parameter 'self'
_mysql.c:326: warning: unused parameter 'args'
_mysql.c: In function '_mysql_thread_safe':
_mysql.c:343: warning: unused parameter 'self'
_mysql.c: In function '_mysql_ConnectionObject_Initialize':
_mysql.c:488: error: 'uint' undeclared (first use in this function)
_mysql.c:488: error: (Each undeclared identifier is reported only once
_mysql.c:488: error: for each function it appears in.)
_mysql.c:488: error: expected ';' before 'port'
_mysql.c:489: error: expected ';' before 'client_flag'
_mysql.c:510: error: 'port' undeclared (first use in this function)
_mysql.c:515: error: 'client_flag' undeclared (first use in this
function)
_mysql.c: In function '_mysql_connect':
_mysql.c:653: warning: unused parameter 'self'
_mysql.c: In function '_mysql_debug':
_mysql.c:737: warning: unused parameter 'self'
_mysql.c: In function '_mysql_escape_sequence':
_mysql.c:1101: warning: unused parameter 'self'
_mysql.c: In function '_mysql_escape_dict':
_mysql.c:1135: warning: unused parameter 'self'
_mysql.c: In function '_mysql__fetch_row':
_mysql.c:1366: warning: comparison between signed and unsigned
_mysql.c: In function '_mysql_ResultObject_fetch_row':
_mysql.c:1423: warning: comparison of unsigned expression < 0 is
always false
_mysql.c:1432: warning: comparison between signed and unsigned
_mysql.c:1440: warning: comparison between signed and unsigned
_mysql.c:1452: warning: comparison between signed and unsigned
_mysql.c: In function '_mysql_get_client_info':
_mysql.c:1601: warning: unused parameter 'self'
_mysql.c: At top level:
_mysql.c:2329: warning: missing initializer
_mysql.c:2329: warning: (near initialization for
'_mysql_ConnectionObject_methods[34].ml_flags')
_mysql.c:2368: warning: missing initializer
_mysql.c:2368: warning: (near initialization for
'_mysql_ConnectionObject_memberlist[5].type')
_mysql.c:2420: warning: missing initializer
_mysql.c:2420: warning: (near initialization for
'_mysql_ResultObject_methods[8].ml_flags')
_mysql.c:2431: warning: missing initializer
_mysql.c:2431: warning: (near initialization for
'_mysql_ResultObject_memberlist[1].type')
_mysql.c:2620: warning: missing initializer
_mysql.c:2620: warning: (near initialization for
'_mysql_ConnectionObject_Type.tp_cache')
_mysql.c:2705: warning: missing initializer
_mysql.c:2705: warning: (near initialization for
'_mysql_ResultObject_Type.tp_cache')
_mysql.c:2777: warning: missing initializer
_mysql.c:2777: warning: (near initialization for '_mysql_methods
[11].ml_flags')
error: command 'gcc' failed with exit status 1
### execution of /sw/bin/python2.5 failed, exit code 1
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-mysql-python-py25-1.2.2-1001
(Reading database ... 14089 files and directories currently installed.)
Removing fink-buildlock-mysql-python-py25-1.2.2-1001 ...
Failed: phase compiling: mysql-python-py25-1.2.2-1001 failed
Before reporting any errors, please run "fink selfupdate" and
try again. If you continue to have issues, please check to see if the
FAQ on fink's website solves the problem. If not, ask on the fink-users
or fink-beginners mailing lists, with a carbon copy to the maintainer:
Beat Birkhofer <[email protected]>
Note that this is preferable to emailing the maintainer directly, since
most fink package maintainers do not have access to all possible
hardware and software configurations.------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users