Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 556900 - dev-db/mysql-connector-c++-1.1.3: libmysqlcppconn.so: undefined reference to `mysql_get_option@libmysqlclient_18'
Summary: dev-db/mysql-connector-c++-1.1.3: libmysqlcppconn.so: undefined reference to ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ian Delaney (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-07 05:40 UTC by Alex Barker
Modified: 2015-09-24 03:15 UTC (History)
2 users (show)

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


Attachments
emerge.info (emerge.info,6.43 KB, text/plain)
2015-08-07 05:42 UTC, Alex Barker
Details
build.log (build.log,20.62 KB, text/x-log)
2015-08-07 05:43 UTC, Alex Barker
Details
config.log (config.log,114.49 KB, text/x-log)
2015-08-08 08:31 UTC, Alex Barker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Barker 2015-08-07 05:40:16 UTC
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.4.5.2/work/libreoffice-4.4.5.2/config.log
 * ERROR: app-office/libreoffice-4.4.5.2::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line   93:  Called src_configure
 *             environment, line 7391:  Called econf '--docdir=/usr/share/doc/libreoffice-4.4.5.2/' '--with-system-headers' '--with-system-libs' '--with-system-jars' '--with-system-dicts' '--enable-cairo-canvas' '--enable-graphite' '--enable-largefile' '--enable-mergelibs' '--enable-neon' '--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=system' '--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.4.5.2/distdir' '--with-lang=' '--with-parallelism=10' '--with-system-ucpp' '--with-vendor=Gentoo Foundation' '--with-x' '--without-fonts' '--without-myspell-dicts' '--without-help' '--with-helppack-integration' '--without-sun-templates' '--disable-sdremote-bluetooth' '--disable-coinmp' '--disable-collada' '--enable-cups' '--disable-debug' '--enable-dbus' '--disable-evolution2' '--disable-firebird-sdbc' '--disable-gltf' '--disable-gconf' '--disable-gio' '--disable-lockdown' '--enable-gstreamer-1-0' '--enable-gtk' '--disable-gtk3' '--enable-kde4' '--enable-ext-mariadb-connector' '--disable-odk' '--disable-postgresql-sdbc' '--disable-telepathy' '--disable-vlc' '--without-system-coinmp' '--without-system-opencollada' '--without-system-libgltf' '--without-java' '--with-system-mysql-cppconn' '--without-doxygen' '--without-system-sane' '--without-system-vigra' '--disable-ext-nlpsolver' '--disable-scripting-beanshell' '--disable-scripting-javascript' '--disable-ext-wiki-publisher'
 *        phase-helpers.sh, line  662:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *              die "$@"
 * 
 * If you need support, post the ou

Reproducible: Always
Comment 1 Alex Barker 2015-08-07 05:42:53 UTC
Created attachment 408442 [details]
emerge.info
Comment 2 Alex Barker 2015-08-07 05:43:34 UTC
Created attachment 408444 [details]
build.log
Comment 3 David Kredba 2015-08-07 06:56:39 UTC
Attach please the config.log file.

If you got:

/usr/lib/gcc/x86_64-pc-linux-gnu/5.2.0/../../../../lib64/libmysqlcppconn.so: undefined reference to `mysql_get_option@libmysqlclient_18'

as me, then rebuild of dev-db/mysql-connector-c++ fixes it. Not LO problem in my case.
Comment 4 Alex Barker 2015-08-08 08:31:31 UTC
Created attachment 408520 [details]
config.log

(In reply to David Kredba from comment #3)
> Attach please the config.log file.
> 
> If you got:
> 
> /usr/lib/gcc/x86_64-pc-linux-gnu/5.2.0/../../../../lib64/libmysqlcppconn.so:
> undefined reference to `mysql_get_option@libmysqlclient_18'
> 
> as me, then rebuild of dev-db/mysql-connector-c++ fixes it. Not LO problem
> in my case.

Yah, that seemed to do it... although I am not sure why.
Comment 5 Pacho Ramos gentoo-dev 2015-08-13 10:47:59 UTC
Maybe dev-db/mysql-connector-c++ needs to be rebuilt with mysql updates

Stabilizing a newer version should be enough
Comment 6 Ian Delaney (RETIRED) gentoo-dev 2015-08-18 00:54:50 UTC
This is confusing. The package that failed at configure was  app-office/libreoffice-4.4.5.2.  A rebuild of dev-db/mysql-connector-c++ fixed it.  How does making a new stable fix it?  The version 1.1.3 is already stabled. Does this mean a more recent unstable version was built and emerged? None of this is clear.  A stabilising of the most recent 'might' pull in a working version which to me looks more like it also requires version bordering.  

Also still awaiting first input from h.mth@web.de (geki).
Comment 7 Hanno Zysik (geki) 2015-08-18 06:34:37 UTC
as David Kredba noted in comment 3 already, a rebuilt of the connector against (new) mysql version helps. had a quick look at the ebuilds. you may compare version 1.1.3 and 1.1.6.

1. there needs to be the subslot feature added to the older versions.

2. another thing I noticed. the mysql package changed use flags. the connector needs to depend on mysql[client] or so.

one may take care what is necessary for stable vs testing branch.


I guess I have to open a bug for my retirement as proxy-maintainer.
I do not maintain libreoffice in my overlay anymore.
Comment 8 Ian Delaney (RETIRED) gentoo-dev 2015-09-04 02:23:26 UTC
Well, as of now we consider this package lacking a proxy maintainer.  This doesn't need 'NeedPatch' it needs "NeedMaintainer'. That accomplished, it appears it needs a stable request bug for mysql-connector-c++-1.1.6.
Also dev-db/mysql has an IUSE flag client-libs, not client.

Any takers to substitute the proxy maintainer?
Comment 9 Brian Evans (RETIRED) gentoo-dev 2015-09-17 12:49:16 UTC
(In reply to Hanno Meyer-Thurow (geki) from comment #7)
> as David Kredba noted in comment 3 already, a rebuilt of the connector
> against (new) mysql version helps. had a quick look at the ebuilds. you may
> compare version 1.1.3 and 1.1.6.
> 
> 1. there needs to be the subslot feature added to the older versions.
> 
> 2. another thing I noticed. the mysql package changed use flags. the
> connector needs to depend on mysql[client] or so.
> 

Future versions need to depend on virtual/libmysqlclient.

A message was just added to all providers of virtual/libmysqlclient.
It says that revdep-rebuild will be required when switching between any provider or bad things like this bug happen.
Comment 10 Ian Delaney (RETIRED) gentoo-dev 2015-09-24 03:15:57 UTC
Taking primary ownership but leaving <herd>proxy-maintainers</herd>.

commit a9e71b27518acef0b4970935395ee277d816c215
Author: Ian Delaney <idella4@gentoo.org>
Date:   Thu Sep 24 11:13:07 2015 +0800

    dev-db/mysql-connector-c++: Taking ownership of package
    
    Set sublsots for deps in -1.1.3, update to virtual/libmysqlclient
    in -1.1.6, rm old, closes bug #556900