Attempting to build apertium-3.5.0 on OpenBSD with Clang 5.0.1 fails. (lttoolbox-3.4.0 was already successfully installed.)
c++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/lttoolbox-3.4 -I/usr/local/lib/lttoolbox-3.4/include -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/lttoolbox-3.4 -I/usr/local/lib/lttoolbox-3.4/include -I/usr/local/include/libxml2 -I/usr/local/include -Wall -Wextra -O2 -pipe -g -std=c++2a -MT collection.lo -MD -MP -MF .deps/collection.Tpo -c collection.cc -fPIC -DPIC -o .libs/collection.o In file included from collection.cc:20: In file included from ../apertium/serialiser.h:28: /usr/local/include/lttoolbox-3.4/lttoolbox/serialiser.h:239:34: error: member reference base type 'const unsigned long' is not a structure or union uint64_t size = SerialisedType_.size(); ---------------^---- collection.cc:96:23: note: in instantiation of member function '(anonymous namespace)::Serialiser<unsigned long>::serialise' requested here Serialiser<size_t>::serialise(element.size(), serialised); ^ In file included from collection.cc:20: In file included from ../apertium/serialiser.h:28: /usr/local/include/lttoolbox-3.4/lttoolbox/serialiser.h:242:17: error: type 'unsigned long' cannot be used prior to '::' because it has no members for (typename Container::const_iterator value_type_ = ^ In file included from collection.cc:21: In file included from ../apertium/deserialiser.h:28: /usr/local/include/lttoolbox-3.4/lttoolbox/deserialiser.h:212:53: error: member reference base type 'typename std::remove_const<unsigned long>::type' (aka 'unsigned long') is not a structure or union std::inserter(SerialisedType_, SerialisedType_.begin()); -~~~~~~~~~~~~~~^~~~~~ collection.cc:105:39: note: in instantiation of member function 'Deserialiser<unsigned long>::deserialise' requested here size_t size = Deserialiser<size_t>::deserialise(serialised); ^ 3 errors generated. Error while executing c++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/lttoolbox-3.4 -I/usr/local/lib/lttoolbox-3.4/include -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/lttoolbox-3.4 -I/usr/local/lib/lttoolbox-3.4/include -I/usr/local/include/libxml2 -I/usr/local/include -Wall -Wextra -O2 -pipe -g -std=c++2a -MT collection.lo -MD -MP -MF .deps/collection.Tpo -c collection.cc -fPIC -DPIC -o .libs/collection.o gmake[2]: *** [Makefile:1384: collection.lo] Error 1
Fixed by https://github.com/apertium/apertium/issues/57