← Back to team overview

enterprise-support team mailing list archive

[Bug 1382505] [NEW] Compiling of version 0.6.2 fails on OpenIndiana

 

Public bug reported:

Hi,

is it possible to get this nice tool compiled on OpenIndiana (OI,
http://wiki.openindiana.org) OS?

To make situation clean, I have compiled (for test purposes) MySQL
myself, using GCC:

$ gcc --version
gcc (GCC) 4.8.3
...

MySQL has been compiled (http://dev.mysql.com/doc/internals/en/building-
with-cmake.html) with following commands (bash):

$ export MY_ARCH=32
$ export MY_PREFIX=/opt/MySQL/5.6.21_${MY_ARCH}

$ mkdir bld && cd bld
$ CFLAGS="-m${MY_ARCH} -lsocket -O3" CXXFLAGS="-m${MY_ARCH} -lsocket" LDFLAGS="-m${MY_ARCH}" PKG_CONFIG_PATH="/usr/lib/pkgconfig" cmake .. -DCMAKE_INSTALL_PREFIX=${MY_PREFIX} -DSYSCONFDIR=${MY_PREFIX}/etc -DDTRACE=off

Compilation went fine and MySQL was installed to /opt/MySQL/5.6.21_32 directory.
To make 32bit version default, I have created symbolic link: (cd /opt/MySQL && ln -s 5.6.21_32 5.6)

Now:
$ which /opt/MySQL/5.6/bin/mysql
/opt/MySQL/5.6/bin/mysql
$ mysql --version
mysql  Ver 14.14 Distrib 5.6.21, for solaris11 (i386) using  EditLine wrapper

mydumper was unpacked from mydumper-0.6.2.tar.gz
$ mkdir bld && cd bld

$ cmake .. -DMYSQL_LIBRARIES_mysqlclient_r=/opt/MySQL/5.6/lib/libmysqlclient_r.so
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using mysql-config: /opt/MySQL/5.6/bin/mysql_config
-- Found MySQL: /opt/MySQL/5.6/include, /opt/MySQL/5.6/lib/libmysqlclient_r.so;/usr/lib/libthread.so;/usr/lib/libsocket.so;/usr/lib/libnsl.so;/usr/lib/libm.so
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.8")
-- checking for one of the modules 'glib-2.0'
-- checking for one of the modules 'gthread-2.0'
-- checking for module 'libpcre'
--   found libpcre, version 8.21
-- Found PCRE: /usr/include/pcre

CMake Warning at docs/CMakeLists.txt:9 (message):
  Unable to find Sphinx documentation generator

-- ------------------------------------------------
-- MYSQL_CONFIG = /opt/MySQL/5.6/bin/mysql_config
-- CMAKE_INSTALL_PREFIX = /usr/local
-- BUILD_DOCS = ON
-- WITH_BINLOG = OFF
-- RUN_CPPCHECK = OFF
-- Change a values with: cmake -D<Variable>=<Value>
-- ------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /export/NoBackup/Build/mydumper-0.6.2/bld

$ gmake
Scanning dependencies of target mydumper
[ 25%] Building C object CMakeFiles/mydumper.dir/mydumper.c.o
[ 50%] Building C object CMakeFiles/mydumper.dir/server_detect.c.o
[ 75%] Building C object CMakeFiles/mydumper.dir/g_unix_signal.c.o
Linking C executable mydumper
Undefined                       first referenced
 symbol                             in file
operator new[](unsigned int)        /opt/MySQL/5.6/lib/libmysqlclient_r.so
operator new(unsigned int)          /opt/MySQL/5.6/lib/libmysqlclient_r.so
vtable for __cxxabiv1::__si_class_type_info /opt/MySQL/5.6/lib/libmysqlclient_r.so
operator delete[](void*)            /opt/MySQL/5.6/lib/libmysqlclient_r.so
operator delete(void*)              /opt/MySQL/5.6/lib/libmysqlclient_r.so
std::terminate()                    /opt/MySQL/5.6/lib/libmysqlclient_r.so
vtable for __cxxabiv1::__vmi_class_type_info /opt/MySQL/5.6/lib/libmysqlclient_r.so
vtable for __cxxabiv1::__class_type_info /opt/MySQL/5.6/lib/libmysqlclient_r.so
__gxx_personality_v0                /opt/MySQL/5.6/lib/libmysqlclient_r.so
__cxa_pure_virtual                  /opt/MySQL/5.6/lib/libmysqlclient_r.so
ld: fatal: symbol referencing errors. No output written to mydumper
collect2: error: ld returned 1 exit status
gmake[2]: *** [mydumper] Error 1
gmake[1]: *** [CMakeFiles/mydumper.dir/all] Error 2
gmake: *** [all] Error 2

I am stuck. Do you have any idea?

Best regards.

** Affects: mydumper
     Importance: Undecided
         Status: New


** Tags: openindiana

** Description changed:

  Hi,
  
  is it possible to get this nice tool compiled on OpenIndiana (OI,
- wiki..openindiana.org) OS?
+ http://wiki.openindiana.org) OS?
  
  To make situation clean, I have compiled (for test purposes) MySQL
  myself, using GCC:
  
  $ gcc --version
  gcc (GCC) 4.8.3
  ...
  
  MySQL has been compiled (http://dev.mysql.com/doc/internals/en/building-
  with-cmake.html) with following commands (bash):
  
  $ export MY_ARCH=32
  $ export MY_PREFIX=/opt/MySQL/5.6.21_${MY_ARCH}
  
  $ mkdir bld && cd bld
  $ CFLAGS="-m${MY_ARCH} -lsocket -O3" CXXFLAGS="-m${MY_ARCH} -lsocket" LDFLAGS="-m${MY_ARCH}" PKG_CONFIG_PATH="/usr/lib/pkgconfig" cmake .. -DCMAKE_INSTALL_PREFIX=${MY_PREFIX} -DSYSCONFDIR=${MY_PREFIX}/etc -DDTRACE=off
  
  Compilation went fine and MySQL was installed to /opt/MySQL/5.6.21_32 directory.
  To make 32bit version default, I have created symbolic link: (cd /opt/MySQL && ln -s 5.6.21_32 5.6)
  
  Now:
  $ /opt/MySQL/5.6/bin/mysql
  /opt/MySQL/5.6/bin/mysql
  $ mysql --version
  mysql  Ver 14.14 Distrib 5.6.21, for solaris11 (i386) using  EditLine wrapper
  
- mydumper was unpacked from mydumper-0.6.2.tar.gz 
+ mydumper was unpacked from mydumper-0.6.2.tar.gz
  $ mkdir bld && cd bld
  
  $ cmake .. -DMYSQL_LIBRARIES_mysqlclient_r=/opt/MySQL/5.6/lib/libmysqlclient_r.so
  -- The C compiler identification is GNU
  -- The CXX compiler identification is GNU
  -- Check for working C compiler: /usr/bin/gcc
  -- Check for working C compiler: /usr/bin/gcc -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++
  -- Check for working CXX compiler: /usr/bin/c++ -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Using mysql-config: /opt/MySQL/5.6/bin/mysql_config
  -- Found MySQL: /opt/MySQL/5.6/include, /opt/MySQL/5.6/lib/libmysqlclient_r.so;/usr/lib/libthread.so;/usr/lib/libsocket.so;/usr/lib/libnsl.so;/usr/lib/libm.so
  -- Found ZLIB: /usr/lib/libz.so (found version "1.2.8")
  -- checking for one of the modules 'glib-2.0'
  -- checking for one of the modules 'gthread-2.0'
  -- checking for module 'libpcre'
  --   found libpcre, version 8.21
- -- Found PCRE: /usr/include/pcre 
+ -- Found PCRE: /usr/include/pcre
  
  CMake Warning at docs/CMakeLists.txt:9 (message):
-   Unable to find Sphinx documentation generator
- 
+   Unable to find Sphinx documentation generator
  
  -- ------------------------------------------------
  -- MYSQL_CONFIG = /opt/MySQL/5.6/bin/mysql_config
  -- CMAKE_INSTALL_PREFIX = /usr/local
  -- BUILD_DOCS = ON
  -- WITH_BINLOG = OFF
  -- RUN_CPPCHECK = OFF
  -- Change a values with: cmake -D<Variable>=<Value>
  -- ------------------------------------------------
- -- 
+ --
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /export/NoBackup/Build/mydumper-0.6.2/bld
  
  $ gmake
  Scanning dependencies of target mydumper
  [ 25%] Building C object CMakeFiles/mydumper.dir/mydumper.c.o
  [ 50%] Building C object CMakeFiles/mydumper.dir/server_detect.c.o
  [ 75%] Building C object CMakeFiles/mydumper.dir/g_unix_signal.c.o
  Linking C executable mydumper
  Undefined                       first referenced
-  symbol                             in file
+  symbol                             in file
  operator new[](unsigned int)        /opt/MySQL/5.6/lib/libmysqlclient_r.so
  operator new(unsigned int)          /opt/MySQL/5.6/lib/libmysqlclient_r.so
  vtable for __cxxabiv1::__si_class_type_info /opt/MySQL/5.6/lib/libmysqlclient_r.so
  operator delete[](void*)            /opt/MySQL/5.6/lib/libmysqlclient_r.so
  operator delete(void*)              /opt/MySQL/5.6/lib/libmysqlclient_r.so
  std::terminate()                    /opt/MySQL/5.6/lib/libmysqlclient_r.so
  vtable for __cxxabiv1::__vmi_class_type_info /opt/MySQL/5.6/lib/libmysqlclient_r.so
  vtable for __cxxabiv1::__class_type_info /opt/MySQL/5.6/lib/libmysqlclient_r.so
  __gxx_personality_v0                /opt/MySQL/5.6/lib/libmysqlclient_r.so
  __cxa_pure_virtual                  /opt/MySQL/5.6/lib/libmysqlclient_r.so
  ld: fatal: symbol referencing errors. No output written to mydumper
  collect2: error: ld returned 1 exit status
  gmake[2]: *** [mydumper] Error 1
  gmake[1]: *** [CMakeFiles/mydumper.dir/all] Error 2
  gmake: *** [all] Error 2
  
- 
  I am stuck. Do you have any idea?
  
  Best regards.

** Description changed:

  Hi,
  
  is it possible to get this nice tool compiled on OpenIndiana (OI,
  http://wiki.openindiana.org) OS?
  
  To make situation clean, I have compiled (for test purposes) MySQL
  myself, using GCC:
  
  $ gcc --version
  gcc (GCC) 4.8.3
  ...
  
  MySQL has been compiled (http://dev.mysql.com/doc/internals/en/building-
  with-cmake.html) with following commands (bash):
  
  $ export MY_ARCH=32
  $ export MY_PREFIX=/opt/MySQL/5.6.21_${MY_ARCH}
  
  $ mkdir bld && cd bld
  $ CFLAGS="-m${MY_ARCH} -lsocket -O3" CXXFLAGS="-m${MY_ARCH} -lsocket" LDFLAGS="-m${MY_ARCH}" PKG_CONFIG_PATH="/usr/lib/pkgconfig" cmake .. -DCMAKE_INSTALL_PREFIX=${MY_PREFIX} -DSYSCONFDIR=${MY_PREFIX}/etc -DDTRACE=off
  
  Compilation went fine and MySQL was installed to /opt/MySQL/5.6.21_32 directory.
  To make 32bit version default, I have created symbolic link: (cd /opt/MySQL && ln -s 5.6.21_32 5.6)
  
  Now:
- $ /opt/MySQL/5.6/bin/mysql
+ $ which /opt/MySQL/5.6/bin/mysql
  /opt/MySQL/5.6/bin/mysql
  $ mysql --version
  mysql  Ver 14.14 Distrib 5.6.21, for solaris11 (i386) using  EditLine wrapper
  
  mydumper was unpacked from mydumper-0.6.2.tar.gz
  $ mkdir bld && cd bld
  
  $ cmake .. -DMYSQL_LIBRARIES_mysqlclient_r=/opt/MySQL/5.6/lib/libmysqlclient_r.so
  -- The C compiler identification is GNU
  -- The CXX compiler identification is GNU
  -- Check for working C compiler: /usr/bin/gcc
  -- Check for working C compiler: /usr/bin/gcc -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++
  -- Check for working CXX compiler: /usr/bin/c++ -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Using mysql-config: /opt/MySQL/5.6/bin/mysql_config
  -- Found MySQL: /opt/MySQL/5.6/include, /opt/MySQL/5.6/lib/libmysqlclient_r.so;/usr/lib/libthread.so;/usr/lib/libsocket.so;/usr/lib/libnsl.so;/usr/lib/libm.so
  -- Found ZLIB: /usr/lib/libz.so (found version "1.2.8")
  -- checking for one of the modules 'glib-2.0'
  -- checking for one of the modules 'gthread-2.0'
  -- checking for module 'libpcre'
  --   found libpcre, version 8.21
  -- Found PCRE: /usr/include/pcre
  
  CMake Warning at docs/CMakeLists.txt:9 (message):
    Unable to find Sphinx documentation generator
  
  -- ------------------------------------------------
  -- MYSQL_CONFIG = /opt/MySQL/5.6/bin/mysql_config
  -- CMAKE_INSTALL_PREFIX = /usr/local
  -- BUILD_DOCS = ON
  -- WITH_BINLOG = OFF
  -- RUN_CPPCHECK = OFF
  -- Change a values with: cmake -D<Variable>=<Value>
  -- ------------------------------------------------
  --
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /export/NoBackup/Build/mydumper-0.6.2/bld
  
  $ gmake
  Scanning dependencies of target mydumper
  [ 25%] Building C object CMakeFiles/mydumper.dir/mydumper.c.o
  [ 50%] Building C object CMakeFiles/mydumper.dir/server_detect.c.o
  [ 75%] Building C object CMakeFiles/mydumper.dir/g_unix_signal.c.o
  Linking C executable mydumper
  Undefined                       first referenced
   symbol                             in file
  operator new[](unsigned int)        /opt/MySQL/5.6/lib/libmysqlclient_r.so
  operator new(unsigned int)          /opt/MySQL/5.6/lib/libmysqlclient_r.so
  vtable for __cxxabiv1::__si_class_type_info /opt/MySQL/5.6/lib/libmysqlclient_r.so
  operator delete[](void*)            /opt/MySQL/5.6/lib/libmysqlclient_r.so
  operator delete(void*)              /opt/MySQL/5.6/lib/libmysqlclient_r.so
  std::terminate()                    /opt/MySQL/5.6/lib/libmysqlclient_r.so
  vtable for __cxxabiv1::__vmi_class_type_info /opt/MySQL/5.6/lib/libmysqlclient_r.so
  vtable for __cxxabiv1::__class_type_info /opt/MySQL/5.6/lib/libmysqlclient_r.so
  __gxx_personality_v0                /opt/MySQL/5.6/lib/libmysqlclient_r.so
  __cxa_pure_virtual                  /opt/MySQL/5.6/lib/libmysqlclient_r.so
  ld: fatal: symbol referencing errors. No output written to mydumper
  collect2: error: ld returned 1 exit status
  gmake[2]: *** [mydumper] Error 1
  gmake[1]: *** [CMakeFiles/mydumper.dir/all] Error 2
  gmake: *** [all] Error 2
  
  I am stuck. Do you have any idea?
  
  Best regards.

-- 
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to MySQL.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1382505

Title:
  Compiling of version 0.6.2 fails on OpenIndiana

To manage notifications about this bug go to:
https://bugs.launchpad.net/mydumper/+bug/1382505/+subscriptions


Follow ups

References