Well I'm sorry to repost, but have you verified the fix from #16480? The compiler call in question is a g++ one, so you have to add -DHAVE_ERRNO_AS_DEFINE=1 to CXXFLAGS. I tried adding it only to CXXFLAGS, but found out that you have to add it to CFLAGS as well. So here's the actual fix: + #glibc-2.3.2_pre fix; bug #16496 + export CFLAGS="${CFLAGS} -DHAVE_ERRNO_AS_DEFINE=1" + export CXXFLAGS="${CXXFLAGS} -DHAVE_ERRNO_AS_DEFINE=1"
yup, you're right. learned this after adding the first fix ;-) will fix it again shortly.
How to do this when standing at the prompt?
I'm getting an error trying to compile it too: g++ -O3 -DDBUG_OFF -march=i586 -m3dnow -pipe -O3 -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 -lz -lcrypt -lnsl -lm -Wl,--rpath -Wl,/usr/lib/mysql mysql.o(.text+0x19bf): In function `com_source(String*, char*)': : undefined reference to `errno' collect2: ld returned 1 exit status make[2]: *** [mysql] Error 1 make[2]: Leaving directory `/tmp/portage/mysql-3.23.55/work/mysql-3.23.55/client' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/portage/mysql-3.23.55/work/mysql-3.23.55' make: *** [all] Error 2 !!! ERROR: dev-db/mysql-3.23.55 failed. !!! Function src_compile, Line 105, Exitcode 2 !!! compile problem
Same error here. S
Same error here. Sébastien
For a quick fix, edit /usr/portage/devel-db/mysql/mysql-3.23.55.ebuild, search the line export CFLAGS="${CFLAGS} -DHAVE_ERRNO_AS_DEFINE=1" and directly beneath it add export CXXFLAGS="${CXXFLAGS} -DHAVE_ERRNO_AS_DEFINE=1" So that it looks like export CFLAGS="${CFLAGS} -DHAVE_ERRNO_AS_DEFINE=1" export CXXFLAGS="${CXXFLAGS} -DHAVE_ERRNO_AS_DEFINE=1" DO NOT RSYNC! Changes will be lost then. Instead, just emerge mysql :)
I'll fix this today, with some other cleanups as well ;-)
Well, the problem is not mysql, it is the new glibc that has changed. Try and search for glibc in the bug database, you will find several topics about it.
sorry about that i ensured its fixed properly now.