Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631982 - dev-db/myodbc-5.2.7-r1 - src_configure -- MySQL Library : MYSQL_LIB-NOTFOUND;rt
Summary: dev-db/myodbc-5.2.7-r1 - src_configure -- MySQL Library : MYSQL_LIB-NOTFOU...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-25 08:28 UTC by Povilas Brilius
Modified: 2018-01-18 17:38 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Povilas Brilius 2017-09-25 08:28:04 UTC
Trying to emerge myodbc:

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-db/myodbc-5.2.7-r1::mysql
>>> Failed to emerge dev-db/myodbc-5.2.7-r1, Log file:
>>>  '/var/tmp/portage/dev-db/myodbc-5.2.7-r1/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 8.94, 9.16, 9.69
 * Package:    dev-db/myodbc-5.2.7-r1
 * Repository: mysql
 * Maintainer: mysql-bugs@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking mysql-connector-odbc-5.2.7-src.tar.gz to /var/tmp/portage/dev-db/myodbc-5.2.7-r1/work
>>> Source unpacked in /var/tmp/portage/dev-db/myodbc-5.2.7-r1/work
>>> Preparing source in /var/tmp/portage/dev-db/myodbc-5.2.7-r1/work/mysql-connector-odbc-5.2.7-src ...
 * Applying cmake-doc-path.patch ...
 [ ok ]
 * Applying 5.2.7-r1-cxxlinkage.patch ...
 [ ok ]
 * Applying 5.2.7-mariadb-dynamic-array.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-db/myodbc-5.2.7-r1/work/mysql-connector-odbc-5.2.7-src ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
 * cmake-utils_src_prepare has not been run, please open a bug on https://bugs.gentoo.org/
>>> Working in BUILD_DIR: "/var/tmp/portage/dev-db/myodbc-5.2.7-r1/work/mysql-connector-odbc-5.2.7-src-abi_x86_64.amd64"
cmake --no-warn-unused-cli -C /var/tmp/portage/dev-db/myodbc-5.2.7-r1/work/mysql-connector-odbc-5.2.7-src-abi_x86_64.amd64/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DMYSQL_CXX_LINKAGE=0 -DWITH_UNIXODBC=1 -DMYSQLCLIENT_LIB_NAME=libmysqlclient_r.so -DWITH_DOCUMENTATION_INSTALL_PATH=/usr/share/doc/myodbc-5.2.7-r1 -DMYSQL_LIB_DIR=//usr/lib64 -DLIB_SUBDIR=lib64 -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/dev-db/myodbc-5.2.7-r1/work/mysql-connector-odbc-5.2.7-src-abi_x86_64.amd64/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-db/myodbc-5.2.7-r1/work/mysql-connector-odbc-5.2.7-src-abi_x86_64.amd64/gentoo_toolchain.cmake  /var/tmp/portage/dev-db/myodbc-5.2.7-r1/work/mysql-connector-odbc-5.2.7-src
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/dev-db/myodbc-5.2.7-r1/work/mysql-connector-odbc-5.2.7-src-abi_x86_64.amd64/gentoo_common_config.cmake
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Configuring to build Unicode driver
-- Configuring to build ANSI driver
-- mysql_config was found /usr/bin/mysql_config
-- MySQL Include dir: /usr/include/mysql
-- MySQL Library    : MYSQL_LIB-NOTFOUND;rt
-- MySQL Library dir: //usr/lib64
-- MySQL CXXFLAGS: -I/usr/include/mysql 
-- MySQL Link flags: 
-- MySQL Version: 5.7.18
-- MySQL Include dir: /usr/include/mysql
-- MySQL Library dir: //usr/lib64
-- MySQL CXXFLAGS: -I/usr/include/mysql 
-- MySQL Link flags: 
-- unixODBC: Found odbc_config in /usr/bin/odbc_config
-- Checking if LPCWSTR type is present - TRUE
-- Looking for dlopen
-- Looking for dlopen - not found
-- Checking if SQLColAttribute last arg is compatible with SQLLEN* - TRUE
-- Checking if SQLParamOptions() 2nd and 3rd arg is compatible with SQLULEN - TRUE
-- Enabling threads support
-- Installation library subdir: lib64
CMake Warning (dev) at driver/CMakeLists.txt:111 (GET_TARGET_PROPERTY):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "myodbc5w".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at driver/CMakeLists.txt:111 (GET_TARGET_PROPERTY):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "myodbc5a".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C               -march=native -O2 -pipe
C++             -march=native -O2 -pipe
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed
Module          -Wl,-O1 -Wl,--as-needed
Shared          -Wl,-O1 -Wl,--as-needed

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
MYSQL_LIB
    linked by target "myodbc5w" in directory /var/tmp/portage/dev-db/myodbc-5.2.7-r1/work/mysql-connector-odbc-5.2.7-src/driver
    linked by target "myodbc5a" in directory /var/tmp/portage/dev-db/myodbc-5.2.7-r1/work/mysql-connector-odbc-5.2.7-src/driver
    linked by target "myodbc-installer" in directory /var/tmp/portage/dev-db/myodbc-5.2.7-r1/work/mysql-connector-odbc-5.2.7-src/installer

