$ ./autogen.sh libtoolize: putting auxiliary files in '.'. libtoolize: linking file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: linking file 'm4/libtool.m4' libtoolize: linking file 'm4/ltoptions.m4' libtoolize: linking file 'm4/ltsugar.m4' libtoolize: linking file 'm4/ltversion.m4' libtoolize: linking file 'm4/lt~obsolete.m4' Result: All went OK, please run ./configure (with the appropriate parameters) now. $ ./configure --with-lokit-path=`pwd`/bundled/include checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking how to print strings... printf checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... no checking for mawk... mawk checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for shl_load... no checking for shl_load in -ldld... no checking for dlopen... no checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... no checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking whether make supports nested variables... yes checking how to create a pax tar archive... gnutar checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking dependency style of g++... gcc3 checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking for setcap... /sbin/setcap checking whether g++ supports C++14 or C++11... yes (-std=gnu++14) checking whether to run tests against a LibreOffice... no checking for library containing dlopen... -ldl checking for library containing png_create_write_struct... -lpng checking for library containing cap_get_proc... -lcap checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for ZLIB... yes checking for CPPUNIT... yes checking LibreOfficeKit/LibreOfficeKit.h usability... yes checking LibreOfficeKit/LibreOfficeKit.h presence... yes checking for LibreOfficeKit/LibreOfficeKit.h... yes checking Poco/Net/WebSocket.h usability... yes checking Poco/Net/WebSocket.h presence... yes checking for Poco/Net/WebSocket.h... yes checking linux/seccomp.h usability... yes checking linux/seccomp.h presence... yes checking for linux/seccomp.h... yes checking Whether OpenSSL has PKCS5_PBKDF2_HMAC()... yes checking POCO version... OK checking If we need to link with -lpcre... Yes checking for npm... /usr/bin/npm checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating test/Makefile config.status: creating loleaflet/Makefile config.status: creating loolwsd.spec config.status: creating loolwsd.xml config.status: creating debian/loolwsd.postinst config.status: creating test/run_unit.sh config.status: creating config.h config.status: config.h is unchanged config.status: executing libtool commands config.status: executing depfiles commands Configuration: LOKit path /data/rene/tmp/online/bundled/include LO path /usr/lib64/libreoffice LO integration tests no integration tests SSL support ssl enabled Debug & low security secure mode: product build $ make # to compile (CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/rene/tmp/online/missing autoheader) rm -f stamp-h1 touch config.h.in cd . && /bin/bash ./config.status config.h config.status: creating config.h config.status: config.h is unchanged make all-recursive make[1]: Entering directory '/data/rene/tmp/online' Making all in . make[2]: Entering directory '/data/rene/tmp/online' depbase=`echo common/Crypto.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -DHAVE_CONFIG_H -I. -pthread -DLOOLWSD_DATADIR='"/usr/local/share/loolwsd"' -DLOOLWSD_CONFIGDIR='"/usr/local/etc/loolwsd"' -DDEBUG_ABSSRCDIR='"/home/rene/tmp/online"' -I./common -I./net -I./wsd -I./kit -DNDEBUG -I/data/rene/tmp/online/bundled/include -g -O2 -std=c++11 -Wall -Wextra -Werror -Wshadow -MT common/Crypto.o -MD -MP -MF $depbase.Tpo -c -o common/Crypto.o common/Crypto.cpp &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo wsd/Admin.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -DHAVE_CONFIG_H -I. -pthread -DLOOLWSD_DATADIR='"/usr/local/share/loolwsd"' -DLOOLWSD_CONFIGDIR='"/usr/local/etc/loolwsd"' -DDEBUG_ABSSRCDIR='"/home/rene/tmp/online"' -I./common -I./net -I./wsd -I./kit -DNDEBUG -I/data/rene/tmp/online/bundled/include -g -O2 -std=c++11 -Wall -Wextra -Werror -Wshadow -MT wsd/Admin.o -MD -MP -MF $depbase.Tpo -c -o wsd/Admin.o wsd/Admin.cpp &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./common/LOOLWebSocket.hpp:20:0, from ./common/Unit.hpp:17, from ./net/WebSocketHandler.hpp:19, from wsd/AdminModel.hpp:20, from wsd/Admin.hpp:15, from wsd/Admin.cpp:22: ./common/Protocol.hpp: In function 'std::__cxx11::string LOOLProtocol::getAbbreviatedMessage(const string&)': ./common/Protocol.hpp:285:93: error: no matching function for call to 'min(std::__cxx11::basic_string::size_type, long unsigned int)' const auto pos = getDelimiterPosition(message.data(), std::min(message.size(), 500UL), '\n'); ^ In file included from /usr/include/c++/7/bits/char_traits.h:39:0, from /usr/include/c++/7/string:40, from /usr/include/c++/7/stdexcept:39, from /usr/include/c++/7/array:39, from /usr/include/c++/7/tuple:39, from /usr/include/c++/7/mutex:38, from wsd/Admin.cpp:13: /usr/include/c++/7/bits/stl_algobase.h:195:5: note: candidate: template const _Tp& std::min(const _Tp&, const _Tp&) min(const _Tp& __a, const _Tp& __b) ^~~ /usr/include/c++/7/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed: In file included from ./common/LOOLWebSocket.hpp:20:0, from ./common/Unit.hpp:17, from ./net/WebSocketHandler.hpp:19, from wsd/AdminModel.hpp:20, from wsd/Admin.hpp:15, from wsd/Admin.cpp:22: ./common/Protocol.hpp:285:93: note: deduced conflicting types for parameter 'const _Tp' ('unsigned int' and 'long unsigned int') const auto pos = getDelimiterPosition(message.data(), std::min(message.size(), 500UL), '\n'); ^ In file included from /usr/include/c++/7/bits/char_traits.h:39:0, from /usr/include/c++/7/string:40, from /usr/include/c++/7/stdexcept:39, from /usr/include/c++/7/array:39, from /usr/include/c++/7/tuple:39, from /usr/include/c++/7/mutex:38, from wsd/Admin.cpp:13: /usr/include/c++/7/bits/stl_algobase.h:243:5: note: candidate: template const _Tp& std::min(const _Tp&, const _Tp&, _Compare) min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^~~ /usr/include/c++/7/bits/stl_algobase.h:243:5: note: template argument deduction/substitution failed: In file included from ./common/LOOLWebSocket.hpp:20:0, from ./common/Unit.hpp:17, from ./net/WebSocketHandler.hpp:19, from wsd/AdminModel.hpp:20, from wsd/Admin.hpp:15, from wsd/Admin.cpp:22: ./common/Protocol.hpp:285:93: note: deduced conflicting types for parameter 'const _Tp' ('unsigned int' and 'long unsigned int') const auto pos = getDelimiterPosition(message.data(), std::min(message.size(), 500UL), '\n'); ^ In file included from /usr/include/c++/7/algorithm:62:0, from /usr/include/Poco/String.h:24, from /usr/include/Poco/Net/NameValueCollection.h:22, from /usr/include/Poco/Net/MessageHeader.h:22, from /usr/include/Poco/Net/HTTPMessage.h:22, from /usr/include/Poco/Net/HTTPRequest.h:22, from wsd/Admin.cpp:18: /usr/include/c++/7/bits/stl_algo.h:3450:5: note: candidate: template _Tp std::min(std::initializer_list<_Tp>) min(initializer_list<_Tp> __l) ^~~ /usr/include/c++/7/bits/stl_algo.h:3450:5: note: template argument deduction/substitution failed: In file included from ./common/LOOLWebSocket.hpp:20:0, from ./common/Unit.hpp:17, from ./net/WebSocketHandler.hpp:19, from wsd/AdminModel.hpp:20, from wsd/Admin.hpp:15, from wsd/Admin.cpp:22: ./common/Protocol.hpp:285:93: note: mismatched types 'std::initializer_list<_Tp>' and 'unsigned int' const auto pos = getDelimiterPosition(message.data(), std::min(message.size(), 500UL), '\n'); ^ In file included from /usr/include/c++/7/algorithm:62:0, from /usr/include/Poco/String.h:24, from /usr/include/Poco/Net/NameValueCollection.h:22, from /usr/include/Poco/Net/MessageHeader.h:22, from /usr/include/Poco/Net/HTTPMessage.h:22, from /usr/include/Poco/Net/HTTPRequest.h:22, from wsd/Admin.cpp:18: /usr/include/c++/7/bits/stl_algo.h:3456:5: note: candidate: template _Tp std::min(std::initializer_list<_Tp>, _Compare) min(initializer_list<_Tp> __l, _Compare __comp) ^~~ /usr/include/c++/7/bits/stl_algo.h:3456:5: note: template argument deduction/substitution failed: In file included from ./common/LOOLWebSocket.hpp:20:0, from ./common/Unit.hpp:17, from ./net/WebSocketHandler.hpp:19, from wsd/AdminModel.hpp:20, from wsd/Admin.hpp:15, from wsd/Admin.cpp:22: ./common/Protocol.hpp:285:93: note: mismatched types 'std::initializer_list<_Tp>' and 'unsigned int' const auto pos = getDelimiterPosition(message.data(), std::min(message.size(), 500UL), '\n'); ^ In file included from wsd/AdminModel.hpp:20:0, from wsd/Admin.hpp:15, from wsd/Admin.cpp:22: ./net/WebSocketHandler.hpp: In static member function 'static int WebSocketHandler::sendFrame(const std::shared_ptr&, const char*, size_t, unsigned char, bool)': ./net/WebSocketHandler.hpp:359:53: error: right shift count >= width of type [-Werror=shift-count-overflow] out.push_back(static_cast((len >> 56) & 0xff)); ^~ ./net/WebSocketHandler.hpp:360:53: error: right shift count >= width of type [-Werror=shift-count-overflow] out.push_back(static_cast((len >> 48) & 0xff)); ^~ ./net/WebSocketHandler.hpp:361:53: error: right shift count >= width of type [-Werror=shift-count-overflow] out.push_back(static_cast((len >> 40) & 0xff)); ^~ ./net/WebSocketHandler.hpp:362:53: error: right shift count >= width of type [-Werror=shift-count-overflow] out.push_back(static_cast((len >> 32) & 0xff)); ^~ cc1plus: all warnings being treated as errors Makefile:1198: recipe for target 'wsd/Admin.o' failed make[2]: *** [wsd/Admin.o] Error 1 make[2]: Leaving directory '/data/rene/tmp/online' Makefile:1762: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/data/rene/tmp/online' Makefile:755: recipe for target 'all' failed make: *** [all] Error 2