编译支持证书openssl库的时候,出现DSO linker问题
/usr/bin/ld: /tmp/ccXEDaF2.o: undefined reference to symbol 'X509_free' /usr/bin/ld: note: 'X509_free' is defined in DSO /lib64/libcrypto.so.10 so try adding it to the linker command line /lib64/libcrypto.so.10: could not read symbols: Invalid operation collect2: ld returned 1 exit status make: *** [echart] Error 1
检查一下是否支持该选项
[root@41-dev src]# readelf --symbols /lib64/libcrypto.so.10 |grep X509_free 116: 0000003ed98d19e0 12 FUNC GLOBAL DEFAULT 11 X509_free 2027: 0000003ed98d2b50 12 FUNC GLOBAL DEFAULT 11 NETSCAPE_X509_free
如果支持的话,可以在ld.so.conf,添加/lib64 ,或者使用ldconfig