=app-office/libreoffice-4.2.6.3 configure can't find mysql-connector-c++ >= 1.06 despite the fact that I have =-dev-db/mysql-connector-c++-1.1.1 installed. I will attach a build log and environment. Reproducible: Always
Created attachment 385326 [details] build.log
Created attachment 385328 [details] environment
We saw this same issue on a recent @world update. Also, directly after the failure, the package stated the following, but didn't repeat it at the bottom of the package messages: ...<snip>... checking MySQL Connector/C++... external checking mysql_driver.h usability... yes checking mysql_driver.h presence... yes checking for mysql_driver.h... yes checking for main in -lmysqlcppconn... yes checking version... configure: error: not suitable, we need >= 1.0.6 !!! Please attach the following file when seeking support: !!! /var/tmp/portage/app-office/libreoffice-4.2.6.3/work/libreoffice-4.2.6.3/config.log * ERROR: app-office/libreoffice-4.2.6.3::gentoo failed (configure phase): * econf failed * ...<snip>... So, I am attaching our config.log as well.
Created attachment 385450 [details] config.log of failed LibreOffice build
The same here. It's in my @world for a week now. Exact same error. I also have dev-db/mysql-connector-c++-1.1.1 installed. ---- snap ---- checking whether to build the MariaDB/MySQL Connector extension... yes checking which MariaDB to use... external checking for mysql_config... /usr/bin/mysql_config checking MariaDB version... OK checking for MariaDB Client library... includes '-I/usr/include/mysql -DNDEBUG', libraries '-L/usr/lib64 -lmysqlclient_r -lpthread -lz -lm -lssl -lcrypto -ldl' checking whether to bundle the MySQL/MariaDB client library... no checking MySQL Connector/C++... external checking mysql_driver.h usability... yes checking mysql_driver.h presence... yes checking for mysql_driver.h... yes checking for main in -lmysqlcppconn... yes checking version... configure: error: not suitable, we need >= 1.0.6 !!! Please attach the following file when seeking support: !!! /var/tmp/portage/app-office/libreoffice-4.2.6.3/work/libreoffice-4.2.6.3/config.log * ERROR: app-office/libreoffice-4.2.6.3::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 93: Called src_configure * environment, line 7199: Called econf '--docdir=/usr/share/doc/libreoffice-4.2.6.3/' '--with-system-headers' '--with-system-libs' '--with-system-jars' '--with-system-dicts' '--enable-cairo-canvas' '--enable-graphite' '--enable-largefile' '--enable-mergelibs' '--enable-python=system' '--enable-randr' '--enable-randr-link' '--enable-release-build' '--disable-hardlink-deliver' '--disable-ccache' '--disable-crashdump' '--disable-dependency-tracking' '--disable-epm' '--disable-fetch-external' '--disable-gnome-vfs' '--disable-gstreamer-0-10' '--disable-report-builder' '--disable-kdeab' '--disable-kde' '--disable-online-update' '--disable-systray' '--with-alloc=jemalloc' '--with-build-version=Gentoo official package' '--enable-extension-integration' '--with-external-dict-dir=/usr/share/myspell' '--with-external-hyph-dir=/usr/share/myspell' '--with-external-thes-dir=/usr/share/myspell' '--with-external-tar=/var/tmp/portage/app-office/libreoffice-4.2.6.3/distdir' '--with-lang=' '--with-parallelism=7' '--with-system-ucpp' '--with-vendor=Gentoo Foundation' '--with-x' '--without-afms' '--without-fonts' '--without-myspell-dicts' '--without-help' '--with-helppack-integration' '--without-sun-templates' '--enable-sdremote-bluetooth' '--enable-cups' '--disable-debug' '--enable-dbus' '--disable-evolution2' '--disable-firebird-sdbc' '--disable-gconf' '--disable-gio' '--disable-lockdown' '--enable-gstreamer' '--enable-gtk' '--disable-gtk3' '--enable-kde4' '--enable-ext-mariadb-connector' '--disable-odk' '--enable-opengl' '--disable-postgresql-sdbc' '--disable-telepathy' '--enable-vba' '--enable-vlc' '--enable-neon' '--with-java' '--with-system-mysql-cppconn' '--without-doxygen' '--without-system-sane' '--without-system-vigra' '--without-junit' '--without-system-hsqldb' '--with-ant-home=/usr/share/ant' '--with-jdk-home=/usr/lib64/icedtea7' '--with-jvm-path=/usr/lib/' '--with-beanshell-jar=/usr/share/bsh/lib/bsh.jar' '--with-rhino-jar=/usr/share/rhino-1.6/lib/js.jar' '--with-commons-codec-jar=/usr/share/commons-codec/lib/commons-codec.jar' '--with-commons-httpclient-jar=/usr/share/commons-httpclient-3/lib/commons-httpclient.jar' '--with-commons-lang-jar=/usr/share/commons-lang-2.1/lib/commons-lang.jar' '--with-commons-logging-jar=/usr/share/commons-logging/lib/commons-logging.jar' '--with-servlet-api-jar=/usr/share/tomcat-servlet-api-3.0/lib/servlet-api.jar' '--enable-ext-nlpsolver' '--enable-scripting-beanshell' '--enable-scripting-javascript' '--enable-ext-wiki-publisher' * phase-helpers.sh, line 584: Called die
I just hit this myself and figured it out. Let me guess, you have also updated MySQL recently? :) dev-db/mysql-connector-c++ is one of the few packages broken after the MySQL update (as also dev-qt/qtsql). You'll need to run revdep-rebuild as detailed in the news item. Afterwards libreoffice should build fine. --------------- huettel@pinacolada ~ $ eselect news read 36 2014-08-20-mysql_5_5_upgrade_procedures Title MySQL 5.5 upgrade procedures Author Brian Evans <grknight@gentoo.org> Posted 2014-08-20 Revision 1 MySQL 5.5 is now stable across all arches. The upgrade process will require you to rebuild everything linked to libmysqlclient.so.16 and libmysqlclient_r.so.16. This may be done for you by portage with 'emerge @preserved-rebuild'. A small number of libraries may not be automatically rebuilt against the new MySQL libraries using preserved-rebuild. If you have difficulties with packages not finding the new libraries, install app-portage/gentoolkit and run: # revdep-rebuild --library libmysqlclient.so.16 # revdep-rebuild --library libmysqlclient_r.so.16 The official upgrade documentation is available here: http://dev.mysql.com/doc/refman/5.5/en/upgrading.html Please be sure to review the upgrade document for any possible actions necessary before and after the upgrade. This includes running mysql_upgrade after the upgrade completion. Due to security flaws, MySQL 5.1 will be hard masked in 30 days after this news item is posted. It will remain masked in the tree for 3 months before removal.
(In reply to Andreas K. Hüttel from comment #6) > I just hit this myself and figured it out. Let me guess, you have also > updated MySQL recently? :) > > dev-db/mysql-connector-c++ is one of the few packages broken after the MySQL > update (as also dev-qt/qtsql). You'll need to run revdep-rebuild as detailed > in the news item. Afterwards libreoffice should build fine. > > --------------- > > huettel@pinacolada ~ $ eselect news read 36 > 2014-08-20-mysql_5_5_upgrade_procedures > Title MySQL 5.5 upgrade procedures > Author Brian Evans <grknight@gentoo.org> > Posted 2014-08-20 > Revision 1 > > MySQL 5.5 is now stable across all arches. The upgrade process > will require you to rebuild everything linked to > libmysqlclient.so.16 and libmysqlclient_r.so.16. > > This may be done for you by portage with 'emerge @preserved-rebuild'. > > A small number of libraries may not be automatically rebuilt against > the new MySQL libraries using preserved-rebuild. If you have > difficulties with packages not finding the new libraries, install > app-portage/gentoolkit and run: > # revdep-rebuild --library libmysqlclient.so.16 > # revdep-rebuild --library libmysqlclient_r.so.16 > > The official upgrade documentation is available here: > http://dev.mysql.com/doc/refman/5.5/en/upgrading.html > > Please be sure to review the upgrade document for any possible actions > necessary before and after the upgrade. This includes running > mysql_upgrade after the upgrade completion. > > Due to security flaws, MySQL 5.1 will be hard masked in 30 days after > this news item is posted. It will remain masked in the tree for > 3 months before removal. Why doesn't emerge -a @preserved-rebuild work for this? I thought revdep-rebuild wasn't needed anymore.
While following the advice of #6 the emerge of dev-db/myodbc-5.1.6 failed.
(In reply to Rüdiger from comment #8) > While following the advice of #6 the emerge of dev-db/myodbc-5.1.6 failed. Likely bug 442322 ... as you can see in bug 513646 dev-db/myodbc-5.2.7 will be stabilized as soon as arch teams get around to it (they have rather long queues at the moment).
Thanks Andreas K. Hüttel, rebuilding dev-db/mysql-connector-c++ worked. Why didn't I think of that?!? Anyway, emerge @preserved-rebuild didn't show anything that needed rebuilding, also I just noticed that I had changed my routine: since very emerge will show a message if rebuilding is required - which in this case it didn't - I normally only run emerge @preserved-rebuild when I get this message.