Open rodmaz opened 2 weeks ago
Hi @rodmaz Ideally the build system should pick the network_transport.o object based on the order of the components in the CMakeLists and linker shouldn't have seen multiple definitions. This theory holds for the ota_http example on release/202210.01-LTS branch. But I suppose that's true if both components dependency for a single library. Can you help share the branch you're on and share the error logs as well as your CMakeLists changes?
But agree that it kind of introduces a subtle bug as well where one gets picked over the other and another one is ignored silently.
About differences between the two files, there are couple of reasons:
Hope this helps.
Checklist
Issue or Suggestion Description
Both coreMQTT and coreHTTP components uses different
port/network_transport
modules but sharing same symbols. When integrating both components, linker complains about duplicated symbols. Besides,network_transport.c
in coreMQTT seems more sophisticated that the one used in coreHTTP. Why?