Summary: | mysql 3.23.55 compile error ("undefined reference to 'errno'", probably glibc 2.3.2pre) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Christian Rubbert <gentoo> |
Component: | Current packages | Assignee: | Donny Davies (RETIRED) <woodchip> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 1.4_rc2 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Christian Rubbert
2003-02-27 14:55:35 UTC
Problem exists no more after frest system update, bug can be closed. I have compiled mysql with glibc-2.3.2pre My solution: is add "-DHAVE_ERRNO_AS_DEFINE=1" in CFLAGS, in /etc/make.conf my CFLAGS is: CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -DHAVE_ERRNO_AS_DEFINE=1" and compile fine, mysql and mysqlcc. ~# qpkg -I -v glibc sys-libs/glibc-2.3.2_pre1 * ~# qpkg -I -v mysql dev-db/mysqlcc-0.8.7 * dev-db/mysql-3.23.55 * And, I want to know, if "-DHAVE_ERRNO_AS_DEFINE=1" is the correct form, like mysql does, ex: #ifdef HAVE_ERRNO_AS_DEFINE #include <errno.h> /* errno is a define */ #else extern int errno; /* declare errno */ #endif I got the same error when compileing mysql 3.2.55 or 4.0.10. Also with ucspi-tcp. I tried to update everyting (emerge -u world) but it didn't fix it. when I added the -DHAVE_ERRNO_AS_DEFINE=1 I could compile mysql (tried it with 4.0.10). my emerge info is: Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2_pre1-r0) ================================================================= System uname: 2.4.20-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="oss 3dnow apm arts avi cups encode gif gtk imlib jpeg kde gnome libg++ libwww mikmod motif mpeg ncurses oggvorbis opengl pdflib png qt qtmt quicktime sdl spell svga truetype X xml2 xmms xv gdbm berkdb slang readline java gpm canna cjk crypt freewnn ipv6 mmx nls pam perl python ssl tcpd zlib x86 mysql postgres" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O3 -pipe -DHAVE_ERRNO_AS_DEFINE=1" CXXFLAGS="-march=pentium4 -O3 -pipe -DHAVE_ERRNO_AS_DEFINE=1" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache" |