Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523526 - =app-office/libreoffice-4.2.6.3 - checking for main in -lmysqlcppconn... yes checking version... // configure: error: not suitable, we need >= 1.0.6
Summary: =app-office/libreoffice-4.2.6.3 - checking for main in -lmysqlcppconn... yes ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-23 13:41 UTC by Matthew Schultz
Modified: 2014-09-27 13:10 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,19.43 KB, text/plain)
2014-09-23 13:41 UTC, Matthew Schultz
Details
environment (environment,265.26 KB, text/plain)
2014-09-23 13:42 UTC, Matthew Schultz
Details
config.log of failed LibreOffice build (config.log,127.52 KB, text/plain)
2014-09-25 18:15 UTC, Linear Systems Tech Svcs.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Schultz 2014-09-23 13:41:04 UTC
=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
Comment 1 Matthew Schultz 2014-09-23 13:41:35 UTC
Created attachment 385326 [details]
build.log
Comment 2 Matthew Schultz 2014-09-23 13:42:17 UTC
Created attachment 385328 [details]
environment
Comment 3 Linear Systems Tech Svcs. 2014-09-25 18:11:58 UTC
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.
Comment 4 Linear Systems Tech Svcs. 2014-09-25 18:15:05 UTC
Created attachment 385450 [details]
config.log of failed LibreOffice build
Comment 5 Andreas Thalhammer 2014-09-26 12:06:25 UTC
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
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2014-09-26 21:05:04 UTC
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.
Comment 7 Matthew Schultz 2014-09-26 21:30:18 UTC
(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.
Comment 8 Rüdiger 2014-09-26 22:03:18 UTC
While following the advice of #6 the emerge of dev-db/myodbc-5.1.6 failed.
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2014-09-26 22:14:04 UTC
(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).
Comment 10 Andreas Thalhammer 2014-09-27 13:10:26 UTC
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.