GithubHelp home page GithubHelp logo

Comments (6)

steaphan-fb-com avatar steaphan-fb-com commented on April 23, 2024

I'd need a lot more detail to be able to help you.

Which branch are you building, and which revision (git hash)?

What versions of tools (cmake, gcc, etc...) are you building with? On which platform?

Can you include the full output of the build?

from mysql-5.6.

zhaiwx1987 avatar zhaiwx1987 commented on April 23, 2024

I downloaded the source code from
https://github.com/facebook/mysql-5.6/archive/webscalesql-5.6.16-47.zip

$gcc --version
gcc (GCC) 4.7.2

$cmake --version
cmake version 2.8.8

$uname -a
Linux db031134.sqa.cm4 2.6.32-220.17.1.tb619.el6.x86_64 #1 SMP Fri Jun 8 13:48:13 CST 2012 x86_64 x86_64 x86_64 GNU/Linux

full error message..

../../../zlib/libzlib.a(zutil.c.o):(.data.rel.ro.local+0x0): multiple definition of z_errmsg' ../../innobase/libinnobase.a(zutil.c.o):(.rodata+0x0): first defined here ../../../zlib/libzlib.a(adler32.c.o): In functionadler32_combine':
/u01/project/offical/mysql-5.6-webscalesql-5.6.16-47/zlib/adler32.c:138: multiple definition of adler32_combine' ../../innobase/libinnobase.a(adler32.c.o):/u01/project/offical/mysql-5.6-webscalesql-5.6.16-47/storage/innobase/zlib_embedded/adler32.c:141: first defined here ../../../zlib/libzlib.a(crc32.c.o): In functioncrc32_combine':
/u01/project/offical/mysql-5.6-webscalesql-5.6.16-47/zlib/crc32.c:381: multiple definition of crc32_combine' ../../innobase/libinnobase.a(crc32.c.o):/u01/project/offical/mysql-5.6-webscalesql-5.6.16-47/storage/innobase/zlib_embedded/crc32.c:432: first defined here collect2: error: ld returned 1 exit status make[2]: *** [storage/perfschema/unittest/pfs_connect_attr-t] Error 1 make[1]: *** [storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... ../zlib/libzlib.a(crc32.c.o): In functioncrc32_combine':
/u01/project/offical/mysql-5.6-webscalesql-5.6.16-47/zlib/crc32.c:381: multiple definition of crc32_combine' ../storage/innobase/libinnobase.a(crc32.c.o):/u01/project/offical/mysql-5.6-webscalesql-5.6.16-47/storage/innobase/zlib_embedded/crc32.c:432: first defined here ../zlib/libzlib.a(zutil.c.o):(.data.rel.ro.local+0x0): multiple definition ofz_errmsg'
../storage/innobase/libinnobase.a(zutil.c.o):(.rodata+0x0): first defined here
../zlib/libzlib.a(adler32.c.o): In function adler32_combine': /u01/project/offical/mysql-5.6-webscalesql-5.6.16-47/zlib/adler32.c:138: multiple definition ofadler32_combine'
../storage/innobase/libinnobase.a(adler32.c.o):/u01/project/offical/mysql-5.6-webscalesql-5.6.16-47/storage/innobase/zlib_embedded/adler32.c:141: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [sql/mysqld] Error 1
make[1]: *** [sql/CMakeFiles/mysqld.dir/all] Error 2
make: *** [all] Error 2

from mysql-5.6.

steaphan-fb-com avatar steaphan-fb-com commented on April 23, 2024

I just tested the current version here myself, and it builds fine.

What were your full "cmake" and "make" commands? The intent is that neither should need any options. I built with just "cmake . && make".

from mysql-5.6.

eonghk avatar eonghk commented on April 23, 2024

I have the same problem if I just type cmake ./ && make in the source directory.
Anyway, I'm using gentoo and if I use the system zlib, it compiles fine.
There are three zlib in the source, any reason?

from mysql-5.6.

mictadlo avatar mictadlo commented on April 23, 2024

I failed to compile it on Manjaro linux:

$ git clone https://github.com/facebook/mysql-5.6.git
$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/mictadlo/apps/ && make all install
 ...
85%] Building CXX object sql/CMakeFiles/mysqld.dir/main.cc.o
Linking CXX executable mysqld
../zlib/libzlib.a(crc32.c.o): In function `crc32_combine':
/home/mictadlo/Downloads/mysql-5.6/zlib/crc32.c:381: multiple definition of `crc32_combine'
../storage/innobase/libinnobase.a(crc32.c.o):/home/mictadlo/Downloads/mysql-5.6/storage/innobase/zlib_embedded/crc32.c:432: first defined here
../zlib/libzlib.a(zutil.c.o):(.data.rel.ro.local+0x0): multiple definition of `z_errmsg'
../storage/innobase/libinnobase.a(zutil.c.o):(.rodata+0x0): first defined here
../zlib/libzlib.a(adler32.c.o): In function `adler32_combine':
/home/mictadlo/Downloads/mysql-5.6/zlib/adler32.c:138: multiple definition of `adler32_combine'
../storage/innobase/libinnobase.a(adler32.c.o):/home/mictadlo/Downloads/mysql-5.6/storage/innobase/zlib_embedded/adler32.c:141: first defined here
collect2: error: ld returned 1 exit status
sql/CMakeFiles/mysqld.dir/build.make:114: recipe for target 'sql/mysqld' failed
make[2]: *** [sql/mysqld] Error 1
CMakeFiles/Makefile2:4521: recipe for target 'sql/CMakeFiles/mysqld.dir/all' failed
make[1]: *** [sql/CMakeFiles/mysqld.dir/all] Error 2
Makefile:147: recipe for target 'all' failed
make: *** [all] Error 2

from mysql-5.6.

steaphan-fb-com avatar steaphan-fb-com commented on April 23, 2024

If anyone is still having problems with the latest branch, please open a new issue with details.

from mysql-5.6.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.