Summary: | dev-db/myodbc-5.2.6: CMake Error: Parse error in cache file [...]/CMakeCache.txt. Offending entry: --plugindir [/usr/lib/mysql/plugin] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Paweł Hajdan, Jr. (RETIRED) <phajdan.jr> |
Component: | Current packages | Assignee: | Gentoo Linux MySQL bugs team <mysql-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | amverweij |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 513646 | ||
Attachments: |
build.log.gz
CMakeOutput.log |
Description
Paweł Hajdan, Jr. (RETIRED)
![]() Created attachment 381536 [details]
CMakeOutput.log
Seems like I was relying on syntax added in MySQL 5.5 to mysql_config. I'll come up with a fix very soon. cmake --no-warn-unused-cli -C /var/tmp/portage/dev-db/myodbc-5.2.6/work/myodbc-5.2.6_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DMYSQL_CXX_LINKAGE=0 -DWITH_UNIXODBC=1 -DRPM_BUILD=1 -DMYSQL_LIB=Usage: /usr/bin/mysql_config [OPTIONS] Options: --cflags [-I/usr/include/mysql -DUNIV_LINUX -DUNIV_LINUX] --include [-I/usr/include/mysql] --libs [-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -rdynamic -L/usr/lib/mysql -lmysqlclient -L/usr//lib -lz -lcrypt -lnsl -lm -L/usr/lib/ -lssl -lcrypto] --libs_r [-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -rdynamic -L/usr/lib/mysql -lmysqlclient_r -L/usr//lib -lz -lpthread -lcrypt -lnsl -lm -lpthread -L/usr/lib/ -lssl -lcrypto] --plugindir [/usr/lib/mysql/plugin] --socket [/var/run/mysqld/mysqld.sock] --port [0] --version [5.1.70] --libmysqld-libs [-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -rdynamic -L/usr/lib/mysql -lmysqld -ldl -L/usr//lib -lz -lpthread -lcrypt -lnsl -lm -lpthread -lrt -L/usr/lib/ -lssl -lcrypto]/libmysqlclient_r.so -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/dev-db/myodbc-5.2.6/work/myodbc-5.2.6_build/gentoo_rules.cmake /var/tmp/portage/dev-db/myodbc-5.2.6/work/mysql-connector-odbc-5.2.6-src Updated to dev-db/myodbc-5.2.7 with fix Well indeed, myodbc-5.2.6 compiles nicely on my stable system. However, when one tries to use it (e.g. connect to a remote mysql server from libreoffice through the odbc connector), one gets the error: The connection to the datasource could not be established. [unixODBC][Driver Manager]Can't open lib '/usr/lib64/libmyodbc5.so': file not found both revdep-rebuild and emerge @preserved-rebuild are happy, though. It seems myodbc-5.1.13 compiles and works perfectly alright. (Copying the myodbc-5.1.6 ebuild does not work, though. Apparently mysql devs changed the build system. Copying the myodbc-5.2.7.ebuild to myodbc-5.1.13.ebuild works fine, though.) (In reply to Bram Verweij from comment #4) > Well indeed, myodbc-5.2.6 compiles nicely on my stable system. However, when > one tries to use it (e.g. connect to a remote mysql server from libreoffice > through the odbc connector), one gets the error: > > The connection to the datasource could not be established. > [unixODBC][Driver Manager]Can't open lib > '/usr/lib64/libmyodbc5.so': file not found That is the wrong library name in 5.2.7. Use /usr/lib64/libmyodbc5a.so sorry for the spam. commenter did not cc (In reply to Bram Verweij from comment #4) > Well indeed, myodbc-5.2.6 compiles nicely on my stable system. However, when > one tries to use it (e.g. connect to a remote mysql server from libreoffice > through the odbc connector), one gets the error: > > The connection to the datasource could not be established. > [unixODBC][Driver Manager]Can't open lib > '/usr/lib64/libmyodbc5.so': file not found That is the wrong library name in 5.2.7. Use /usr/lib64/libmyodbc5a.so Brian, thank you for your comment. I do understand that '/usr/lib64/libmyodbc5.so' is the wrong library. I do not understand how to tell libreoffice it should open /usr/lib64/libmyodbc5a.so. I tried de-installing myodbc-5.1.7, installing myodbc-5.2.7, and running revdep-rebuild and emerge @preserved-rebuild. This did not help. After that I recompiled libreoffice manually. This did not help either. Suggestions are welcome! Ok, found it. It goes into /etc/unixODBC/odbcinst.ini. Indeed 5.2.7 works fine as well. Sorry for the noise. |