Linking error: libQt5Network.so: undefined reference to `EC_curve_nist2nid'

女生的网名这么多〃 提交于 2019-12-12 18:18:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!