-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/dev-db/myodbc-5.2.7-r1/work/mysql-connector-odbc-5.2.7-src-abi_x86_64.amd64/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/dev-db/myodbc-5.2.7-r1/work/mysql-connector-odbc-5.2.7-src-abi_x86_64.amd64/CMakeFiles/CMakeError.log".
 * ERROR: dev-db/myodbc-5.2.7-r1::mysql failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_configure
 *   environment, line 3492:  Called cmake-multilib_src_configure
 *   environment, line  744:  Called multilib-minimal_src_configure
 *   environment, line 2598:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *   environment, line 2812:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 2459:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 2457:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *   environment, line  520:  Called multilib-minimal_abi_src_configure
 *   environment, line 2592:  Called multilib_src_configure
 *   environment, line 3029:  Called cmake-utils_src_configure
 *   environment, line  915:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=dev-db/myodbc-5.2.7-r1::mysql'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/myodbc-5.2.7-r1::mysql'`.
 * The complete build log is located at '/var/tmp/portage/dev-db/myodbc-5.2.7-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/myodbc-5.2.7-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-db/myodbc-5.2.7-r1/work/mysql-connector-odbc-5.2.7-src-abi_x86_64.amd64'
 * S: '/var/tmp/portage/dev-db/myodbc-5.2.7-r1/work/mysql-connector-odbc-5.2.7-src'

 * Messages for package dev-db/myodbc-5.2.7-r1:

 * Package:    dev-db/myodbc-5.2.7-r1
 * Repository: mysql
 * Maintainer: mysql-bugs@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Applying cmake-doc-path.patch ...
 * Applying 5.2.7-r1-cxxlinkage.patch ...
 * Applying 5.2.7-mariadb-dynamic-array.patch ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
 * cmake-utils_src_prepare has not been run, please open a bug on https://bugs.gentoo.org/
 * ERROR: dev-db/myodbc-5.2.7-r1::mysql failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_configure
 *   environment, line 3492:  Called cmake-multilib_src_configure
 *   environment, line  744:  Called multilib-minimal_src_configure
 *   environment, line 2598:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *   environment, line 2812:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 2459:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 2457:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *   environment, line  520:  Called multilib-minimal_abi_src_configure
 *   environment, line 2592:  Called multilib_src_configure
 *   environment, line 3029:  Called cmake-utils_src_configure
 *   environment, line  915:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=dev-db/myodbc-5.2.7-r1::mysql'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/myodbc-5.2.7-r1::mysql'`.
 * The complete build log is located at '/var/tmp/portage/dev-db/myodbc-5.2.7-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/myodbc-5.2.7-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-db/myodbc-5.2.7-r1/work/mysql-connector-odbc-5.2.7-src-abi_x86_64.amd64'
 * S: '/var/tmp/portage/dev-db/myodbc-5.2.7-r1/work/mysql-connector-odbc-5.2.7-src'
Comment 1 Brian Evans (RETIRED) gentoo-dev 2017-09-25 12:40:37 UTC
Which version of dev-db/mariadb or dev-db/mysql or dev-db/percona-server is installed?
Comment 2 Povilas Brilius 2017-09-27 14:46:34 UTC
Currently there is installed dev-db/mysql from mysql overlay.
Comment 3 Larry the Git Cow gentoo-dev 2018-01-18 17:38:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62037b85839498c15c79d2ae603749fd7af6a3ce

commit 62037b85839498c15c79d2ae603749fd7af6a3ce
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2018-01-18 17:38:04 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2018-01-18 17:38:04 +0000

    dev-db/myodbc: Remove reference to deprcated libmysqlclient_r
    
    Closes: https://bugs.gentoo.org/631982
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 dev-db/myodbc/myodbc-5.2.7-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)