muttleyxd / arma3-unix-launcher

Launcher for Linux and Mac ArmA 3
MIT License
210 stars 43 forks source link

Compilation of curlpp fails #287

Open klausman opened 1 day ago

klausman commented 1 day ago

$ make VERBOSE=1
/usr/bin/cmake -S/home/klausman/src/arma3-unix-launcher -B/home/klausman/src/arma3-unix-launcher/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/klausman/src/arma3-unix-launcher/build/CMakeFiles /home/klausman/src/arma3-unix-launcher/build//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/klausman/src/arma3-unix-launcher/build'
make  -f _deps/curlpp-build/CMakeFiles/curlpp.dir/build.make _deps/curlpp-build/CMakeFiles/curlpp.dir/depend
make[2]: Entering directory '/home/klausman/src/arma3-unix-launcher/build'
cd /home/klausman/src/arma3-unix-launcher/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/klausman/src/arma3-unix-launcher /home/klausman/src/arma3-unix-launcher/build/_deps/curlpp-src /home/klausman/src/arma3-unix-launcher/build /home/klausman/src/arma3-unix-launcher/build/_deps/curlpp-build /home/klausman/src/arma3-unix-launcher/build/_deps/curlpp-build/CMakeFiles/curlpp.dir/DependInfo.cmake "--color="
Dependencies file "_deps/curlpp-build/CMakeFiles/curlpp.dir/src/curlpp/Easy.cpp.o.d" is newer than depends file "/home/klausman/src/arma3-unix-launcher/build/_deps/curlpp-build/CMakeFiles/curlpp.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target curlpp
make[2]: Leaving directory '/home/klausman/src/arma3-unix-launcher/build'
make  -f _deps/curlpp-build/CMakeFiles/curlpp.dir/build.make _deps/curlpp-build/CMakeFiles/curlpp.dir/build
make[2]: Entering directory '/home/klausman/src/arma3-unix-launcher/build'
[  1%] Building CXX object _deps/curlpp-build/CMakeFiles/curlpp.dir/src/curlpp/Easy.cpp.o
cd /home/klausman/src/arma3-unix-launcher/build/_deps/curlpp-build && /usr/bin/c++ -Dcurlpp_EXPORTS -I/home/klausman/src/arma3-unix-launcher/build/_deps/curlpp-src/include -Wall -Wextra -Wpedantic -Wno-deprecated-declarations  -std=c++11 -fPIC -MD -MT _deps/curlpp-build/CMakeFiles/curlpp.dir/src/curlpp/Easy.cpp.o -MF CMakeFiles/curlpp.dir/src/curlpp/Easy.cpp.o.d -o CMakeFiles/curlpp.dir/src/curlpp/Easy.cpp.o -c /home/klausman/src/arma3-unix-launcher/build/_deps/curlpp-src/src/curlpp/Easy.cpp
In file included from /home/klausman/src/arma3-unix-launcher/build/_deps/curlpp-src/src/curlpp/Easy.cpp:26:
/home/klausman/src/arma3-unix-launcher/build/_deps/curlpp-src/include/curlpp/Options.hpp:311:74: error: invalid conversion from ‘int’ to ‘CURLoption’ [-fpermissive]
  311 |         typedef curlpp::OptionTrait<curl_closepolicy, CURLOPT_CLOSEPOLICY> ClosePolicy;
      |                                                                          ^
      |                                                                          |
      |                                                                          int
make[2]: *** [_deps/curlpp-build/CMakeFiles/curlpp.dir/build.make:76: _deps/curlpp-build/CMakeFiles/curlpp.dir/src/curlpp/Easy.cpp.o] Error 1
make[2]: Leaving directory '/home/klausman/src/arma3-unix-launcher/build'
make[1]: *** [CMakeFiles/Makefile2:254: _deps/curlpp-build/CMakeFiles/curlpp.dir/all] Error 2
make[1]: Leaving directory '/home/klausman/src/arma3-unix-launcher/build'
make: *** [Makefile:136: all] Error 2
$ 
klausman commented 1 day ago

Seeing as curlpp has had its last commit nine years ago, I doubt filing an upstream bug is gonna help here.

klausman commented 1 day ago

More info on the environment:

MrKioZ commented 4 hours ago

facing the same issue on arch linux

klausman commented 3 hours ago

I managed to get it to build by just deleting that line. Seems to work fine, but of course many nasty things could happen, so it's decidedly not a fix.