免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3056 | 回复: 9
打印 上一主题 下一主题

【讨论中】Percona-Server-5.5.x 有些环境下不能编译通过 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-08-27 17:22 |只看该作者 |倒序浏览
本帖最后由 cenalulu 于 2012-08-28 09:14 编辑

wget http://www.percona.com/downloads ... 5.27-rel28.0.tar.gz
tar zxvf Percona-Server-5.5.27-rel28.0.tar.gz
cd Percona-Server-5.5.27-rel28.0
CC=gcc CFLAGS="-DBIG_JOINS=1 -DHAVE_DLOPEN=1 -O3" CXX=g++ CXXFLAGS="-DBIG_JOINS=1 -DHAVE_DLOPEN=1 -felide-constructors -fno-rtti -O3"
cmake . \
  -DCMAKE_BUILD_TYPE:STRING=Release             \
  -DSYSCONFDIRATH=/opt/Percona-Server-5.5.27-rel28.0            \
  -DCMAKE_INSTALL_PREFIXATH=/opt/Percona-Server-5.5.27-rel28.0   \
  -DENABLED_PROFILING:BOOL=ON                   \
  -DENABLE_DEBUG_SYNC:BOOL=OFF                  \
  -DMYSQL_DATADIRATH=/opt/Percona-Server-5.5.27-rel28.0/var    \
  -DMYSQL_MAINTAINER_MODE:BOOL=OFF              \
  -DWITH_EXTRA_CHARSETS=all  \
  -DWITH_BIG_TABLES:BOOL=ON \
  -DWITH_FAST_MUTEXES:BOOL=ON \
  -DENABLE-PROFILING:BOOL=ON \
  -DWITH_SSL:STRING=bundled                     \
  -DWITH_UNIT_TESTS:BOOL=OFF                    \
  -DWITH_ZLIB:STRING=bundled                    \
  -DWITH_PARTITION_STORAGE_ENGINE:BOOL=ON       \
  -DWITH_PLUGINS=heap,csv,partition,innodb_plugin,myisam \
  -DEFAULT_COLLATION=utf8_general_ci            \
  -DEFAULT_CHARSET=utf8                            \
  -DENABLED_ASSEMBLER:BOOL=ON                   \
  -DENABLED_LOCAL_INFILE:BOOL=ON                \
  -DENABLED_THREAD_SAFE_CLIENT:BOOL=ON          \
  -DENABLED_EMBEDDED_SERVER:BOOL=OFF             \
  -DWITH_CLIENT_LDFLAGS:STRING=all-static                 \
  -DINSTALL_LAYOUT:STRING=STANDALONE            \
  -DCOMMUNITY_BUILD:BOOL=ON;
make


