Compiling of version 0.6.2 fails on OpenIndiana
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Data Dumper |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
is it possible to get this nice tool compiled on OpenIndiana (OI, http://
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://
$ export MY_ARCH=32
$ export MY_PREFIX=
$ mkdir bld && cd bld
$ CFLAGS=
Compilation went fine and MySQL was installed to /opt/MySQL/
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/
/opt/MySQL/
$ mysql --version
mysql Ver 14.14 Distrib 5.6.21, for solaris11 (i386) using EditLine wrapper
mydumper was unpacked from mydumper-
$ mkdir bld && cd bld
$ cmake .. -DMYSQL_
-- 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/
-- Found MySQL: /opt/MySQL/
-- 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
Unable to find Sphinx documentation generator
-- -------
-- MYSQL_CONFIG = /opt/MySQL/
-- CMAKE_INSTALL_
-- BUILD_DOCS = ON
-- WITH_BINLOG = OFF
-- RUN_CPPCHECK = OFF
-- Change a values with: cmake -D<Variable>
-- -------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /export/
$ gmake
Scanning dependencies of target mydumper
[ 25%] Building C object CMakeFiles/
[ 50%] Building C object CMakeFiles/
[ 75%] Building C object CMakeFiles/
Linking C executable mydumper
Undefined first referenced
symbol in file
operator new[](unsigned int) /opt/MySQL/
operator new(unsigned int) /opt/MySQL/
vtable for __cxxabiv1:
operator delete[](void*) /opt/MySQL/
operator delete(void*) /opt/MySQL/
std::terminate() /opt/MySQL/
vtable for __cxxabiv1:
vtable for __cxxabiv1:
__gxx_personali
__cxa_pure_virtual /opt/MySQL/
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/
gmake: *** [all] Error 2
I am stuck. Do you have any idea?
Best regards.
description: | updated |
description: | updated |
Changed in mydumper: | |
status: | New → Fix Released |
Hi all,
I have made some progress (hint form http:// stackoverflow. com/a/203550). So, compilation has been tried with:
$ pwd
mydumper-0.6.2/bld
$ rm -rf *
$ export LDFLAGS="-lstdc++ -m32"
$ export CFLAGS="-m32"
$ export CXXFLAGS="-m32"
$ cmake .. -DCMAKE_ INSTALL_ PREFIX= /opt/SFW \
-DMYSQL_ INCLUDE_ DIR=/opt/ MySQL/5. 6/include \
-DMYSQL_ ADD_LIBRARY_ PATH=/opt/ MySQL/5. 6/lib \
-DMYSQL_ LIBRARIES= /opt/MySQL/ 5.6/lib/ libmysqlclient_ r.so
....
$ gmake mydumper. dir/mydumper. c.o mydumper. dir/server_ detect. c.o mydumper. dir/g_unix_ signal. c.o mydumper. dir/mydumper. c.o (symbol belongs to implicit dependency /lib/libm.so.2) mydumper. dir/all] Error 2
Scanning dependencies of target mydumper
[ 16%] Building C object CMakeFiles/
[ 33%] Building C object CMakeFiles/
[ 50%] Building C object CMakeFiles/
Linking C executable mydumper
Undefined first referenced
symbol in file
ceilf CMakeFiles/
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/
gmake: *** [all] Error 2
So, only small thing has left.
Regards.