Comments (6)
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.
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 function
adler32_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 function
crc32_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 function
crc32_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 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': /u01/project/offical/mysql-5.6-webscalesql-5.6.16-47/zlib/adler32.c:138: multiple definition of
adler32_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.
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.
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.
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.
If anyone is still having problems with the latest branch, please open a new issue with details.
from mysql-5.6.
Related Issues (20)
- force_flush_memtable_and_lzero_now always compacts to physical L1
- Make compilation faster HOT 1
- How to achieve ~20% replication throughput improvement using Read Free Replication (RFR) feature
- Keep long-running MyRocks mtr tests in their own suite HOT 1
- MyRocks 8.0.28 has poor performance of primary key range query HOT 1
- create secondary index needs attention
- issue while install HOT 1
- Error during create secondary index
- Update the Build Steps page HOT 1
- MyRocks engine should respect WITH_UNIT_TESTS
- Allow users to manually set the number of block cache shards HOT 1
- Provide a counter to show pending compaction bytes for RocksDB
- MyRocks does commit step non-durably under server group 2PC protocol HOT 1
- alter talbe add index optimization
- Range lock support HOT 2
- Cached RocksDB transaction object accessed after delete by XA COMMIT
- optimize table has no effect on HIDDEN_PK table
- Rdb_iterator_base::next_with_direction: too many compares for eof check HOT 2
- Determin secondary index value emptiness by datadic
- undefined reference to `sgemm_' When compiling vector DB
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mysql-5.6.