Linking C static library libmysqlclient.a
/usr/bin/ar: creating /root/src/lempelf/packages/Percona-Server-5.5.27-rel28.0/libmysql/libmysqlclient.a
[ 72%] Built target mysqlclient
[ 73%] Building C object plugin/percona-pam-for-mysql/CMakeFiles/dialog.dir/src/dialog.c.o
Linking C shared module dialog.so
../../probes_mysql.o.probes+0x0): multiple definition of `connection__start_semaphore'
../../probes_mysql.o.probes+0x0): first defined here
../../probes_mysql.o.probes+0x2): multiple definition of `connection__done_semaphore'
../../probes_mysql.o.probes+0x2): first defined here
../../probes_mysql.o.probes+0x4): multiple definition of `command__start_semaphore'
../../probes_mysql.o.probes+0x4): first defined here
../../probes_mysql.o.probes+0x6): multiple definition of `command__done_semaphore'
../../probes_mysql.o.probes+0x6): first defined here
../../probes_mysql.o.probes+0x: multiple definition of `query__start_semaphore'
../../probes_mysql.o.probes+0x: first defined here
../../probes_mysql.o:(.probes+0xa): multiple definition of `query__done_semaphore'
../../probes_mysql.o:(.probes+0xa): first defined here
../../probes_mysql.o:(.probes+0xc): multiple definition of `query__parse__start_semaphore'
../../probes_mysql.o:(.probes+0xc): first defined here
../../probes_mysql.o:(.probes+0xe): multiple definition of `query__parse__done_semaphore'
../../probes_mysql.o:(.probes+0xe): first defined here
../../probes_mysql.o:(.probes+0x10): multiple definition of `query__cache__hit_semaphore'
../../probes_mysql.o:(.probes+0x10): first defined here
../../probes_mysql.o:(.probes+0x12): multiple definition of `query__cache__miss_semaphore'
../../probes_mysql.o:(.probes+0x12): first defined here
../../probes_mysql.o:(.probes+0x14): multiple definition of `query__exec__start_semaphore'
../../probes_mysql.o:(.probes+0x14): first defined here
../../probes_mysql.o:(.probes+0x16): multiple definition of `query__exec__done_semaphore'
../../probes_mysql.o:(.probes+0x16): first defined here
../../probes_mysql.o:(.probes+0x1: multiple definition of `insert__row__start_semaphore'
../../probes_mysql.o:(.probes+0x1: first defined here
../../probes_mysql.o:(.probes+0x1a): multiple definition of `insert__row__done_semaphore'
../../probes_mysql.o:(.probes+0x1a): first defined here
../../probes_mysql.o:(.probes+0x1c): multiple definition of `update__row__start_semaphore'
../../probes_mysql.o:(.probes+0x1c): first defined here
../../probes_mysql.o:(.probes+0x1e): multiple definition of `update__row__done_semaphore'
../../probes_mysql.o:(.probes+0x1e): first defined here
../../probes_mysql.o:(.probes+0x20): multiple definition of `delete__row__start_semaphore'
../../probes_mysql.o:(.probes+0x20): first defined here
../../probes_mysql.o:(.probes+0x22): multiple definition of `delete__row__done_semaphore'
../../probes_mysql.o:(.probes+0x22): first defined here
../../probes_mysql.o:(.probes+0x24): multiple definition of `read__row__start_semaphore'
../../probes_mysql.o:(.probes+0x24): first defined here
../../probes_mysql.o:(.probes+0x26): multiple definition of `read__row__done_semaphore'
../../probes_mysql.o:(.probes+0x26): first defined here
../../probes_mysql.o:(.probes+0x2: multiple definition of `index__read__row__start_semaphore'
../../probes_mysql.o:(.probes+0x2: first defined here
../../probes_mysql.o:(.probes+0x2a): multiple definition of `index__read__row__done_semaphore'
../../probes_mysql.o:(.probes+0x2a): first defined here
../../probes_mysql.o:(.probes+0x2c): multiple definition of `handler__rdlock__start_semaphore'
../../probes_mysql.o:(.probes+0x2c): first defined here
../../probes_mysql.o:(.probes+0x2e): multiple definition of `handler__wrlock__start_semaphore'
../../probes_mysql.o:(.probes+0x2e): first defined here
../../probes_mysql.o:(.probes+0x30): multiple definition of `handler__unlock__start_semaphore'
../../probes_mysql.o:(.probes+0x30): first defined here
../../probes_mysql.o:(.probes+0x32): multiple definition of `handler__rdlock__done_semaphore'
../../probes_mysql.o:(.probes+0x32): first defined here
../../probes_mysql.o:(.probes+0x34): multiple definition of `handler__wrlock__done_semaphore'
../../probes_mysql.o:(.probes+0x34): first defined here
../../probes_mysql.o:(.probes+0x36): multiple definition of `handler__unlock__done_semaphore'
../../probes_mysql.o:(.probes+0x36): first defined here
../../probes_mysql.o:(.probes+0x3: multiple definition of `filesort__start_semaphore'
../../probes_mysql.o:(.probes+0x3: first defined here
../../probes_mysql.o:(.probes+0x3a): multiple definition of `filesort__done_semaphore'
../../probes_mysql.o:(.probes+0x3a): first defined here
../../probes_mysql.o:(.probes+0x3c): multiple definition of `select__start_semaphore'
../../probes_mysql.o:(.probes+0x3c): first defined here
../../probes_mysql.o:(.probes+0x3e): multiple definition of `select__done_semaphore'
../../probes_mysql.o:(.probes+0x3e): first defined here
../../probes_mysql.o:(.probes+0x40): multiple definition of `insert__start_semaphore'
../../probes_mysql.o:(.probes+0x40): first defined here
../../probes_mysql.o:(.probes+0x42): multiple definition of `insert__done_semaphore'
../../probes_mysql.o:(.probes+0x42): first defined here
../../probes_mysql.o:(.probes+0x44): multiple definition of `insert__select__start_semaphore'
../../probes_mysql.o:(.probes+0x44): first defined here
../../probes_mysql.o:(.probes+0x46): multiple definition of `insert__select__done_semaphore'
../../probes_mysql.o:(.probes+0x46): first defined here
../../probes_mysql.o:(.probes+0x4: multiple definition of `update__start_semaphore'
../../probes_mysql.o:(.probes+0x4: first defined here
../../probes_mysql.o:(.probes+0x4a): multiple definition of `update__done_semaphore'
../../probes_mysql.o:(.probes+0x4a): first defined here
../../probes_mysql.o:(.probes+0x4c): multiple definition of `multi__update__start_semaphore'
../../probes_mysql.o:(.probes+0x4c): first defined here
../../probes_mysql.o:(.probes+0x4e): multiple definition of `multi__update__done_semaphore'
../../probes_mysql.o:(.probes+0x4e): first defined here
../../probes_mysql.o:(.probes+0x50): multiple definition of `delete__start_semaphore'
../../probes_mysql.o:(.probes+0x50): first defined here
../../probes_mysql.o:(.probes+0x52): multiple definition of `delete__done_semaphore'
../../probes_mysql.o:(.probes+0x52): first defined here
../../probes_mysql.o:(.probes+0x54): multiple definition of `multi__delete__start_semaphore'
../../probes_mysql.o:(.probes+0x54): first defined here
../../probes_mysql.o:(.probes+0x56): multiple definition of `multi__delete__done_semaphore'
../../probes_mysql.o:(.probes+0x56): first defined here
../../probes_mysql.o:(.probes+0x58): multiple definition of `net__read__start_semaphore'
../../probes_mysql.o:(.probes+0x58): first defined here
../../probes_mysql.o:(.probes+0x5a): multiple definition of `net__read__done_semaphore'
../../probes_mysql.o:(.probes+0x5a): first defined here
../../probes_mysql.o:(.probes+0x5c): multiple definition of `net__write__start_semaphore'
../../probes_mysql.o:(.probes+0x5c): first defined here
../../probes_mysql.o:(.probes+0x5e): multiple definition of `net__write__done_semaphore'
../../probes_mysql.o:(.probes+0x5e): first defined here
../../probes_mysql.o:(.probes+0x60): multiple definition of `keycache__read__start_semaphore'
../../probes_mysql.o:(.probes+0x60): first defined here
../../probes_mysql.o:(.probes+0x62): multiple definition of `keycache__read__block_semaphore'
../../probes_mysql.o:(.probes+0x62): first defined here
../../probes_mysql.o:(.probes+0x64): multiple definition of `keycache__read__hit_semaphore'
../../probes_mysql.o:(.probes+0x64): first defined here
../../probes_mysql.o:(.probes+0x66): multiple definition of `keycache__read__miss_semaphore'
../../probes_mysql.o:(.probes+0x66): first defined here
../../probes_mysql.o:(.probes+0x68): multiple definition of `keycache__read__done_semaphore'
../../probes_mysql.o:(.probes+0x68): first defined here
../../probes_mysql.o:(.probes+0x6a): multiple definition of `keycache__write__start_semaphore'
../../probes_mysql.o:(.probes+0x6a): first defined here
../../probes_mysql.o:(.probes+0x6c): multiple definition of `keycache__write__block_semaphore'
../../probes_mysql.o:(.probes+0x6c): first defined here
../../probes_mysql.o:(.probes+0x6e): multiple definition of `keycache__write__done_semaphore'
../../probes_mysql.o:(.probes+0x6e): first defined here
collect2: ld 返回 1
make[2]: *** [plugin/percona-pam-for-mysql/dialog.so] 错误 1
make[1]: *** [plugin/percona-pam-for-mysql/CMakeFiles/dialog.dir/all] 错误 2
make: *** [all] 错误 2

Percona-Server-5.5.27-rel28.0编译到73%时出错
centos5.5 64位 中文语言,在别一台centos5.8 64位 英文语言环境下可以编译通过.
之前的几个版本除 Percona-Server-5.5.23-rel25.3之外也不能编译通过,
有谁遇到相同原因吗?






论坛徽章:
0
2 [报告]
发表于 2012-08-27 18:38 |只看该作者
没遇到过啊

论坛徽章:
2
2015年迎新春徽章
日期:2015-03-04 09:55:28IT运维版块每日发帖之星
日期:2016-07-29 06:20:00
3 [报告]
发表于 2012-08-28 04:35 |只看该作者
贴一下系统环境和cmake版本之类的信息

论坛徽章:
0
4 [报告]
发表于 2012-08-28 10:45 |只看该作者
cmake version 2.6-patch 4


gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-50)
Copyright (C) 2006 Free Software Foundation, Inc.


Linux cc 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

论坛徽章:
8
CU大牛徽章
日期:2013-09-18 15:20:48CU大牛徽章
日期:2013-09-18 15:20:58CU大牛徽章
日期:2013-09-18 15:21:06CU大牛徽章
日期:2013-09-18 15:21:12CU大牛徽章
日期:2013-09-18 15:21:17天秤座
日期:2013-10-30 14:01:03摩羯座
日期:2013-11-29 18:02:31luobin
日期:2016-06-17 17:46:36
5 [报告]
发表于 2012-08-30 13:21 |只看该作者
我脚着多半是你环境问题,少装了啥报。

论坛徽章:
0
6 [报告]
发表于 2012-09-10 12:13 |只看该作者
我也遇到了同样的问题。求救 。

论坛徽章:
0
7 [报告]
发表于 2012-11-05 17:21 |只看该作者
有没有人也遇到这个问题啊 ,求助啊

论坛徽章:
0
8 [报告]
发表于 2012-11-05 17:26 |只看该作者
回复 1# godamen

这个问题解决了吗??

   

论坛徽章:
0
9 [报告]
发表于 2012-11-06 10:13 |只看该作者
没解决 换版本,多试几个吧

论坛徽章:
0
10 [报告]
发表于 2013-12-04 14:11 |只看该作者
今天在centos5.8 64位 英文语言环境下编译Percona-Server-5.5.28-rel29.2.tar.gz时又出此错误,看来不是操作系统问题,一阵鼓捣后通过.

安装或升级pam-devel
yum install pam pam-devel

mysql编译时加上
  -DENABLE_DTRACE=OFF          \  
  -DWITH_PAM=ON   \
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP