Steve,
With your patch for 2.9015, I get these errors:
cc -c -I/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI/ -I/usr/local/mysql/include -fno-omit-frame-pointer -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"2.9015_3\" -DXS_VERSION=\"2.9015_3\" "-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE" dbdimp.c
In file included from /usr/local/mysql/include/my_global.h:70,
from dbdimp.h:23,
from dbdimp.c:19:
/usr/local/mysql/include/my_config.h:349:1: warning: "VERSION" redefined
<command line>:8:1: warning: this is the location of the previous definition
In file included from dbdimp.h:23,
from dbdimp.c:19:
/usr/local/mysql/include/my_global.h:463: error: redefinition of `my_socket'
/usr/local/mysql/include/mysql.h:52: error: `my_socket' previously declared here
In file included from dbdimp.h:23,
from dbdimp.c:19:
/usr/local/mysql/include/my_global.h:581:1: warning: "MALLOC_OVERHEAD" redefined
In file included from /System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE/perl.h:2335,
from /Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI/DBIXS.h:19,
from dbdimp.h:20,
from dbdimp.c:19:
/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE/hv.h:273:1: warning: this is the location of the previous definition
/usr/local/mysql/include/my_global.h:735: error: redefinition of `gptr'
/usr/local/mysql/include/mysql.h:46: error: `gptr' previously declared here
/usr/local/mysql/include/my_global.h:779: error: redefinition of `my_ulonglong'
/usr/local/mysql/include/mysql.h:114: error: `my_ulonglong' previously declared here
/usr/local/mysql/include/my_global.h:841: error: redefinition of `my_bool'
/usr/local/mysql/include/mysql.h:37: error: `my_bool' previously declared here
dbdimp.c: In function `parse_params':
dbdimp.c:494: error: parse error before "register"
dbdimp.c: In function `mysql_st_prepare':
dbdimp.c:2106: error: parse error before "register"
dbdimp.c:2109: error: parse error before "register"
dbdimp.c:2121: error: break statement not within loop or switch
dbdimp.c: At top level:
dbdimp.c:2128: error: parse error before "for"
dbdimp.c:2142: error: parse error before '->' token
....
I took out 'lldata', which isn't needed (not used), and switched to matching each char for each case, and that fixes the problem. I've looked in the perl API and don't see (!Perl_ibcmp(pTHX_ searchptr, "SHOW ", 5))
anywhere - how can I use this? I saw a ibcmp_utf8, but that wasn't what I was looking for in this case.
thanks!
Patrick
On Apr 28, 2005, at 9:19 AM, Steve Hay wrote:
Patrick Galbraith wrote:
Steve,
Thank you so much for these patches! I love open source!
I'm sorry about forgetting about the removal of strcasencmp - this was something I had planned to do, and even Monty said to change it. About 'my_global.h' and longlong - I wanted to use this, especially for the 'rows' issue, but had all sorts of warnings and errors upon adding it to dbdimp.h, which seemed to do with issues between perl API and mysql API. Did you not have these issues?
Yes - as I said, there were a bunch of warnings about macro redefinitions, but no errors. Here's the warnings that I get (using perl 5.8.6 and mysql 4.1.9):
C:\mysql\include\config-win.h(70) : warning C4005: 'S_IROTH' : macro
redefinition
C:\perl5\lib\CORE\perl.h(1003) : see previous definition of
'S_IROTH'
C:\mysql\include\config-win.h(118) : warning C4005: 'bool' : macro
redefinition
C:\perl5\lib\CORE\handy.h(85) : see previous definition of 'bool'
C:\mysql\include\config-win.h(129) : warning C4005: 'isnan' : macro
redefinition
C:\perl5\lib\CORE\win32.h(211) : see previous definition of 'isnan'
C:\mysql\include\config-win.h(174) : warning C4005: 'sleep' : macro
redefinition
C:\perl5\lib\CORE\win32iop.h(294) : see previous definition of
'sleep'
C:\mysql\include\config-win.h(179) : warning C4005: 'access' : macro
redefinition
C:\perl5\lib\CORE\win32iop.h(277) : see previous definition of
'access'
C:\mysql\include\config-win.h(209) : warning C4005: 'lseek' : macro
redefinition
C:\perl5\lib\CORE\win32iop.h(242) : see previous definition of
'lseek'
C:\mysql\include\config-win.h(210) : warning C4005: 'tell' : macro
redefinition
C:\perl5\lib\CORE\win32iop.h(243) : see previous definition of
'tell'
Clearly these need ironing out, but they're better than errors about Win32 missing "long long".
Again, thanks so much for your work on this. I do intend to start poking at testing this on windows, and will probably be asking you questions as I do!
I'm happy to assist in any way I can.
Btw, did you miss or deliberately duck the charset/UTF-8 question?
Cheers, - Steve
------------------------------------------------ Radan Computational Ltd.
The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd. The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email.
Patrick Galbraith Senior Software Developer [EMAIL PROTECTED] http://www.mysql.com
"Whatever action a great man performs, common men follow. Whatever standards he sets by exemplary acts, all the world pursues" -- Bhagavad Gita
