I'm using gcc 3.3-r3, and whenever I try to compile MySQL 4.0.15, it always throws back the error: _Unwind_Resume_or_Rethrow@GCC_3.3. This makes it impossible to build MySQL, and I was wondering if anyone had any ideas on how to fix it.
please post the entire error
Sorry this took so long, here's the error: mkdir .libs gcc -O3 -DDBUG_OFF -march=athlon-xp -O3 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -DUSE_OLD_FUNCTIONS -rdynamic -o .libs/mysqladmin mysqladmin.o -lstdc++ ../libmysql/.libs/libmysqlclient.so -L/usr/lib -lz -lcrypt -lnsl -lm -lssl -lcrypto -Wl,--rpath -Wl,/usr/lib/mysql g++ -O3 -DDBUG_OFF -O2 -mcpu=i686 -pipe -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o .libs/mysql mysql.o readline.o sql_string.o completion_hash.o -lreadline -lncurses -lstdc++ ../libmysql/.libs/libmysqlclient.so -L/usr/lib -lz -lcrypt -lnsl -lm -lssl -lcrypto -Wl,--rpath -Wl,/usr/lib/mysql /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/libstdc++.so: undefined reference to `_Unwind_Resume_or_Rethrow@GCC_3.3' collect2: ld returned 1 exit status make[2]: *** [mysqladmin] Error 1 make[2]: *** Waiting for unfinished jobs.... creating mysql make[2]: Leaving directory `/var/tmp/portage/mysql-4.0.15/work/mysql-4.0.15/client' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mysql-4.0.15/work/mysql-4.0.15' make: *** [all] Error 2 !!! ERROR: dev-db/mysql-4.0.15 failed. !!! Function src_compile, Line 139, Exitcode 2 !!! compile problem
Just tested with gcc 3.3.1-r4, error still occurs.
This error is very similar to Bug 28802. See there for additional info.
After following the directions in bug 28802, the MySQL build went perfectly.
closing as user reports other fix worked