Ilya Obshadko writes:
> Hello,
>
> Did anybody try to compile mysql with egcs or gcc-2.8.1 on FreeBSD
> 3.1-RELEASE? The resulting libmysqlclient.so.6.0 produces a
> coredump while trying to connect to mysql database from DBI.
> Apache + mod_perl says another interesting thing:
>
> pid 20036 (httpd), uid 1003: exited on signal 10 (bus error)
>
> What does this mean? Do I have to compile all mysql-related things
> (i.e. DBI, DBD::mysql, perl5 etc.) with the same compiler?
>
> Best regards,
> Ilya mailto:ilya@stripped
Hello!
This seems to be a FreeBSD thread problem.
Try configuring MySQL with the following command:
CXX=gcc CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti"
./configure --with-debug --with-named-thread-libs=-lc_r --with-mit-threads
And yes, all MySQL related things (DBI, DBD ...) should be
compiled with the same compiler.
Yours,
Jani
--
+---------------------------------------------------------------------+
| TcX ____ __ _____ _____ ___ == mysql@stripped |
| /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Jani Tolonen |
| /*/ /*/ /*/ \*\_ |*| |*||*| mailto: jani@stripped |
| /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Helsinki |
| /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|_____ Finland |
| ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ |
| /*/ \*\ Developers Team |
+---------------------------------------------------------------------+