2 arrowbest arrowbest 于 2016.04.05 10:46 提问

proftpd+mysql 安装报异常求助

mysql 通过rpm安装
MySQL-client-5.5.37-1.linux2.6.x86_64.rpm
MySQL-devel-5.5.46-1.linux2.6.x86_64.rpm
MySQL-server-5.5.37-1.linux2.6.x86_64.rpm

安装proftpd时在make时包异常
配置为./configure --with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql --with-includes=/usr/include/mysql --with-libraries=/usr/lib64/mysql

make

异常为
/usr/lib64/mysql//libmysqlclient.a(my_thr_init.c.o): In function my_thread_init':
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:324: undefined reference to
pthread_getspecific'
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:342: undefined reference to pthread_setspecific'
/usr/lib64/mysql//libmysqlclient.a(my_thr_init.c.o): In function
my_thread_global_reinit':
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:115: undefined reference to pthread_getspecific'
/usr/lib64/mysql//libmysqlclient.a(my_thr_init.c.o): In function
my_thread_global_init':
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:154: undefined reference to pthread_mutexattr_init'
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:155: undefined reference to
pthread_mutexattr_settype'
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:163: undefined reference to pthread_mutexattr_init'
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:164: undefined reference to
pthread_mutexattr_settype'
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:168: undefined reference to pthread_key_create'
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:205: undefined reference to
pthread_create'
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:207: undefined reference to pthread_join'
/usr/lib64/mysql//libmysqlclient.a(my_thr_init.c.o): In function
my_thread_global_end':
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:261: undefined reference to pthread_key_delete'
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:263: undefined reference to
pthread_mutexattr_destroy'
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:266: undefined reference to pthread_mutexattr_destroy'
/usr/lib64/mysql//libmysqlclient.a(my_thr_init.c.o): In function
my_thread_end':
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:380: undefined reference to pthread_getspecific'
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:427: undefined reference to
pthread_setspecific'
/usr/lib64/mysql//libmysqlclient.a(my_thr_init.c.o): In function _my_thread_var':
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:432: undefined reference to
pthread_getspecific'
/usr/lib64/mysql//libmysqlclient.a(thr_mutex.c.o): In function my_pthread_fastmutex_lock':
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/thr_mutex.c:481: undefined reference to
pthread_mutex_trylock'
/usr/lib64/mysql//libmysqlclient.a(charset.c.o): In function get_charset_name':
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/charset.c:533: undefined reference to
pthread_once'
/usr/lib64/mysql//libmysqlclient.a(charset.c.o): In function get_charset_number':
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/charset.c:522: undefined reference to
pthread_once'
/usr/lib64/mysql//libmysqlclient.a(charset.c.o): In function get_charset_by_csname':
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/charset.c:644: undefined reference to
pthread_once'
/usr/lib64/mysql//libmysqlclient.a(charset.c.o): In function get_charset':
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/charset.c:597: undefined reference to
pthread_once'
/usr/lib64/mysql//libmysqlclient.a(charset.c.o): In function get_collation_number':
/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/charset.c:484: undefined reference to
pthread_once'
/usr/lib64/mysql//libmysqlclient.a(charset.c.o):/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/charset.c:619: more undefined references to `pthread_once' follow
collect2: ld returned 1 exit status
make: *** [proftpd] Error 1

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!