Open gdt opened 5 years ago
In CMakeLists.txt, changing make to gmake in the add_test line results in getting further. Obviously this is not an ok solution.
A further problem is in lib/util_mosq.c, where the following patch (in two places) avoids a syntax error during tests.
-#elif defined(__GLIBC__) && __GLIBC_PREREQ(2, 25)
+#elif defined(__GLIBC__)
Sorry Greg, I really should have anticipated the make
problem.
No need to apologize - we are making progress at quite a good pace.
I think this issue can be closed as solved
@ckrey Do you mean that you have successfully run tests using the cmake build flavaor on systems where /usr/bin/make is not gmake? Which ones? With the latest release? master?
@gdt sorry, I didn't read carefully and misunderstood
Running "gmake tests" results in a failure, apparently because ctest somehow invokes /usr/bin/make rather than finding/using GNU make. The command that is run is
/usr/pkg/bin/ctest --force-new-ctest-process
which leads to1: Test command: /usr/bin/make "-C" "/home/n0/gdt/pkgsrc-current/pkgsrc/wip/mosquitto/work/mosquitto-1.6.1/test" "test"
I would address this by somehow having MAKE=${MAKE} put into the environment and respected, as the top-level gmake test (from the pkgsrc wrapper) should have MAKE set to gmake.