Linking issue with libmqttc #476
Replies: 3 comments 2 replies
-
Can you tweak the cmake compile command like this? Line 95 in 59b57e2 Added -DCMAKE_POSITION_INDEPENDENT_CODE=ON option to turn on -fPIC |
Beta Was this translation helpful? Give feedback.
-
Not sure it made any difference than with me forcing it using CFLAGS. Still getting the error. I may just force libmqttc to build as dynamic, it's generally preferred from a distro point of view anyway, I just have to manage a SOVERSION since upstream doesn't. |
Beta Was this translation helpful? Give feedback.
-
Looks like it was a bad cache package so I wasn't getting the latest mqtt-c that I built... I hope this won't be an issue but jwt in Fedora is built with OpenSSL 3 while I had to use the 1.1 compat package for neuron: Is this a MQTT limitation or just an architecture decision for neuron? |
Beta Was this translation helpful? Give feedback.
-
I've been working on getting all the build dependencies not already in Fedora in my COPR[0] and running into a problem:
I added the following to the libmqttc library and verified -fPIC -pie is in the build flags[1] per the recommendation from the hardening page[2] but the error remains.
Any ideas?
[0] https://copr.fedorainfracloud.org/coprs/hobbes1069/IIoT/
[1] https://download.copr.fedorainfracloud.org/results/hobbes1069/IIoT/fedora-rawhide-x86_64/04386803-mqtt-c/builder-live.log.gz
[2] https://fedoraproject.org/wiki/Changes/Harden_All_Packages
Beta Was this translation helpful? Give feedback.
All reactions