When compiling .36 under OS X release, the following error occurs:
c++ -DMYSQL_SERVER
-DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\""
-DDATADIR="\"/usr/local/mysql/var\""-DSHAREDIR="\"/usr/local/mysql/share/mysql\
"" -DHAVE_CONFIG_H -I../bdb/build_unix
-I../innobase/include -I./../include
-I./../regex -I. -I../include -I.. -I. -O3
-DDBUG_OFF -O3 -fomit-frame-pointer -fno-implicit-templates
-traditional-cpp -DHAVE_DARWIN_THREADS -traditional-cpp
-DHAVE_DARWIN_THREADS -D_P1003_1B_VISIBLE -c mysqld.cc
mysqld.cc: In function `void init_signals()':
mysqld.cc:1241: assignment to `void (*)(int)' from `void (*)()'
make[3]: *** [mysqld.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
This is fixable by removing the #ifdef DARWIN_THREADS protection, near
line 1241 and just using the
sa.sa_handler=handle_segfault;
code in all cases. This appears to have been a Darwin 1.2 to 1.3
change, though I have only recently been following it.
(This does appear to have been a bad cast, and thus the change is a good
one.)
Could someone make this internal code change, please. Other than that,
a compile with berkeleydb works just fine. (I note that I have not
been able to stop the mysql daemon with mysqladmin shutdown, but that
seems to be unrelated.)
My configure line was:
CFLAGS="-O3 -fomit-frame-pointer" CXXFLAGS="-O3 -fomit-frame-pointer"
./configure --prefix=/usr/local/mysql --with-extra-charsets=complex
--with-berkeley-db
Thanks much,
Scott
-------
[EMAIL PROTECTED] http://www.iceweasel.com/~scott/
"You die, she dies, EVERYbody dies" - Heavy Metal
"When a great many people are unable to find work, unemployment
results" - Calvin Coolidge, attrib. by Stanley Walker, City Editor, p.
131 (1934)
---------------------------------------------------------------------
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