问题
I'm building my qt application and on a linking stage I'm getting the following problem:
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib/libQt5Network.so: undefined reference to `EC_curve_nist2nid'
collect2: error: ld returned 1 exit status
I was not getting this problem before and I have a feeling that it is in some way related to system update (though nor qt nor openssl packages were updated).
My system is Arch Linux Qt 5.5.1 openssl 1.0.2.f-1
And btw the symbol is present in libcrypto:
nm /usr/lib/libcrypto.so -C |grep EC_curve_nist2nid
00000000000e6bb0 T EC_curve_nist2nid
In case it would be helpful:
stvad@stvadpc apps %ldd /usr/lib/libQt5Network.so
...
libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00007fcb68e0c000)
libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007fcb68994000)
...
来源:https://stackoverflow.com/questions/35627998/linking-error-libqt5network-so-undefined-reference-to-ec-curve-nist2nid