In file included from ../util/MYODBCUtil.h:25, from connect.c:47: ../util/../driver/myconf.h:117:1: warning: "PACKAGE" redefined In file included from /usr/include/mysql/my_global.h:70, from myodbc3.h:65, from connect.c:41: /usr/include/mysql/my_config.h:814:1: warning: this is the location of the previous definition In file included from ../util/MYODBCUtil.h:25, from connect.c:47: ../util/../driver/myconf.h:174:1: warning: "VERSION" redefined In file included from /usr/include/mysql/my_global.h:70, from myodbc3.h:65, from connect.c:41: /usr/include/mysql/my_config.h:862:1: warning: this is the location of the previous definition connect.c: In function `get_client_flag': connect.c:145: error: `CLIENT_MULTI_RESULTS' undeclared (first use in this function) connect.c:145: error: (Each undeclared identifier is reported only once connect.c:145: error: for each function it appears in.) make[2]: *** [connect.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/myodbc-3.51.12/work/mysql-connector-odbc-3.51.12/driver' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/myodbc-3.51.12/work/mysql-connector-odbc-3.51.12/driver' make: *** [all-recursive] Error 1 !!! ERROR: dev-db/myodbc-3.51.12 failed. Call stack: ebuild.sh, line 1545: Called dyn_compile ebuild.sh, line 940: Called src_compile myodbc-3.51.12.ebuild, line 46: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. --- # emerge --info Portage 2.1.1_pre2-r1 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r6-amd64 i686) ================================================================= System uname: 2.6.16-gentoo-r6-amd64 i686 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.14 ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r2 dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~maint ~overlay" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fforce-addr -msse2 -msse3" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/glftpd/etc /var/bind /var/www/localhost/htdocs" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fforce-addr -msse2 -msse3" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="autoconfig buildpkg ccache collision-protect confcache distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo ftp://ftp.fi.muni.cz/pub/linux/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--sort-common" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage//packages/x86/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage/" PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/gentoo-php-overlay/experimental /usr/local/overlays/gentoo-php-overlay/testing /usr/local/overlays/gentoo-webapps-overlay/experimental" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow 3dnowext acl acpi apache2 apm bash-completion berkdb bzip2 crypt curl dlloader expat fam firebird fortran gd gdbm geoip gif gmp hardened idn imap imlib innodb java jpeg junit libg++ libwww maildir mmx mssql mysql ncurses nls nptl nptlonly odbc offensive pam pcre pdflib perl php pic png pnp postgres python readline sasl skey slang snmp socks5 spell sqlite sse sse2 ssl tcpd tiff truetype udev unicode userlocales x86 xinetd xml xml2 xorg zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_en userland_GNU" Unset: CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Same problem here. amd64 too.
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -O3 -DDBUG_OFF -O2 -march=pentium-m -pipe -fomit-frame-pointer -I/usr/include/mysql -march=pentium-m -pipe -fomit-frame-pointer -DHAVE_ERRNO_AS_DEFINE=1 -MT connect.lo -MD -MP -MF .deps/connect.Tpo -c connect.c -fPIC -DPIC -o .libs/connect.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -O3 -DDBUG_OFF -O2 -march=pentium-m -pipe -fomit-frame-pointer -I/usr/include/mysql -march=pentium-m -pipe -fomit-frame-pointer -DHAVE_ERRNO_AS_DEFINE=1 -MT catalog.lo -MD -MP -MF .deps/catalog.Tpo -c catalog.c -fPIC -DPIC -o .libs/catalog.o In file included from ../util/MYODBCUtil.h:25, from connect.c:47: ../util/../driver/myconf.h:117:1: warning: "PACKAGE" redefined In file included from /usr/include/mysql/my_global.h:70, from myodbc3.h:65, from connect.c:41: /usr/include/mysql/my_config.h:982:1: warning: this is the location of the previous definition In file included from ../util/MYODBCUtil.h:25, from connect.c:47: ../util/../driver/myconf.h:174:1: warning: "VERSION" redefined In file included from /usr/include/mysql/my_global.h:70, from myodbc3.h:65, from connect.c:41: /usr/include/mysql/my_config.h:1113:1: warning: this is the location of the previous definition connect.c: In function `get_client_flag': connect.c:145: error: `CLIENT_MULTI_RESULTS' undeclared (first use in this function) connect.c:145: error: (Each undeclared identifier is reported only once connect.c:145: error: for each function it appears in.) make[2]: *** [connect.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -O3 -DDBUG_OFF -O2 -march=pentium-m -pipe -fomit-frame-pointer -I/usr/include/mysql -march=pentium-m -pipe -fomit-frame-pointer -DHAVE_ERRNO_AS_DEFINE=1 -MT catalog.lo -MD -MP -MF .deps/catalog.Tpo -c catalog.c -o catalog.o >/dev/null 2>&1 make[2]: Leaving directory `/var/tmp/portage/myodbc-3.51.12/work/mysql-connector-odbc-3.51.12/driver' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/myodbc-3.51.12/work/mysql-connector-odbc-3.51.12/driver' make: *** [all-recursive] Error 1 !!! ERROR: dev-db/myodbc-3.51.12 failed. Call stack: ebuild.sh, line 1531: Called dyn_compile ebuild.sh, line 931: Called src_compile myodbc-3.51.12.ebuild, line 46: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. emerge --info Portage 2.1_rc3-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.16-gentoo-r6 i686) ================================================================= System uname: 2.6.16-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1.73GHz Gentoo Base System version 1.12.0 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/gcc-config: 1.3.13-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.ngi.it http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo " MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/gentopia" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X acpi alsa apache2 artworkextra asf avi bash-completion beagle berkdb bitmap-fonts bluetooth cairo cdr cli crypt cups dbus dlloader dri dv dvd dvdr dvdread eds emboss encode esd evolution exif ffmpeg foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal ieee1394 imlib ipv6 isdnlog java jpeg kde kerberos ldap libg++ libwww lirc mad mikmod mmx mono motif mozilla mp3 mpeg mysql nautilus ncurses nfs nls no-old-linux nptl nptlonly nsplugin ogg opengl oss pam pcre pdflib perl png postgres postgresql ppds pppd python qt qt3 qt4 quicktime readline reflection samba sasl sdl session spell spl sse ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode vorbis win32codecs xml xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics input_devices_evdev kernel_linux userland_GNU video_cards_fglrx video_cards_radeon" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS same error here (~x86) using mysql-4.0.27
I was able to get the install to complete by modifying /usr/include/mysql/my_config.h slightly. Essentially find the line that states: #ifdef HAVE_ATOMIC_ADD and place #undef HAVE_ATOMIC_ADD above it, making sure that it does not try to include <asm/atomic.h>. This worked for me. Does it help anyone?
i have the same problem (amd64 too) ... slightly different error output though: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -O3 -DDBUG_OFF -march=k8 -pipe -O2 -I/usr/include/mysql -DHAVE_ERRNO_AS_DEFINE=1 -MT connect.lo -MD -MP -MF .deps/connect.Tpo -c connect.c -fPIC -DPIC -o .libs/connect.o In file included from myodbc3.h:65, from catalog.c:49: /usr/include/mysql/my_global.h:361:24: error: asm/atomic.h: No such file or directory In file included from myodbc3.h:65, from connect.c:41: /usr/include/mysql/my_global.h:361:24: error: asm/atomic.h: No such file or directory In file included from ../util/MYODBCUtil.h:25, from connect.c:47: ../util/../driver/myconf.h:117:1: warning: "PACKAGE" redefined In file included from /usr/include/mysql/my_global.h:83, from myodbc3.h:65, from connect.c:41: /usr/include/mysql/my_config.h:921:1: warning: this is the location of the previous definition In file included from ../util/MYODBCUtil.h:25, from connect.c:47: ../util/../driver/myconf.h:174:1: warning: "VERSION" redefined In file included from /usr/include/mysql/my_global.h:83, from myodbc3.h:65, from connect.c:41: /usr/include/mysql/my_config.h:1049:1: warning: this is the location of the previous definition make[2]: *** [catalog.lo] Fehler 1
groepaz: are you still on mysql4.0? Move up to 4.1 at least (5.0.54 will be stable in a week or so if you want that).
i am using mysql 5.0.44-r2 (didnt realise this bug is 4.0 related ...)
that really should not have turned up under 5.0.x. Give 5.0.54 a spin for me please?
(In reply to comment #4) > /usr/include/mysql/my_global.h:361:24: error: asm/atomic.h: No such file or > directory No, that's not the same problem, it's a dupe of Bug 163151 (and off-topic here). This bug is about mysql-4.0.x incompatibility only.
oh, sorry. thanks for pointing me to the other bug, the solution given their worked for me afterall.
Looks pretty much like WONTFIX.