Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436418 - app-office/libreoffice-3.6.2.2[mysql] fails without dev-db/mysql-connector-c++: mysql_driver.h not found. install MySQL C++ Connectivity
Summary: app-office/libreoffice-3.6.2.2[mysql] fails without dev-db/mysql-connector-c+...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 433485 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-27 15:41 UTC by tman
Modified: 2012-11-03 17:15 UTC (History)
4 users (show)

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


Attachments
/var/log/portage/app-office:libreoffice-3.6.2.2:20120927-173646.log (app-office:libreoffice-3.6.2.2:20120927-173646.log,15.31 KB, text/plain)
2012-09-27 15:42 UTC, tman
Details
config.tar (config.tar,120.00 KB, text/plain)
2012-09-28 10:22 UTC, tman
Details
emerge --info (file_436418.txt,17.35 KB, text/plain)
2012-11-03 13:24 UTC, drhopfen
Details
config.log (config.log,123.70 KB, text/plain)
2012-11-03 13:26 UTC, drhopfen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tman 2012-09-27 15:41:45 UTC
checking for MySQL prerequisites... external MySQL
251 checking for mysql_config... /usr/bin/mysql_config
252 checking MySQL version... OK
253 checking for MySQL Client library... includes -I/usr/include/mysql, libraries -Wl,-O1 -Wl,--as-needed -rdynamic -L/usr/lib64/mysql -lmysqlclient -L/usr//lib64 -lz -lcrypt -lnsl -lm -L/usr/lib64/ -lssl -lcrypto
254 checking MySQL Connector/C++... external
255 checking mysql_driver.h usability... no
256 checking mysql_driver.h presence... no
257 checking for mysql_driver.h... no
258 configure: error: mysql_driver.h not found. install MySQL C++ Connectivity
259 
260 !!! Please attach the following file when seeking support:
261 !!! /var/tmp/portage/app-office/libreoffice-3.6.2.2/work/libreoffice-core-3.6.2.2/config.log
262  * ERROR: app-office/libreoffice-3.6.2.2 failed (configure phase):
263  *   econf failed
264  *
265  * Call stack:
266  *          ebuild.sh, line   85:  Called src_configure


Reproducible: Always
Comment 1 tman 2012-09-27 15:42:11 UTC
Created attachment 325134 [details]
/var/log/portage/app-office:libreoffice-3.6.2.2:20120927-173646.log
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2012-09-28 08:39:29 UTC
It asks you for file config.log please provide it.
Comment 3 tman 2012-09-28 10:22:28 UTC
Created attachment 325184 [details]
config.tar

here is the config.log.

thanks for the fast support
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2012-09-28 10:27:04 UTC
In file included from conftest.cpp:36:0:
/usr/include/mysql_driver.h:28:32: fatal error: boost/scoped_ptr.hpp: No such file or directory
compilation terminated.

So I suspect yoru boost install is hosed or you are using the fancy new 1.50 boost wich is really creative in ways how to f**k up your system.
Comment 5 tman 2012-09-28 11:19:50 UTC
i have this installed.

[I] dev-libs/boost
     Available versions:  
	(0)	1.35.0-r2 1.35.0-r5
	(1.37)	(~)1.37.0-r1
	(1.39)	(~)1.39.0
	(1.41)	1.41.0-r3
	(1.42)	(~)1.42.0 (~)1.42.0-r1 1.42.0-r2
	(1.45)	(~)1.45.0
	(1.46)	1.46.1-r1
	(1.47)	(~)1.47.0 (~)1.47.0-r1
	(1.48)	1.48.0-r2
	(1.49)	1.49.0-r1
	(1.50)	[M](~)1.50.0 [M](~)1.50.0-r2
	(1.51)	[M](~)1.51.0_pre^m[1]
	{{debug doc +eselect expat icu mpi python static-libs test tools}}
     Installed versions:  1.49.0-r1(1.49)(14:02:06 12.08.2012)(eselect icu mpi python -debug -doc -static-libs -test -tools)
     Homepage:            http://www.boost.org/
     Description:         Boost Libraries for C++

so it must be sth else.
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2012-09-28 11:50:28 UTC
Hmm, after the boost moves maybe it forgets to find the boost headers in fancy locations like we in gentoo have...
Comment 7 Tomáš Chvátal (RETIRED) gentoo-dev 2012-09-28 11:52:51 UTC
Yup the header check is just simple header.h lookup

        AC_CHECK_HEADER(mysql_driver.h, [],
                    [AC_MSG_ERROR(mysql_driver.h not found. install MySQL C++ Connectivity)], [])


So I suppose we could try to add there the include path for boost so it won't fail.
Comment 8 tman 2012-09-30 08:44:45 UTC
well if someone make update, i will make test compilation.
Comment 9 Tomáš Chvátal (RETIRED) gentoo-dev 2012-11-02 14:37:12 UTC
Boost was unslotted now, so it should work again by default.

Could you try it and close the bug if it is correct?
Comment 10 Tomáš Chvátal (RETIRED) gentoo-dev 2012-11-02 14:41:51 UTC
*** Bug 433485 has been marked as a duplicate of this bug. ***
Comment 11 tman 2012-11-02 17:37:48 UTC
(In reply to comment #9)
> Boost was unslotted now, so it should work again by default.
> 
> Could you try it and close the bug if it is correct?

unfortunatelly i cant test it now. my gentoo box got a hardware failure and i hope i get a replace component. :(.
Comment 12 drhopfen 2012-11-03 13:23:49 UTC
Thursday I could compile app-office/libreoffice-3.6.2.2 with dev-libs/boost-1.51.0-r1 without further tweaking.
Anyhow, I don't know if really related to this bug today app-office/libreoffice-3.6.3.2 fails with an error concerning dev-db/mysql-connector-c++:

checking version... configure: error: not suitable, we need >= 1.0.6

The version installed is 1.1.0-r1 and worked fine with the previous libreoffice.
Comment 13 drhopfen 2012-11-03 13:24:43 UTC
Created attachment 328214 [details]
emerge --info
Comment 14 drhopfen 2012-11-03 13:26:54 UTC
Created attachment 328216 [details]
config.log
Comment 15 Tomáš Chvátal (RETIRED) gentoo-dev 2012-11-03 13:45:39 UTC
(In reply to comment #14)
> Created attachment 328216 [details]
> config.log

If you take look on the config.log file you will se dozens of undefined refference error there. So it seems like you changed mysql and didnt rebuild the connector. revdep-rebuild or @preserved-rebuild are your friends :-)
Comment 16 drhopfen 2012-11-03 13:49:50 UTC
Thanks, just saw it after pasting the logfile. Interestingly portage did not complain about @preserved-libs. Just rebuilt the connector manually and now the office compilation passed the configure phase. I will report later if the compilation works out.
Comment 17 drhopfen 2012-11-03 17:05:31 UTC
Compiling finished successful with boost-1.51.0-r1. I think the bug can be closed.