geometer / FBReader

Official FBReader C++ project repository
http://www.fbreader.org/
540 stars 170 forks source link

Build error when upgrading from curl 7.61.1 -> 7.62.0 #310

Open obadz opened 5 years ago

obadz commented 5 years ago

Build error:

make[2]: Entering directory '/build/source/zlibrary/core/src/unix/curl'
Compiling ZLCurlNetworkManager.o ...ZLCurlNetworkManager.cpp: In member function 'virtual std::__cxx11::string ZLCurlNetworkManager::perform(const Vector&) const':
ZLCurlNetworkManager.cpp:288:5: error: duplicate case value
     case CURLE_SSL_CACERT:
     ^~~~
ZLCurlNetworkManager.cpp:282:5: note: previously used here
     case CURLE_PEER_FAILED_VERIFICATION:
     ^~~~
make[2]: *** [/build/source/zlibrary/core/../../makefiles/subdir.mk:15: ZLCurlNetworkManager.o] Error 1
make[2]: Leaving directory '/build/source/zlibrary/core/src/unix/curl'
make[1]: *** [Makefile:41: .objects] Error 1
make[1]: Leaving directory '/build/source/zlibrary/core'
make: *** [Makefile:9: all] Error 1
builder for '/nix/store/68wwfvvga47pzjfwx2awzi49w5qbf8z6-fbreader-qt4-0.99.6.drv' failed with exit code 2

Relevant curl commit: https://github.com/curl/curl/commit/3f3b26d6feb0667714902e836af608094235fca2

Mentioned in:

https://github.com/NixOS/nixpkgs/pull/49514#issuecomment-441371276 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913382

obadz commented 5 years ago

Thanks for #311 @vcunat!