libreoffice configure fails with: checking whether to build the MySQL Connector extension... yes checking for MySQL prerequisites... external MySQL checking for mysql_config... /usr/bin/mysql_config checking MySQL version... OK checking for MySQL Client library... includes -I/usr/include/mysql, libraries -L/usr/lib64/mysql -lmysqlclient -lpthread -lz -lm -lrt -lssl -lcrypto -ldl 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-3.6.4.3/work/libreoffice-core-3.6.4.3/config.log * ERROR: app-office/libreoffice-3.6.4.3 failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 93: Called src_configure * environment, line 9088: Called econf '--docdir=/usr/share/doc/libreoffice-3.6.4.3/' '--with-system-headers' '--with-system-libs' '--with-system-jars' '--with-system-dicts' '--enable-graphite' '--enable-cairo-canvas' '--enable-largefile' '--enable-mergelibs' '--enable-python=system' '--enable-librsvg=system' '--enable-randr' '--enable-randr-link' '--enable-release-build' '--enable-unix-qstart-libpng' '--enable-xmlsec' '--disable-ccache' '--disable-crashdump' '--disable-dependency-tracking' '--disable-epm' '--disable-fetch-external' '--disable-gnome-vfs' '--disable-ext-report-builder' '--disable-kdeab' '--disable-kde' '--disable-ldap' '--disable-mozilla' '--disable-nsplugin' '--disable-online-update' '--disable-pch' '--disable-rpath' '--disable-systray' '--disable-zenity' '--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-3.6.4.3/distdir' '--with-lang=' '--with-max-jobs=5' '--with-num-cpus=5' '--with-unix-wrapper=libreoffice' '--with-vendor=Gentoo Foundation' '--with-x' '--without-afms' '--without-fonts' '--without-myspell-dicts' '--without-stlport' '--without-system-mozilla' '--without-help' '--with-helppack-integration' '--without-sun-templates' '--disable-gtk3' '--disable-binfilter' '--enable-cups' '--enable-dbus' '--disable-evolution2' '--disable-gconf' '--disable-gio' '--disable-lockdown' '--disable-gstreamer' '--enable-gtk' '--disable-kde4' '--enable-ext-mysql-connector' '--disable-odk' '--enable-opengl' '--disable-postgresql-sdbc' '--disable-linkoo' '--enable-vba' '--enable-neon' '--with-java' '--with-system-mysql-cppconn' '--without-doxygen' '--without-system-sane' '--without-system-vigra' '--without-junit' '--without-system-hsqldb' '--without-system-saxon' '--with-ant-home=/usr/share/ant' '--with-jdk-home=/opt/icedtea-bin-6.1.11.5' '--with-java-target-version=1.6' '--with-jvm-path=/usr/lib64/' '--disable-ext-nlpsolver' '--disable-ext-pdfimport' '--enable-ext-presenter-console' '--enable-ext-presenter-minimizer' '--disable-ext-scripting-beanshell' '--disable-ext-scripting-javascript' '--disable-ext-wiki-publisher' # equery belongs libmysqlcppconn.so * Searching for libmysqlcppconn.so ... dev-db/mysql-connector-c++-1.1.0-r1 (/usr/lib64/libmysqlcppconn.so -> libmysqlcppconn.so.5) After upgrade to dev-db/mysql-connector-c++-1.1.1 I got though. I only wonder why I hit this with gcc-4.5.3 # gcc-config -l [1] x86_64-pc-linux-gnu-4.2.4 [2] x86_64-pc-linux-gnu-4.3.6 [3] x86_64-pc-linux-gnu-4.5.3 * [4] x86_64-pc-linux-gnu-4.6.3 # and not with 4.6.3 (for which I get a g++ core dump somewhere later on).
Again, your system is borked, check and paste config.log here
(In reply to comment #1) > Again, your system is borked, check and paste config.log here What is wrong with my system? The message is clear: required version was not installed. This is something like a broken library which could have been fixed by `revdep-rebuild -i`. The configure line would have said "checking for main in -lmysqlcppconn... no" would that be about unresolvable library symbols. I installed meanwhile the upgrade. Do you want me to downgrade and re-test? I managed to compile the libreoffice with basic/simple C*FLAGS to avoid the gcc crashes on see/avx/aes flags. This is merely to just say, no, I can compile libreoffcie otherwise fine and my system is healthy.
It uses C compiled program to determine that version, unless you paste that config.log this bug is invalid/cantfix.
I downgraded back to 1.1.0-r1 and switched to gcc-4.5.3 again. configure:20096: checking version configure:20121: x86_64-pc-linux-gnu-g++ -o conftest -O2 -pipe -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -mavx -maes -march=native -DBOOST_NO_0X_HDR_TYPEINDEX -DBOOST_NO_CXX11_HDR_TYPEINDEX -Wl,-O1 -Wl,--as-needed conftest.cpp -lmysqlcppconn >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/libmysqlcppconn.so: undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)@GLIBCXX_3.4.15' collect2: ld returned 1 exit status configure:20121: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "LibreOffice" | #define PACKAGE_TARNAME "libreoffice" | #define PACKAGE_VERSION "3.6" | #define PACKAGE_STRING "LibreOffice 3.6" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://documentfoundation.org/" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_CUPS_H 1 | #define STDC_HEADERS 1 | #define SIZEOF_LONG 8 | #define SIZEOF_SHORT 2 | #define SIZEOF_INT 4 | #define SIZEOF_LONG_LONG 8 | #define SIZEOF_DOUBLE 8 | #define SIZEOF_VOIDP 8 | #define ALIGNOF_SHORT 2 | #define ALIGNOF_INT 4 | #define ALIGNOF_LONG 8 | #define ALIGNOF_DOUBLE 8 | #define HAVE_MALLOC 1 | #define HAVE_REALLOC 1 | #define HAVE_CALLOC 1 | #define HAVE_FREE 1 | #define HAVE_POSIX_FALLOCATE 1 | /* end confdefs.h. */ | | #include <mysql_driver.h> | | int main(int argc, char **argv) { | sql::Driver *driver; | driver = get_driver_instance(); | if (driver->getMajorVersion() > 1 || (driver->getMajorVersion() == 1 && driver->getMinorVersion() > 0) || (driver->getMajorVersion() == 1 && driver->getMinorVersion() == 0 && driver->getPatchVersion() >= 6)) | return 0; | else | return 1; | } | configure:20125: error: not suitable, we need >= 1.0.6
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/libmysqlcppconn.so: undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)@GLIBCXX_3.4.15' collect2: ld returned 1 exit status This is dupe of the other gcc/glibc/boost bug you reported :-) *** This bug has been marked as a duplicate of bug 448130 ***