Hello Here is something from the Debian bug tracking system for you. If fixes the compilation problems on Alpha architecture. bye, -christian- -- codito ergo sum - I code, therefore I am!
On Sun 21 Jan 2001, Cristian Ionescu-Idbohrn wrote: > downloaded 3.23.31. Builds just fine on i386, but sadly, fails on alpha > (potato, Linux 2.2.13, gcc version 2.95.2 20000220). > ha_berkeley.cc:250: passing `void * (*)(unsigned int)' > as argument 4 of > `log_archive(DB_ENV *, char ***, unsigned int, void * (*)(long > unsigned int))' Typical, people assuming that sizeof(long) == sizeof(int). On alpha: 8 != 4 ... Adding a cast for arg 4 should help. Oh wait, I see now that there *is* a cast, and it's an explicit cast to <mumble>unsigned int, whereas the prototype for the function declares <mumble>size_t. Hence changing the "unsigned int" to "size_t" in ha_berkeley.cc (at two places) should fix it. What are some people thinking when they add casts... I've seen many cases where simply removing the damn cast does the right thing in all cases, I wouldn't be surprised if that's the case here too. Anyway, with the fix above it compiles fine; uploading now. Paul Slootman -- home: [EMAIL PROTECTED] http://www.wurtel.demon.nl/ work: [EMAIL PROTECTED] http://www.murphy.nl/ debian: [EMAIL PROTECTED] http://www.debian.org/ isdn4linux: [EMAIL PROTECTED] http://www.isdn4linux.org/
--------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php