Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 528868 - dev-db/mysql-workbench-6.2.3 w/ sci-libs/gdal[mdb]: No such file or directory #include <gdal/ogr_geometry.h>
Summary: dev-db/mysql-workbench-6.2.3 w/ sci-libs/gdal[mdb]: No such file or directory...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hans de Graaff
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-10 18:56 UTC by Alex Barker
Modified: 2019-07-23 08:48 UTC (History)
1 user (show)

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


Attachments
build.log.bz2 (build.log.bz2,18.92 KB, application/x-bzip)
2014-11-10 18:58 UTC, Alex Barker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Barker 2014-11-10 18:56:10 UTC
The latest and greatest from Oracles MySQL team is broken during the compile process.  Build log attached.

Reproducible: Always

Steps to Reproduce:
1. emerge -av =dev-db/mysql-workbench-6.2.3

Actual Results:  
/var/tmp/portage/dev-db/mysql-workbench-6.2.3/work/mysql-workbench-community-6.2.3-src/backend/wbpublic/grtui/geom_draw_box.h:25:31: fatal error: gdal/ogr_geometry.h: No such file or directory
 #include <gdal/ogr_geometry.h>
                               ^
compilation terminated.
backend/wbpublic/CMakeFiles/wbpublic.dir/build.make:2975: recipe for target 'backend/wbpublic/CMakeFiles/wbpublic.dir/grtui/binary_data_editor.cpp.o' failed



Portage 2.2.14 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.3, glibc-2.19-r1, 3.17.1-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.17.1-gentoo-r1-x86_64-Intel-R-_Xeon-R-_CPU_E5-1650_0_@_3.20GHz-with-gentoo-2.2
KiB Mem:    32924496 total,   5368652 free
KiB Swap:    4194300 total,   4194140 free
Timestamp of tree: Mon, 10 Nov 2014 16:30:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.3_p30-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r2
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.3
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo java luman tox-overlay proaudio local_overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="${CONFIG_PROTECT} /etc /etc/idea/conf /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.1/conf /var/lib/hsqldb"
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.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=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://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j14"
PKGDIR="/usr/portage/packages"
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="/var/lib/layman/java /var/lib/layman/luman /var/lib/layman/tox-overlay /var/lib/layman/pro-audio /usr/local/portage"
USE="X a52 aac acl acpi alsa amd64 avx berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups custom-cflags cxx dbus declarative dri dts dvd dvdr embedded emboss encode exif fam ffmpeg firefox flac fortran gd gdbm gif git glamor gpm gtk iconv icu java jpeg kde kipi lcms ldap libnotify lm_sensors lzma lzo mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl nsplugin offensive ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qt3support qt4 rar readline sdl session spell sqlite sse sse2 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification svg svn tcpd threads tiff truetype udev udisks unicode upower usb vdpau vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zip zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics harness ide java mobility nb php profiler platform webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon" 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, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Alex Barker 2014-11-10 18:58:36 UTC
Created attachment 389042 [details]
build.log.bz2
Comment 2 Hans de Graaff gentoo-dev Security 2014-11-10 19:27:34 UTC
Which version of sci-libs/gdal do you have installed, and with which USE flags?
Comment 3 Tamas Jantvik 2014-11-11 11:56:52 UTC
I get to the link phase, but then it dies.

/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libjvm.so, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libgdal.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libgdal.so: undefined reference to `JNI_CreateJavaVM@SUNWprivate_1.1'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libgdal.so: undefined reference to `JNI_GetCreatedJavaVMs@SUNWprivate_1.1'

I have:
# java-config -L
The following VMs are available for generation-2:
1)      Sun 32bit JRE 1.7.0.72 [emul-linux-x86-java-1.7]
2)      IcedTea JDK 6.1.13.5 [icedtea-6]
3)      IcedTea JDK 7.2.5.3 [icedtea-7]
*)      Oracle JDK 1.7.0.72 [oracle-jdk-bin-1.7]
5)      Oracle JRE 1.7.0.71 [oracle-jre-bin-1.7]
6)      Sun JDK 1.6.0.45 [sun-jdk-1.6]
7)      Sun JRE 1.6.0.45 [sun-jre-bin-1.6]

