0.3.0: build fails
gcc 11.0.1
[tkloczko@barrel libopenraw-0.3.0]$ make
make all-recursive
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libopenraw-0.3.0'
Making all in lib
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libopenraw-0.3.0/lib'
make all-am
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libopenraw-0.3.0/lib'
/bin/sh ../libtool --tag=CXX --mode=compile /usr/bin/g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -fvisibility=hidden -Wchar-subscripts -Wcast-align -Wextra -Wexceptions -Wformat -Wformat-nonliteral -Wformat-security -Wno-gnu-zero-variadic-macro-arguments -Wlogical-not-parentheses -Wmisleading-indentation -Wmissing-noreturn -Woverloaded-virtual -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wno-suggest-attribute=noreturn -Wsuggest-override -Wunreachable-code -Wunused -Wwrite-strings -c -o cr2file.lo cr2file.cpp
libtool: compile: /usr/bin/g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -fvisibility=hidden -Wchar-subscripts -Wcast-align -Wextra -Wexceptions -Wformat -Wformat-nonliteral -Wformat-security -Wno-gnu-zero-variadic-macro-arguments -Wlogical-not-parentheses -Wmisleading-indentation -Wmissing-noreturn -Woverloaded-virtual -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wno-suggest-attribute=noreturn -Wsuggest-override -Wunreachable-code -Wunused -Wwrite-strings -c cr2file.cpp -fPIC -DPIC -o .libs/cr2file.o
cr2file.cpp: In member function ‘or_error OpenRaw::Internals::Cr2File::getRawDataTif(OpenRaw::RawData&, uint32_t)’:
cr2file.cpp:600:39: error: ‘numeric_limits’ is not a member of ‘std’
600 | m_container->size(), std::numeric_limits<uint32_t>::max());
| ^~~~~~~~~~~~~~
cr2file.cpp:600:62: error: expected primary-expression before ‘>’ token
600 | m_container->size(), std::numeric_limits<uint32_t>::max());
| ^
cr2file.cpp:600:65: error: ‘::max’ has not been declared; did you mean ‘std::max’?
600 | m_container->size(), std::numeric_limits<uint32_t>::max());
| ^~~
| std::max
In file included from /usr/include/c++/11/algorithm:62,
from trace.hpp:25,
from ifdentry.hpp:34,
from ifddir.hpp:34,
from rawfile.hpp:29,
from cr2file.cpp:33:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
3467 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-gnu-zero-variadic-macro-arguments’ may have been intended to silence earlier diagnostics
make[3]: *** [Makefile:1101: cr2file.lo] Error 1
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libopenraw-0.3.0/lib'
make[2]: *** [Makefile:803: all] Error 2
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libopenraw-0.3.0/lib'
make[1]: *** [Makefile:437: all-recursive] Error 1
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libopenraw-0.3.0'
make: *** [Makefile:369: all] Error 2