Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centos 7.0 编译报错 #54

Open
shitouxiaogege opened this issue Jan 16, 2018 · 2 comments
Open

Centos 7.0 编译报错 #54

shitouxiaogege opened this issue Jan 16, 2018 · 2 comments

Comments

@shitouxiaogege
Copy link

[ 62%] Built target symlink_libmysqlclient_r.so.18.0.0
Linking CXX executable mysql
../libmysql/libmysqlclient.a(net_serv.cc.o):(.note.stapsdt+0x24):对‘mysql_net__write__start_semaphore’未定义的引用
../libmysql/libmysqlclient.a(net_serv.cc.o):(.note.stapsdt+0x70):对‘mysql_net__write__done_semaphore’未定义的引用
../libmysql/libmysqlclient.a(net_serv.cc.o):(.note.stapsdt+0xbc):对‘mysql_net__write__done_semaphore’未定义的引用
../libmysql/libmysqlclient.a(net_serv.cc.o):(.note.stapsdt+0x108):对‘mysql_net__write__start_semaphore’未定义的引用
../libmysql/libmysqlclient.a(net_serv.cc.o):(.note.stapsdt+0x154):对‘mysql_net__write__done_semaphore’未定义的引用
../libmysql/libmysqlclient.a(net_serv.cc.o):(.note.stapsdt+0x1a0):对‘mysql_net__write__done_semaphore’未定义的引用
../libmysql/libmysqlclient.a(net_serv.cc.o):(.note.stapsdt+0x1ec):对‘mysql_net__read__start_semaphore’未定义的引用
../libmysql/libmysqlclient.a(net_serv.cc.o):(.note.stapsdt+0x230):对‘mysql_net__read__done_semaphore’未定义的引用

@pcleon
Copy link

pcleon commented Jan 22, 2018

centos7中使用readme中的脚本安装会报和楼上相同错误,但是直接到项目根目录下,使用如下:
cmake -DWITH_DEBUG=OFF -DCMAKE_INSTALL_PREFIX=./inception -DMYSQL_DATADIR=./inception/data -DWITH_SSL=bundled -DCMAKE_BUILD_TYPE=RELEASE -DWITH_ZLIB=bundled -DMY_MAINTAINER_CXX_WARNINGS="-Wall -Wextra -Wunused -Wno-dev -Wwrite-strings -Wno-strict-aliasing -Wno-unused-parameter -Woverloaded-virtual" -DMY_MAINTAINER_C_WARNINGS="-Wall -Wextra -Wno-dev -Wunused -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement" .
参数可以正常编译通过,供参考.

@watermelonbig
Copy link

watermelonbig commented Jun 14, 2018

进入inception安装目录中,手动做编译安装:
# cmake -DWITH_DEBUG=OFF -DCMAKE_INSTALL_PREFIX=./mysql -DMYSQL_DATADIR=./mysql/data -DWITH_SSL=bundled -DCMAKE_BUILD_TYPE=RELEASE -DWITH_ZLIB=bundled -DMY_MAINTAINER_CXX_WARNINGS="-Wall -Wextra -Wunused -Wno-dev -Wwrite-strings -Wno-strict-aliasing -Wno-unused-parameter -Woverloaded-virtual" -DMY_MAINTAINER_C_WARNINGS="-Wall -Wextra -Wno-dev -Wunused -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement"
# make
# make install
祝你顺利!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants