dbdimp.c:1538: error: 'ulong' undeclared (DBD::mysql compile on Leopard)
I was trying to install the DBD::mysql module V4.006 on an Apple PowerMac Quad G5 running OS X 5.2 "Leopard" and MySQL 5.0.27. I got the following compilation error:-
dbdimp.c: In function 'mysql_dr_connect':
dbdimp.c:1538: error: 'ulong' undeclared (first use in this function)
dbdimp.c:1538: error: (Each undeclared identifier is reported only once
dbdimp.c:1538: error: for each function it appears in.)
dbdimp.c:1538: error: syntax error before numeric constant
The fix/workaround for this is to edit the dbdimp.h file and add the following line around the top (after the #include -s):-
typedef unsigned long ulong;
E voila, it compiles OK.
Subject
Written By
Posted
dbdimp.c:1538: error: 'ulong' undeclared (DBD::mysql compile on Leopard)
March 19, 2008 05:08AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.