Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 520722 - dev-db/mysql-workbench-6.1.7 - .../work/mysql-workbench-community-6.1.7-src/library/base/base/string_utilities.h:41:14: error: ‘uint64_t’ is already declared in this scope
Summary: dev-db/mysql-workbench-6.1.7 - .../work/mysql-workbench-community-6.1.7-src/l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Hans de Graaff
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-23 19:45 UTC by Flavio
Modified: 2015-07-12 10:08 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,46.79 KB, text/plain)
2014-08-23 19:46 UTC, Flavio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Flavio 2014-08-23 19:45:06 UTC
Hello, 

I'm trying to emerge dev-db/mysql-workbench-6.1.7 but unable to compile due to the following error:

make[2]: *** [library/base/CMakeFiles/wbbase.dir/util_functions.cpp.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-db/mysql-workbench-6.1.7/work/mysql-workbench-6.1.7_build'
make[1]: *** [library/base/CMakeFiles/wbbase.dir/all] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-db/mysql-workbench-6.1.7/work/mysql-workbench-6.1.7_build'
make: *** [all] Error 2
 * ERROR: dev-db/mysql-workbench-6.1.7::gentoo failed (compile phase):
 *   emake failed

Notice that I've already tried many things like updating python, emerge @preserved-rebuild.
I am facing this issue after updating mysql and performing the following command:
revdep-rebuild --library libmysqlclient.so.16

Please find attached the complete build log.

Reproducible: Always

Steps to Reproduce:
1. emerge dev-db/mysql-workbench-6.1.7
2.
3.
Comment 1 Flavio 2014-08-23 19:46:38 UTC
Created attachment 383480 [details]
build log

The complete build.log


emerge --info:

Portage 2.2.10 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.19-r1, 3.14.1-gentoo x86_64)
=================================================================
System uname: Linux-3.14.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-2620M_CPU_@_2.70GHz-with-gentoo-2.2
KiB Mem:     8091236 total,    773404 free
KiB Swap:    1048568 total,   1048520 free
Timestamp of tree: Sat, 23 Aug 2014 10:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.7, 3.2.5-r6, 3.3.5-r1
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo local-repo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/maven-bin-3.1/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://mirror.netcologne.de/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="pbzip2"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="3dnow X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dv dvd dvdr dvdread emboss encode exif extensions fam fat fbcon fbsplash ffmpeg firefox flac fortran gdbm gif gimp gimpprint gpm gtk iconv icu ipv6 ithreads jfs john jpeg kde lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mpeg2 mpeg4 mplayer multilib ncurses nfs nls nptl nptlonly nsplugin ntfs ntlm nvidia ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 rar readline real samba sdl semantic-desktop sensord session spell sse sse2 ssl startup-notification stream svg tcpd tetex threads tiff toolbar truetype udev udisks unicode upower usb utempter vorbis wifi win32codecs wxwidgets x264 xcb xchatdccserver xml xprint xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel usb-audio" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 2 A.J. 2014-08-25 19:07:22 UTC
This is happening on the stable version too (5.2.47).  I also came across it when rebuilding libraries after mysql's upgrade.

In file included from sqlstring.cpp:23:0:
base/string_utilities.h:34:14: error: ‘int64_t’ is already declared in this scope
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/stdint.h:3:0,
                 from /usr/include/inttypes.h:27,
                 from sqlstring.cpp:26:
/usr/include/stdint.h:55:27: error: redeclaration of ‘typedef long unsigned int uint64_t’
In file included from base/sqlstring.h:24:0,
                 from sqlstring.cpp:22:
/usr/include/boost/cstdint.hpp:311:42: note: previous declaration ‘typedef boost::ulong_long_type boost::uint64_t’
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/stdint.h:3:0,
                 from /usr/include/inttypes.h:27,
                 from sqlstring.cpp:26:
/usr/include/stdint.h:55:27: error: redeclaration of ‘typedef long unsigned int uint64_t’
In file included from base/sqlstring.h:24:0,
                 from sqlstring.cpp:22:
/usr/include/boost/cstdint.hpp:311:42: note: previous declaration ‘typedef boost::ulong_long_type boost::uint64_t’
sqlstring.cpp: In member function ‘base::sqlstring& base::sqlstring::operator<<(boost::int64_t)’:
sqlstring.cpp:112:29: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘boost::int64_t {aka long long int}’ [-Wformat]
Comment 3 Matthias Krebs 2014-08-31 14:22:48 UTC
I had the same problem on amd64 with mysql-workbench-6.1.7

What worked:

- upgrade to unstable boost (1.55.0-r2) / boost-build (1.55.0)

--> this fixes the original error, but produces this error while linking:

'../../backend/wbpublic/libwbpublic.so: undefined reference to `sqlite::command::operator%(long)''

- upgrade to unstable sqlite (3.8.6)

--> same linking error

- emerge -v1 dev-db/vsqlite++

--> '>>> dev-db/mysql-workbench-6.1.7 merged'
Comment 4 Nikolay Kichukov 2014-09-04 06:20:27 UTC
Hi, had the same issue here.

Thanks to the proposed solution of Matthias Krebs I managed to successfully emerge mysql-workbench-6.1.7.

I installed unstable versions of:

dev-libs/boost ~amd64
dev-util/boost-build ~amd64
dev-db/mysql-connector-c++ ~amd64

Then it compiled and installed.

Cheers,
-Nikolay
Comment 5 Leho Kraav (:macmaN @lkraav) 2015-01-25 11:59:01 UTC
mysql-connector-c++-1.1.3 (latest) alone definitely doesn't help building mysql-workbench-6.2.3.

Upgrading boost from 1.52 -> 1.55 stable now and retrying.
Comment 6 Hans de Graaff gentoo-dev Security 2015-07-12 10:08:44 UTC
For mysql-workbench 6.3.4 I've added a minimum boost dependency of 1.55.0. Hopefully this should avoid this issue in the future.