undefined reference to 解决

源码安装mysql中间件atlas,make时报错

./.libs/libmysql-proxy.so: undefined reference to `EVP_CIPHER_CTX_init'
./.libs/libmysql-proxy.so: undefined reference to `EVP_DecodeFinal'
./.libs/libmysql-proxy.so: undefined reference to `EVP_EncodeFinal'
./.libs/libmysql-proxy.so: undefined reference to `EVP_EncodeUpdate'
./.libs/libmysql-proxy.so: undefined reference to `EVP_DecodeInit'
./.libs/libmysql-proxy.so: undefined reference to `EVP_des_ecb'
./.libs/libmysql-proxy.so: undefined reference to `EVP_DecryptFinal_ex'
./.libs/libmysql-proxy.so: undefined reference to `EVP_CIPHER_CTX_cleanup'
./.libs/libmysql-proxy.so: undefined reference to `EVP_DecryptInit_ex'
./.libs/libmysql-proxy.so: undefined reference to `EVP_DecodeUpdate'
./.libs/libmysql-proxy.so: undefined reference to `EVP_DecryptUpdate'
./.libs/libmysql-proxy.so: undefined reference to `EVP_EncryptFinal_ex'
./.libs/libmysql-proxy.so: undefined reference to `EVP_EncodeInit'
./.libs/libmysql-proxy.so: undefined reference to `EVP_EncryptInit_ex'
./.libs/libmysql-proxy.so: undefined reference to `EVP_EncryptUpdate'
collect2: ld returned 1 exit status
make[3]: *** [mysql-binlog-dump] Error 1
make[3]: Leaving directory `/root/Atlas-master/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/Atlas-master/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Atlas-master'
make: *** [all] Error 2
解决:configure时LDFLAGS使用-lcrypto。在安装脚本bootstrap.sh中已指出。

参考:http://blog.sina.com.cn/s/blog_45497dfa0100nxi3.html

你可能感兴趣的:(mysql中间件)