[569141] Fix C++98 regressions

FORTE is supposed to compile and run on C++98 compilers, since there are
still a few users without upgrade options.

This patch fixes some minor regression in the mqtt modules.  It also
fixes incorrect initialisation of the MQTT sync object, and it enhances
POSIX sync objects in a C++98-compatible way to prevent being used
incorrectly in the future.  Finally, it fixes incorrect feature
detection in presence of standard CMake settings for language
features (CMAKE_CXX_STANDARD etc.).

Conflicts:
	src/arch/posix/forte_sync.h

Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=569141
Signed-off-by: Jörg Walter <joerg.walter@offis.de>
Change-Id: I143a7dbdf063646d31b64ad92d6415072527d4b9
6 files changed
tree: 1cab5342218445a06ab09b6a2d9e98c7a05732ca
  1. .settings/
  2. .tito/
  3. buildsupport/
  4. doc/
  5. docker/
  6. src/
  7. systemd/
  8. systemtests/
  9. tests/
  10. .cproject
  11. .gitignore
  12. .gitreview
  13. .project
  14. 4diac-forte.spec
  15. about.html
  16. CMakeLists.txt
  17. Doxyfile
  18. epl-2.0.html
  19. forte_config.h.in
  20. fortestyle.xml
  21. notice.html
  22. README.md
  23. setup_digime74.sh
  24. setup_lmsEv3.sh
  25. setup_phycoreat91.sh
  26. setup_plcnext.sh
  27. setup_posix-ppc.sh
  28. setup_posix.sh
README.md

Building 4DIAC Forte

Standard POSIX build

./setup_posix.sh
cd bin/posix
make

Resetting CMake files

In case you ran CMake with invalid options it might help to reset the CMake state by deleting CMake intermediate files:

rm -Rf CMakeCache.txt CMakeFiles/

Building a local RPM

For building local RPMs you can use (tito)[https://github.com/dgoodwin/tito]

tito build --test --rpm