# eix sci-libs/gdal
[I] sci-libs/gdal
     Available versions:  1.9.2 (~)1.10.0-r1 1.10.1 (~)1.11.1-r1 {armadillo +aux_xml curl debug doc ecwj2k fits geos gif gml hdf5 java jpeg jpeg2k mdb mysql netcdf odbc ogdi opencl pdf perl png postgres python ruby spatialite sqlite threads xls ELIBC="FreeBSD" PYTHON_TARGETS="python2_7 python3_2 python3_3"}
     Installed versions:  1.11.1-r1(12:22:02 2014-11-11)(armadillo aux_xml curl ecwj2k fits geos gif gml hdf5 java jpeg jpeg2k mdb mysql netcdf odbc ogdi opencl pdf perl png postgres python ruby spatialite sqlite threads xls -debug -doc ELIBC="-FreeBSD" PYTHON_TARGETS="python2_7 python3_3 -python3_2")
     Homepage:            http://www.gdal.org/
     Description:         Translator library for raster geospatial data formats (includes OGR support)
Comment 4 Alex Barker 2014-11-11 17:38:40 UTC
(In reply to Hans de Graaff from comment #2)
> Which version of sci-libs/gdal do you have installed, and with which USE
> flags?

[I] sci-libs/gdal
     Available versions:  1.9.2 (~)1.10.0-r1 1.10.1 (~)1.11.1-r1 {armadillo +aux_xml curl debug doc ecwj2k fits geos gif gml hdf5 java jpeg jpeg2k mdb mysql netcdf odbc ogdi opencl pdf perl png postgres python ruby spatialite sqlite threads xls ELIBC="FreeBSD" PYTHON_TARGETS="python2_7 python3_2 python3_3"}
     Installed versions:  1.11.1-r1(04:15:34 PM 11/10/2014)(aux_xml gif java jpeg pdf png sqlite threads -armadillo -curl -debug -doc -ecwj2k -fits -geos -gml -hdf5 -jpeg2k -mdb -mysql -netcdf -odbc -ogdi -opencl -perl -postgres -python -ruby -spatialite -xls ELIBC="-FreeBSD" PYTHON_TARGETS="python2_7 python3_3 -python3_2")
     Homepage:            http://www.gdal.org/
     Description:         Translator library for raster geospatial data formats (includes OGR support)
Comment 5 Tamas Jantvik 2014-11-13 12:15:40 UTC
With gdal's use flags set to "armadillo aux_xml curl ecwj2k fits geos gif gml hdf5 jpeg jpeg2k mysql netcdf odbc ogdi opencl pdf perl png postgres python spatialite sqlite threads xls -debug -doc -java -mdb -ruby" I managed to get workbench installed. Surely you don't need all these. But, if the java flag is enabled I get a failure during the workbench compilation.
Comment 6 Hans de Graaff gentoo-dev Security 2014-12-28 20:41:14 UTC
I've done a bit more testing and it turns out that the culprit for the compilation errors is actually the mdb USE flag on gdal. I've changed the dependency on mysql-workbench to sci-libs/gdal[-mdb] for now.

I also think this is actually a gdal bug. When compiled with mdb, the resulting gdal.so file depends on jvm.so, but 'pkg-config gdal --libs' does not show this. Cc'ing gdal maintainer.
Comment 7 Andreas Sturmlechner gentoo-dev 2017-07-19 19:08:57 UTC
Can you reproduce the build failure with >=gdal-2.0.2[mdb]?
Comment 8 Hans de Graaff gentoo-dev Security 2017-07-20 07:52:32 UTC
(In reply to Andreas Sturmlechner from comment #7)
> Can you reproduce the build failure with >=gdal-2.0.2[mdb]?

Yes. 'pkg-config gdal --libs' still doesn't include -ljvm and consequently the link phase fails.
Comment 9 Larry the Git Cow gentoo-dev 2019-07-23 08:47:34 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f54017f5cfbe36e77472496159297eabc85991b

commit 1f54017f5cfbe36e77472496159297eabc85991b
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2019-07-23 08:41:46 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2019-07-23 08:42:05 +0000

    dev-db/mysql-workbench: allow USE=mdb with gdal again
    
    The issue in gdal that prevented this appears to have been fixed.
    
    Bug: https://bugs.gentoo.org/528868
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>
    Package-Manager: Portage-2.3.66, Repoman-2.3.11

 dev-db/mysql-workbench/mysql-workbench-8.0.17.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 10 Hans de Graaff gentoo-dev Security 2019-07-23 08:48:17 UTC
This appears to be fixed in gdal since gdal.so no longer links against jvm.so.