Re: DBD:mysql on MacIntel 10.4.8
"Christian Hoermann" <[email protected]>
| Newsgroups | gmane.comp.db.mysql.perl |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I am not really sure how exactly you can solve the problem, but since
no one else has replied yet, I'll try to help.
> dbdimp.c: In function 'mysql_dr_connect':
> dbdimp.c:1702: error: 'ulong' undeclared (first use in this function)
> dbdimp.c:1702: error: (Each undeclared identifier is reported only once
> dbdimp.c:1702: error: for each function it appears in.)
> dbdimp.c:1702: error: parse error before numeric constant
ulong should be decalred in the MySQL file "my_global.h" (and maybe
also some other files). You should check that you have all the MySQL
files, including this one, at /usr/local/mysql/include (as this is
what you specified under the --cflags). (If it's elsewhere for some
reason, you should add another -I option to the --cflags.)
If it seems to be there correctly, have a look inside at about line
825 (depending on your version of MySQL):
#if !defined(HAVE_ULONG) && !defined(TARGET_OS_LINUX) && !defined(__USE_MISC)
typedef unsigned long ulong; /* Short for unsigned long */
#endif
Possibly, the #if check fails, even though ulong is not defined. You
can try to add this line:
typedef unsigned long ulong;
to the DBD::mysql header file ("dbdimp.h"), at the very top, probably
best before the includes.
Best Regards,
Christian
--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/[email protected]