Linking nDPI on MacOS 12.7.2 fails
I am trying to compile nDPI and link nDPId against it.
All of this is done within Github Actions: https://github.com/utoni/nDPId/actions/runs/7460017752/job/20297224832
Compilation is done with the default CC using CFLAGS: -Werror -std=c11 -D_DEFAULT_SOURCE=1 -D_GNU_SOURCE=1 -Wall -Wextra -O0 -g3 -fno-omit-frame-pointer.
However, I get a lot of duplicate symbol errors. The strange thing is that during linkage, MacOS invokes clang instead of cc. Could that be the root cause?
(I do not own any MacOS devices or VM, so can not reproduce locally.)
@utoni, do you still have this issue?
Not sure, but I guess that issue still exists due to the improper use of autotools. But I fixed that within nDPId build scripts AFAIR.