Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 231983

Summary: dev-db/myodbc-3.51.12 fails to build due to wrong includes
Product: Gentoo Linux Reporter: Patrizio Bassi <patrizio.bassi>
Component: New packagesAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: 2008.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Patrizio Bassi 2008-07-16 17:01:06 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -O3 -DDBUG_OFF -O3 -pipe -mtune=core2 -march=core2 -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse -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 dll.c:34:
/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:979: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:1110:1: warning: this is the location of the previous definition
make[2]: *** [dll.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [connect.lo] Error 1
In file included from myodbc3.h:65,
                 from cursor.c:44:
/usr/include/mysql/my_global.h:361:24: error: asm/atomic.h: No such file or directory
make[2]: *** [catalog.lo] Error 1
make[2]: *** [cursor.lo] Error 1
make[2]: Leaving directory `/mnt/Dati/Gentoo/tmp/portage/dev-db/myodbc-3.51.12/work/mysql-connector-odbc-3.51.12/driver'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/mnt/Dati/Gentoo/tmp/portage/dev-db/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.

Portage 2.2_rc1 (default/linux/amd64/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25.7 x86_64)
=================================================================
System uname: Linux-2.6.25.7-x86_64-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-glibc2.2.5
Timestamp of tree: Wed, 16 Jul 2008 15:15:02 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -mtune=core2 -march=core2 -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/config /var/lib/hsqldb /var/run/dspam"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -pipe -mtune=core2 -march=core2 -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="39"
LC_ALL="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="it"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/Dati/Gentoo/tmp/"
PORTDIR="/mnt/Dati/Gentoo/portage/"
PORTDIR_OVERLAY="/usr/local/portage/myportage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="64bit 7zip X X509 Xaw3d a52 aac aalib accessibility ace acl acpi activefilter addbookmarks adns aiglx aio alias alsa amd amd64 amr amrr amuled ao aoss apache2 arj asf aspnet2 async atk audacious audiofile authfile automount autoreplace bash-completion berkdb bidi binary-drivers bittorrent blas bootsplash branding browserplugin bzip2 cairo calendar caps cdda cddb cdio cdparanoia cdr cgi charconv chardet chroot ciao clamav clearcase cli client codecs connectionstatus contactnotes corba cracklib crypt cscope css ctype cups curl cvs daemon dar64 dba dbus depth32 dga dhcp dio directfb diskio divx djbfft dmi dri dvd dvdr dvdread edl eds emboss encode esd ethereal evo exif expat extraengine faac faad fam fastbuild ffmpeg fftw firefox flac flash foreign-package fortran ftp gcj gd gdbm geometry ggi gif gimp gimpprint glibc-omitfp glitz glut glx gnokii gnome gnutls gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml h264 hal hddtemp highlight history iconv idea idn imagemagick imap innodb ipod ipv6 irc irda irmc isdnlog jack java java5 javamail javascript jikes jit joystick jpeg jpeg2k junit justify kde kdeenablefinal kdehiddenvisibility kerberos kqemu lame lapack lcd lcms ldap libcaca libclamav libgda libnotify libusb lirc live lm_sensors lua lzo mad mailwrapper matroska md5sum mdb mhash midi mikmod mime mmx mmx2 mmxext mng mono mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer mpm-prefork msn msnextras mudflap multilib musepack mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses neXt network networking ngui nls nntp no_wxgtk1 nobsh nopie nossp noxalan nptl nptlonly nsplugin nv nvidia oav odbc ogg openal opengl openmp openssl operanom2 pam pcre pda pdf pdo pear perl php pmu png pnp postgres ppds pppd pthreads pulseaudio python qemu-fast qhull qt3 qt3support qt4 quicktime quotas readline reflection rrdtool rtc ruby samba sametime scanner sdl server session sftplogging sguil slang slp smp snortsam soap sockets socks5 softmmu softquota spamassassin speex spell spl sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subject-rewrite svg tao tcltk tcpd tetex texteffect tga theora tiff tk tokenizer translator truetype trusted unicode usb userlocales v4l v4l2 vorbis webpresence winpopup wma wmf wmv wsconvert wxwindows x264 xanim xchatdccserver xchattext xcomposite xine xinerama xml xml2 xmlrpc xorg xosd xpm xprint xsl xulrunner xv xvid xvm xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="fbdev vesa vga nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2008-07-17 04:32:38 UTC
Which mysql ebuild do you have installed?
Comment 2 Patrizio Bassi 2008-07-17 07:26:14 UTC
i'm not home so i cannot tell u the exact version but for sure the latest ~amd64 (5.1.x i guess)
Comment 3 Patrizio Bassi 2008-07-17 15:09:54 UTC
i was wrong

this is what i have installed

[ebuild   R   ] dev-db/mysql-5.0.60-r1  USE="berkdb extraengine perl ssl -big-tables -cluster -debug -embedded -latin1 -max-idx-128 -minimal (-selinux) -static" 27,369 kB
Comment 4 Patrizio Bassi 2008-07-26 10:47:43 UTC
found the problem:same as bug #232959

Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-11-01 09:35:44 UTC
rebuild your mysql, this was fixed long ago.