Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/LibRaw.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-237268-82374/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/LibRaw.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/LibRaw-0.21.2-5.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/LibRaw.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-237268-82374/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/LibRaw.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.YWi6cL + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf LibRaw-0.21.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/0.21.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd LibRaw-0.21.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-fix-CVE-2025-43961-43962.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0002-fix-CVE-2025-43963.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0003-fix-CVE-2025-43964.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/LibRaw-0.21.2-CVE-2026-24450.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/LibRaw-0.21.2-CVE-2026-5342.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/LibRaw-0.21.2-CVE-2025-50950.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/LibRaw-pkgconfig.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Z0Bzqh + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd LibRaw-0.21.2 + autoreconf -if libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' configure.ac:11: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:11: You should run autoupdate. m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from... configure.ac:11: the top level configure.ac:14: warning: The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. configure.ac:14: You should run autoupdate. m4/ltoptions.m4:148: AC_LIBTOOL_WIN32_DLL is expanded from... configure.ac:14: the top level configure.ac:14: warning: AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you configure.ac:14: put the 'win32-dll' option into LT_INIT's first parameter. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... m4/ltoptions.m4:148: AC_LIBTOOL_WIN32_DLL is expanded from... configure.ac:14: the top level configure.ac:10: installing './compile' configure.ac:6: installing './config.guess' configure.ac:6: installing './config.sub' configure.ac:3: installing './install-sh' configure.ac:3: installing './missing' Makefile.am: installing './depcomp' + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2026-04-09 11:00:19.011372684 +0800 +++ ./configure 2026-04-09 11:00:19.612371077 +0800 @@ -1799,7 +1799,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2026-04-09 11:00:19.612371077 +0800 +++ ./configure 2026-04-09 11:00:19.629371031 +0800 @@ -7596,7 +7596,7 @@ # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" @@ -18733,7 +18733,7 @@ compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/OpenCloudOS/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.guess ./config.guess '/usr/lib/rpm/OpenCloudOS/config.guess' -> './config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/OpenCloudOS/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.sub ./config.sub '/usr/lib/rpm/OpenCloudOS/config.sub' -> './config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld"~' ./ltmain.sh + ./configure --build=x86_64-opencloudos-linux-gnu --host=x86_64-opencloudos-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-examples=yes --enable-jasper --enable-jpeg --enable-lcms --enable-openmp checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking build system type... x86_64-opencloudos-linux-gnu checking host system type... x86_64-opencloudos-linux-gnu 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 the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking whether make supports the include directive... yes (GNU style) checking dependency style of g++... none checking for x86_64-opencloudos-linux-gnu-gcc... gcc checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/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 x86_64-opencloudos-linux-gnu file names to x86_64-opencloudos-linux-gnu format... func_convert_file_noop checking how to convert x86_64-opencloudos-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-opencloudos-linux-gnu-file... no checking for file... file checking for x86_64-opencloudos-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-opencloudos-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-opencloudos-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-opencloudos-linux-gnu-strip... no checking for strip... strip checking for x86_64-opencloudos-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ./configure: line 7602: -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p': No such file or directory ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for x86_64-opencloudos-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.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 -m elf_x86_64) 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 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... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) 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... no 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 -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for OpenMP flag of C compiler... -fopenmp checking for jpeg_mem_src in -ljpeg... yes checking for jpeglib.h... yes checking for jas_init in -ljasper... yes checking for jasper/jasper.h... yes checking for x86_64-opencloudos-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for zlib... no configure: WARNING: zlib support cannot be enabled checking for lcms2... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating libraw.pc config.status: creating libraw_r.pc config.status: executing depfiles commands config.status: executing libtool commands + sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool + sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + /usr/bin/make -O -j32 V=1 VERBOSE=1 gcc -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DLIBRAW_NOTHREADS -w -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o samples/bin_dcraw_half-dcraw_half.o `test -f 'samples/dcraw_half.c' || echo './'`samples/dcraw_half.c In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw.h:83, from samples/dcraw_half.c:24: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | ./libraw/libraw_types.h:99:1: error: expected ',' or '}' before 'typedef' 99 | typedef long long INT64; | ^~~~~~~ In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | make: *** [Makefile:1291: samples/bin_dcraw_half-dcraw_half.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -pthread -w -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o samples/bin_half_mt-half_mt.o `test -f 'samples/half_mt.c' || echo './'`samples/half_mt.c In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw.h:83, from samples/half_mt.c:27: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | ./libraw/libraw_types.h:99:1: error: expected ',' or '}' before 'typedef' 99 | typedef long long INT64; | ^~~~~~~ In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | make: *** [Makefile:1305: samples/bin_half_mt-half_mt.o] Error 1 g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DLIBRAW_NOTHREADS -w -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o samples/bin_rawtextdump-rawtextdump.o `test -f 'samples/rawtextdump.cpp' || echo './'`samples/rawtextdump.cpp In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from samples/rawtextdump.cpp:30: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from samples/rawtextdump.cpp:21: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE samples/rawtextdump.cpp: In function 'int main(int, char**)': samples/rawtextdump.cpp:79:36: error: 'LIBRAW_SUCCESS' was not declared in this scope 79 | if (lr.open_file(av[1]) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/rawtextdump.cpp:89:28: error: 'LIBRAW_SUCCESS' was not declared in this scope 89 | if (lr.unpack() != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ make: *** [Makefile:1427: samples/bin_rawtextdump-rawtextdump.o] Error 1 g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DLIBRAW_NOTHREADS -w -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o samples/bin_unprocessed_raw-unprocessed_raw.o `test -f 'samples/unprocessed_raw.cpp' || echo './'`samples/unprocessed_raw.cpp In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from samples/unprocessed_raw.cpp:26: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from samples/unprocessed_raw.cpp:21: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE samples/unprocessed_raw.cpp: In function 'int main(int, char**)': samples/unprocessed_raw.cpp:99:50: error: 'LIBRAW_SUCCESS' was not declared in this scope 99 | if ((ret = RawProcessor.open_file(av[i])) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/unprocessed_raw.cpp:111:42: error: 'LIBRAW_SUCCESS' was not declared in this scope 111 | if ((ret = RawProcessor.unpack()) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ make: *** [Makefile:1455: samples/bin_unprocessed_raw-unprocessed_raw.o] Error 1 g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DLIBRAW_NOTHREADS -w -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o samples/bin_4channels-4channels.o `test -f 'samples/4channels.cpp' || echo './'`samples/4channels.cpp In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from samples/4channels.cpp:24: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from samples/4channels.cpp:21: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE samples/4channels.cpp: In function 'int main(int, char**)': samples/4channels.cpp:97:50: error: 'LIBRAW_SUCCESS' was not declared in this scope 97 | if ((ret = RawProcessor.open_file(av[i])) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/4channels.cpp:107:42: error: 'LIBRAW_SUCCESS' was not declared in this scope 107 | if ((ret = RawProcessor.unpack()) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/4channels.cpp:169:11: error: 'LIBRAW_SUCCESS' was not declared in this scope 169 | if (LIBRAW_SUCCESS != (ret = RawProcessor.dcraw_ppm_tiff_writer(outfn))) | ^~~~~~~~~~~~~~ make: *** [Makefile:1343: samples/bin_4channels-4channels.o] Error 1 g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DLIBRAW_NOTHREADS -w -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o samples/bin_multirender_test-multirender_test.o `test -f 'samples/multirender_test.cpp' || echo './'`samples/multirender_test.cpp In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from samples/multirender_test.cpp:23: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from samples/multirender_test.cpp:20: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE samples/multirender_test.cpp: In function 'int process_once(LibRaw&, int, int, int, int, int, char*)': samples/multirender_test.cpp:47:7: error: 'LIBRAW_SUCCESS' was not declared in this scope 47 | if (LIBRAW_SUCCESS != ret) | ^~~~~~~~~~~~~~ samples/multirender_test.cpp:58:7: error: 'LIBRAW_SUCCESS' was not declared in this scope 58 | if (LIBRAW_SUCCESS != (ret = RawProcessor.dcraw_ppm_tiff_writer(outfn))) | ^~~~~~~~~~~~~~ samples/multirender_test.cpp: In function 'int main(int, char**)': samples/multirender_test.cpp:83:50: error: 'LIBRAW_SUCCESS' was not declared in this scope 83 | if ((ret = RawProcessor.open_file(av[i])) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/multirender_test.cpp:89:42: error: 'LIBRAW_SUCCESS' was not declared in this scope 89 | if ((ret = RawProcessor.unpack()) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ make: *** [Makefile:1385: samples/bin_multirender_test-multirender_test.o] Error 1 g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DLIBRAW_NOTHREADS -w -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o samples/bin_postprocessing_benchmark-postprocessing_benchmark.o `test -f 'samples/postprocessing_benchmark.cpp' || echo './'`samples/postprocessing_benchmark.cpp In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from samples/postprocessing_benchmark.cpp:23: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from samples/postprocessing_benchmark.cpp:19: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE samples/postprocessing_benchmark.cpp: In function 'int main(int, char**)': samples/postprocessing_benchmark.cpp:132:54: error: 'LIBRAW_SUCCESS' was not declared in this scope 132 | if ((ret = RawProcessor.open_file(argv[arg])) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/postprocessing_benchmark.cpp:139:42: error: 'LIBRAW_SUCCESS' was not declared in this scope 139 | if ((ret = RawProcessor.unpack()) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/postprocessing_benchmark.cpp:151:51: error: 'LIBRAW_SUCCESS' was not declared in this scope 151 | if ((ret = RawProcessor.dcraw_process()) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/postprocessing_benchmark.cpp:164:58: error: 'LIBRAW_SUCCESS' was not declared in this scope 164 | if ((ret = RawProcessor.adjust_sizes_info_only()) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/postprocessing_benchmark.cpp: In function 'void timerstart()': samples/postprocessing_benchmark.cpp:202:25: error: 'gettimeofday' was not declared in this scope 202 | void timerstart(void) { gettimeofday(&start, NULL); } | ^~~~~~~~~~~~ samples/postprocessing_benchmark.cpp: In function 'float timerend()': samples/postprocessing_benchmark.cpp:205:3: error: 'gettimeofday' was not declared in this scope 205 | gettimeofday(&end, NULL); | ^~~~~~~~~~~~ make: *** [Makefile:1399: samples/bin_postprocessing_benchmark-postprocessing_benchmark.o] Error 1 g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DLIBRAW_NOTHREADS -w -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o samples/bin_raw_identify-raw-identify.o `test -f 'samples/raw-identify.cpp' || echo './'`samples/raw-identify.cpp In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from samples/raw-identify.cpp:28: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from samples/raw-identify.cpp:21: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE samples/raw-identify.cpp: In function 'int main(int, char**)': samples/raw-identify.cpp:272:70: error: 'LIBRAW_SUCCESS' was not declared in this scope 272 | if ((ret = MyCoolRawProcessor.open_file(filelist[i].c_str())) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/raw-identify.cpp: In function 'void print_verbose(FILE*, LibRaw&, std::string&)': samples/raw-identify.cpp:432:8: error: 'LIBRAW_FT_UNDEFINED' was not declared in this scope 432 | case LIBRAW_FT_UNDEFINED: | ^~~~~~~~~~~~~~~~~~~ samples/raw-identify.cpp:435:8: error: 'LIBRAW_FT_PRIME_LENS' was not declared in this scope 435 | case LIBRAW_FT_PRIME_LENS: | ^~~~~~~~~~~~~~~~~~~~ samples/raw-identify.cpp:438:8: error: 'LIBRAW_FT_ZOOM_LENS' was not declared in this scope 438 | case LIBRAW_FT_ZOOM_LENS: | ^~~~~~~~~~~~~~~~~~~ make: *** [Makefile:1413: samples/bin_raw_identify-raw-identify.o] Error 1 g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DLIBRAW_NOTHREADS -w -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o samples/bin_mem_image-mem_image_sample.o `test -f 'samples/mem_image_sample.cpp' || echo './'`samples/mem_image_sample.cpp In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from samples/mem_image_sample.cpp:25: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from samples/mem_image_sample.cpp:21: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE samples/mem_image_sample.cpp: In function 'void write_ppm(libraw_processed_image_t*, const char*)': samples/mem_image_sample.cpp:85:20: error: 'LIBRAW_IMAGE_BITMAP' was not declared in this scope 85 | if (img->type != LIBRAW_IMAGE_BITMAP) | ^~~~~~~~~~~~~~~~~~~ samples/mem_image_sample.cpp: In function 'void write_thumb(libraw_processed_image_t*, const char*)': samples/mem_image_sample.cpp:124:20: error: 'LIBRAW_IMAGE_BITMAP' was not declared in this scope 124 | if (img->type == LIBRAW_IMAGE_BITMAP) | ^~~~~~~~~~~~~~~~~~~ samples/mem_image_sample.cpp:130:25: error: 'LIBRAW_IMAGE_JPEG' was not declared in this scope; did you mean 'LIBRAW_CAPS_JPEG'? 130 | else if (img->type == LIBRAW_IMAGE_JPEG) | ^~~~~~~~~~~~~~~~~ | LIBRAW_CAPS_JPEG samples/mem_image_sample.cpp: In function 'int main(int, char**)': samples/mem_image_sample.cpp:213:50: error: 'LIBRAW_SUCCESS' was not declared in this scope 213 | if ((ret = RawProcessor.open_file(av[i])) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/mem_image_sample.cpp:219:42: error: 'LIBRAW_SUCCESS' was not declared in this scope 219 | if ((ret = RawProcessor.unpack()) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/mem_image_sample.cpp:231:9: error: 'LIBRAW_SUCCESS' was not declared in this scope 231 | if (LIBRAW_SUCCESS != ret) | ^~~~~~~~~~~~~~ samples/mem_image_sample.cpp:235:11: error: 'LIBRAW_FATAL_ERROR' was not declared in this scope; did you mean 'LIBRAW_PATCH_VERSION'? 235 | if (LIBRAW_FATAL_ERROR(ret)) | ^~~~~~~~~~~~~~~~~~ | LIBRAW_PATCH_VERSION samples/mem_image_sample.cpp:256:50: error: 'LIBRAW_SUCCESS' was not declared in this scope 256 | if ((ret = RawProcessor.unpack_thumb()) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/mem_image_sample.cpp:260:13: error: 'LIBRAW_FATAL_ERROR' was not declared in this scope; did you mean 'LIBRAW_PATCH_VERSION'? 260 | if (LIBRAW_FATAL_ERROR(ret)) | ^~~~~~~~~~~~~~~~~~ | LIBRAW_PATCH_VERSION make: *** [Makefile:1371: samples/bin_mem_image-mem_image_sample.o] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/libraw_c_api.lo src/libraw_c_api.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/libraw_c_api.cpp -fPIC -DPIC -o src/.libs/libraw_c_api.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/libraw_c_api.cpp:22: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/libraw_c_api.cpp:20: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/libraw_c_api.cpp:46:39: error: use of enum 'LibRaw_progress' without previous declaration 46 | const char *libraw_strprogress(enum LibRaw_progress p) | ^~~~~~~~~~~~~~~ make: *** [Makefile:1336: src/libraw_c_api.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/decoders/fuji_compressed.lo src/decoders/fuji_compressed.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/decoders/fuji_compressed.cpp -fPIC -DPIC -o src/decoders/.libs/fuji_compressed.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/decoders/../../internal/libraw_cxx_defs.h:28, from src/decoders/fuji_compressed.cpp:19: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/decoders/../../internal/libraw_cxx_defs.h:29: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/decoders/../../internal/libraw_cxx_defs.h:20: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/decoders/fuji_compressed.cpp: In function 'void fuji_fill_buffer(fuji_compressed_block*)': src/decoders/fuji_compressed.cpp:255:17: error: 'LIBRAW_EXCEPTION_IO_EOF' was not declared in this scope 255 | throw LIBRAW_EXCEPTION_IO_EOF; | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/fuji_compressed.cpp: In member function 'void LibRaw::fuji_compressed_load_raw()': src/decoders/fuji_compressed.cpp:1109:11: error: 'LIBRAW_EXCEPTION_IO_EOF' was not declared in this scope 1109 | throw LIBRAW_EXCEPTION_IO_EOF; | ^~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:1336: src/decoders/fuji_compressed.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/libraw_datastream.lo src/libraw_datastream.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/libraw_datastream.cpp -fPIC -DPIC -o src/.libs/libraw_datastream.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/libraw_datastream.cpp:26: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from src/libraw_datastream.cpp:31: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/limits.h:26, from /usr/lib/gcc/x86_64-OpenCloudOS-linux/12/include/limits.h:203, from /usr/lib/gcc/x86_64-OpenCloudOS-linux/12/include/syslimits.h:7, from /usr/lib/gcc/x86_64-OpenCloudOS-linux/12/include/limits.h:34, from ./libraw/libraw.h:41: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/libraw_datastream.cpp: In member function 'virtual int LibRaw_bigfile_datastream::read(void*, size_t, size_t)': src/libraw_datastream.cpp:578:13: error: 'LIBRAW_EXCEPTION_IO_EOF' was not declared in this scope 578 | throw LIBRAW_EXCEPTION_IO_EOF; \ | ^~~~~~~~~~~~~~~~~~~~~~~ src/libraw_datastream.cpp:583:3: note: in expansion of macro 'LR_BF_CHK' 583 | LR_BF_CHK(); | ^~~~~~~~~ src/libraw_datastream.cpp: In member function 'virtual int LibRaw_bigfile_datastream::eof()': src/libraw_datastream.cpp:578:13: error: 'LIBRAW_EXCEPTION_IO_EOF' was not declared in this scope 578 | throw LIBRAW_EXCEPTION_IO_EOF; \ | ^~~~~~~~~~~~~~~~~~~~~~~ src/libraw_datastream.cpp:589:3: note: in expansion of macro 'LR_BF_CHK' 589 | LR_BF_CHK(); | ^~~~~~~~~ src/libraw_datastream.cpp: In member function 'virtual int LibRaw_bigfile_datastream::seek(INT64, int)': src/libraw_datastream.cpp:578:13: error: 'LIBRAW_EXCEPTION_IO_EOF' was not declared in this scope 578 | throw LIBRAW_EXCEPTION_IO_EOF; \ | ^~~~~~~~~~~~~~~~~~~~~~~ src/libraw_datastream.cpp:595:3: note: in expansion of macro 'LR_BF_CHK' 595 | LR_BF_CHK(); | ^~~~~~~~~ src/libraw_datastream.cpp: In member function 'virtual INT64 LibRaw_bigfile_datastream::tell()': src/libraw_datastream.cpp:578:13: error: 'LIBRAW_EXCEPTION_IO_EOF' was not declared in this scope 578 | throw LIBRAW_EXCEPTION_IO_EOF; \ | ^~~~~~~~~~~~~~~~~~~~~~~ src/libraw_datastream.cpp:609:3: note: in expansion of macro 'LR_BF_CHK' 609 | LR_BF_CHK(); | ^~~~~~~~~ src/libraw_datastream.cpp: In member function 'virtual char* LibRaw_bigfile_datastream::gets(char*, int)': src/libraw_datastream.cpp:578:13: error: 'LIBRAW_EXCEPTION_IO_EOF' was not declared in this scope 578 | throw LIBRAW_EXCEPTION_IO_EOF; \ | ^~~~~~~~~~~~~~~~~~~~~~~ src/libraw_datastream.cpp:624:3: note: in expansion of macro 'LR_BF_CHK' 624 | LR_BF_CHK(); | ^~~~~~~~~ src/libraw_datastream.cpp: In member function 'virtual int LibRaw_bigfile_datastream::scanf_one(const char*, void*)': src/libraw_datastream.cpp:578:13: error: 'LIBRAW_EXCEPTION_IO_EOF' was not declared in this scope 578 | throw LIBRAW_EXCEPTION_IO_EOF; \ | ^~~~~~~~~~~~~~~~~~~~~~~ src/libraw_datastream.cpp:630:3: note: in expansion of macro 'LR_BF_CHK' 630 | LR_BF_CHK(); | ^~~~~~~~~ make: *** [Makefile:1336: src/libraw_datastream.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/decoders/canon_600.lo src/decoders/canon_600.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/decoders/canon_600.cpp -fPIC -DPIC -o src/decoders/.libs/canon_600.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/decoders/../../internal/dcraw_defs.h:22, from src/decoders/canon_600.cpp:19: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/decoders/../../internal/dcraw_defs.h:24: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/decoders/../../internal/dcraw_defs.h:19: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE make: *** [Makefile:1336: src/decoders/canon_600.lo] Error 1 g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DLIBRAW_NOTHREADS -w -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o samples/bin_simple_dcraw-simple_dcraw.o `test -f 'samples/simple_dcraw.cpp' || echo './'`samples/simple_dcraw.cpp In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from samples/simple_dcraw.cpp:23: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from samples/simple_dcraw.cpp:19: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE samples/simple_dcraw.cpp:36:50: error: use of enum 'LibRaw_progress' without previous declaration 36 | int my_progress_callback(void *unused_data, enum LibRaw_progress state, | ^~~~~~~~~~~~~~~ samples/simple_dcraw.cpp: In function 'int main(int, char**)': samples/simple_dcraw.cpp:129:51: error: 'LIBRAW_SUCCESS' was not declared in this scope 129 | if ((ret = RawProcessor->open_file(av[i])) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/simple_dcraw.cpp:136:45: error: 'LIBRAW_SUCCESS' was not declared in this scope 136 | if ((ret = RawProcessor->unpack()) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/simple_dcraw.cpp:150:57: error: 'LIBRAW_SUCCESS' was not declared in this scope 150 | if ((ret = RawProcessor->unpack_thumb_ex(t)) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/simple_dcraw.cpp:152:13: error: 'LIBRAW_FATAL_ERROR' was not declared in this scope; did you mean 'LIBRAW_PATCH_VERSION'? 152 | if (LIBRAW_FATAL_ERROR(ret)) | ^~~~~~~~~~~~~~~~~~ | LIBRAW_PATCH_VERSION samples/simple_dcraw.cpp:155:31: error: 'LIBRAW_THUMBNAIL_JPEG' was not declared in this scope 155 | T.tformat == LIBRAW_THUMBNAIL_JPEG ? "jpg" : "ppm"); | ^~~~~~~~~~~~~~~~~~~~~ samples/simple_dcraw.cpp:158:13: error: 'LIBRAW_SUCCESS' was not declared in this scope 158 | if (LIBRAW_SUCCESS != (ret = RawProcessor->dcraw_thumb_writer(thumbfn))) | ^~~~~~~~~~~~~~ samples/simple_dcraw.cpp:161:15: error: 'LIBRAW_FATAL_ERROR' was not declared in this scope; did you mean 'LIBRAW_PATCH_VERSION'? 161 | if (LIBRAW_FATAL_ERROR(ret)) | ^~~~~~~~~~~~~~~~~~ | LIBRAW_PATCH_VERSION samples/simple_dcraw.cpp:169:51: error: 'LIBRAW_SUCCESS' was not declared in this scope 169 | if ((ret = RawProcessor->unpack_thumb()) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/simple_dcraw.cpp:173:13: error: 'LIBRAW_FATAL_ERROR' was not declared in this scope; did you mean 'LIBRAW_PATCH_VERSION'? 173 | if (LIBRAW_FATAL_ERROR(ret)) | ^~~~~~~~~~~~~~~~~~ | LIBRAW_PATCH_VERSION samples/simple_dcraw.cpp:179:31: error: 'LIBRAW_THUMBNAIL_JPEG' was not declared in this scope 179 | T.tformat == LIBRAW_THUMBNAIL_JPEG ? "thumb.jpg" | ^~~~~~~~~~~~~~~~~~~~~ samples/simple_dcraw.cpp:187:15: error: 'LIBRAW_FATAL_ERROR' was not declared in this scope; did you mean 'LIBRAW_PATCH_VERSION'? 187 | if (LIBRAW_FATAL_ERROR(ret)) | ^~~~~~~~~~~~~~~~~~ | LIBRAW_PATCH_VERSION samples/simple_dcraw.cpp:196:9: error: 'LIBRAW_SUCCESS' was not declared in this scope 196 | if (LIBRAW_SUCCESS != ret) | ^~~~~~~~~~~~~~ samples/simple_dcraw.cpp:200:11: error: 'LIBRAW_FATAL_ERROR' was not declared in this scope; did you mean 'LIBRAW_PATCH_VERSION'? 200 | if (LIBRAW_FATAL_ERROR(ret)) | ^~~~~~~~~~~~~~~~~~ | LIBRAW_PATCH_VERSION samples/simple_dcraw.cpp:209:9: error: 'LIBRAW_SUCCESS' was not declared in this scope 209 | if (LIBRAW_SUCCESS != (ret = RawProcessor->dcraw_ppm_tiff_writer(outfn))) | ^~~~~~~~~~~~~~ make: *** [Makefile:1441: samples/bin_simple_dcraw-simple_dcraw.o] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/decoders/smal.lo src/decoders/smal.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/decoders/smal.cpp -fPIC -DPIC -o src/decoders/.libs/smal.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/decoders/../../internal/dcraw_defs.h:22, from src/decoders/smal.cpp:19: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/decoders/../../internal/dcraw_defs.h:24: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/decoders/../../internal/dcraw_defs.h:19: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/decoders/smal.cpp: In member function 'void LibRaw::smal_decode_segment(unsigned int (*)[2], int)': src/decoders/smal.cpp:94:13: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 94 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:1336: src/decoders/smal.lo] Error 1 g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DLIBRAW_NOTHREADS -w -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o samples/bin_dcraw_emu-dcraw_emu.o `test -f 'samples/dcraw_emu.cpp' || echo './'`samples/dcraw_emu.cpp In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from samples/dcraw_emu.cpp:31: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from samples/dcraw_emu.cpp:25: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE samples/dcraw_emu.cpp:138:40: error: use of enum 'LibRaw_progress' without previous declaration 138 | int my_progress_callback(void *d, enum LibRaw_progress p, int iteration, | ^~~~~~~~~~~~~~~ samples/dcraw_emu.cpp: In function 'void timerstart()': samples/dcraw_emu.cpp:164:25: error: 'gettimeofday' was not declared in this scope 164 | void timerstart(void) { gettimeofday(&start, NULL); } | ^~~~~~~~~~~~ samples/dcraw_emu.cpp: In function 'void timerprint(const char*, const char*)': samples/dcraw_emu.cpp:167:3: error: 'gettimeofday' was not declared in this scope 167 | gettimeofday(&end, NULL); | ^~~~~~~~~~~~ samples/dcraw_emu.cpp: In function 'int main(int, char**)': samples/dcraw_emu.cpp:404:25: error: 'LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES' was not declared in this scope 404 | OUTR.options |= LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ samples/dcraw_emu.cpp:451:26: error: 'LIBRAW_RAWSPECIAL_SRAW_NO_RGB' was not declared in this scope 451 | OUTR.specials |= LIBRAW_RAWSPECIAL_SRAW_NO_RGB; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ samples/dcraw_emu.cpp:452:27: error: 'LIBRAW_RAWSPECIAL_SRAW_NO_INTERPOLATE' was not declared in this scope 452 | OUTR.specials &= ~LIBRAW_RAWSPECIAL_SRAW_NO_INTERPOLATE; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ samples/dcraw_emu.cpp:456:27: error: 'LIBRAW_RAWSPECIAL_SRAW_NO_RGB' was not declared in this scope 456 | OUTR.specials &= ~LIBRAW_RAWSPECIAL_SRAW_NO_RGB; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ samples/dcraw_emu.cpp:457:26: error: 'LIBRAW_RAWSPECIAL_SRAW_NO_INTERPOLATE' was not declared in this scope 457 | OUTR.specials |= LIBRAW_RAWSPECIAL_SRAW_NO_INTERPOLATE; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ samples/dcraw_emu.cpp:522:18: error: 'LIBRAW_SUCCESS' was not declared in this scope 522 | LIBRAW_SUCCESS)) | ^~~~~~~~~~~~~~ samples/dcraw_emu.cpp:563:11: error: 'LIBRAW_SUCCESS' was not declared in this scope 563 | LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/dcraw_emu.cpp:575:18: error: 'LIBRAW_SUCCESS' was not declared in this scope 575 | if (ret != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/dcraw_emu.cpp:587:42: error: 'LIBRAW_SUCCESS' was not declared in this scope 587 | if ((ret = RawProcessor.unpack()) != LIBRAW_SUCCESS) | ^~~~~~~~~~~~~~ samples/dcraw_emu.cpp:598:9: error: 'LIBRAW_SUCCESS' was not declared in this scope 598 | if (LIBRAW_SUCCESS != (ret = RawProcessor.dcraw_process())) | ^~~~~~~~~~~~~~ samples/dcraw_emu.cpp:602:11: error: 'LIBRAW_FATAL_ERROR' was not declared in this scope; did you mean 'LIBRAW_PATCH_VERSION'? 602 | if (LIBRAW_FATAL_ERROR(ret)) | ^~~~~~~~~~~~~~~~~~ | LIBRAW_PATCH_VERSION samples/dcraw_emu.cpp:646:9: error: 'LIBRAW_SUCCESS' was not declared in this scope 646 | if (LIBRAW_SUCCESS != (ret = RawProcessor.dcraw_ppm_tiff_writer(outfn))) | ^~~~~~~~~~~~~~ make: *** [Makefile:1357: samples/bin_dcraw_emu-dcraw_emu.o] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/decoders/generic.lo src/decoders/generic.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/decoders/generic.cpp -fPIC -DPIC -o src/decoders/.libs/generic.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/decoders/../../internal/dcraw_defs.h:22, from src/decoders/generic.cpp:19: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/decoders/../../internal/dcraw_defs.h:24: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/decoders/../../internal/dcraw_defs.h:19: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/decoders/generic.cpp: In member function 'void LibRaw::packed_load_raw()': src/decoders/generic.cpp:68:13: error: 'LIBRAW_EXCEPTION_IO_EOF' was not declared in this scope 68 | throw LIBRAW_EXCEPTION_IO_EOF; | ^~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:1336: src/decoders/generic.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/demosaic/ahd_demosaic.lo src/demosaic/ahd_demosaic.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/demosaic/ahd_demosaic.cpp -fPIC -DPIC -o src/demosaic/.libs/ahd_demosaic.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/demosaic/../../internal/dcraw_defs.h:22, from src/demosaic/ahd_demosaic.cpp:19: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/demosaic/../../internal/dcraw_defs.h:24: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/demosaic/../../internal/dcraw_defs.h:19: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/demosaic/ahd_demosaic.cpp: In member function 'void LibRaw::ahd_interpolate()': src/demosaic/ahd_demosaic.cpp:319:21: error: 'LIBRAW_PROGRESS_INTERPOLATE' was not declared in this scope 319 | LIBRAW_PROGRESS_INTERPOLATE, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/demosaic/ahd_demosaic.cpp:354:15: error: 'LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK' was not declared in this scope 354 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:1336: src/demosaic/ahd_demosaic.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/demosaic/dht_demosaic.lo src/demosaic/dht_demosaic.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/demosaic/dht_demosaic.cpp -fPIC -DPIC -o src/demosaic/.libs/dht_demosaic.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/demosaic/../../internal/dmp_include.h:21, from src/demosaic/dht_demosaic.cpp:25: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/demosaic/../../internal/dmp_include.h:22: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/limits.h:26, from /usr/lib/gcc/x86_64-OpenCloudOS-linux/12/include/limits.h:203, from /usr/lib/gcc/x86_64-OpenCloudOS-linux/12/include/syslimits.h:7, from /usr/lib/gcc/x86_64-OpenCloudOS-linux/12/include/limits.h:34, from ./libraw/libraw.h:41: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE make: *** [Makefile:1336: src/demosaic/dht_demosaic.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/demosaic/aahd_demosaic.lo src/demosaic/aahd_demosaic.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/demosaic/aahd_demosaic.cpp -fPIC -DPIC -o src/demosaic/.libs/aahd_demosaic.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/demosaic/../../internal/dmp_include.h:21, from src/demosaic/aahd_demosaic.cpp:18: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/demosaic/../../internal/dmp_include.h:22: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/limits.h:26, from /usr/lib/gcc/x86_64-OpenCloudOS-linux/12/include/limits.h:203, from /usr/lib/gcc/x86_64-OpenCloudOS-linux/12/include/syslimits.h:7, from /usr/lib/gcc/x86_64-OpenCloudOS-linux/12/include/limits.h:34, from ./libraw/libraw.h:41: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/demosaic/aahd_demosaic.cpp: In constructor 'AAHD::AAHD(LibRaw&)': src/demosaic/aahd_demosaic.cpp:136:11: error: 'LIBRAW_EXCEPTION_ALLOC' was not declared in this scope 136 | throw LIBRAW_EXCEPTION_ALLOC; | ^~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:1336: src/demosaic/aahd_demosaic.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/decoders/dng.lo src/decoders/dng.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/decoders/dng.cpp -fPIC -DPIC -o src/decoders/.libs/dng.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/decoders/../../internal/dcraw_defs.h:22, from src/decoders/dng.cpp:19: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/decoders/../../internal/dcraw_defs.h:24: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/decoders/../../internal/dcraw_defs.h:19: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/decoders/dng.cpp: In member function 'void LibRaw::vc5_dng_load_raw_placeholder()': src/decoders/dng.cpp:24:11: error: 'LIBRAW_EXCEPTION_DECODE_RAW' was not declared in this scope 24 | throw LIBRAW_EXCEPTION_DECODE_RAW; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/dng.cpp: In function 'void jpegErrorExit_d(j_common_ptr)': src/decoders/dng.cpp:178:9: error: 'LIBRAW_EXCEPTION_DECODE_JPEG' was not declared in this scope 178 | throw LIBRAW_EXCEPTION_DECODE_JPEG; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/dng.cpp: In member function 'void LibRaw::lossy_dng_load_raw()': src/decoders/dng.cpp:184:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 184 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/dng.cpp:246:13: error: 'LIBRAW_EXCEPTION_DECODE_JPEG' was not declared in this scope 246 | throw LIBRAW_EXCEPTION_DECODE_JPEG; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:1336: src/decoders/dng.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/decoders/decoders_libraw_dcrdefs.lo src/decoders/decoders_libraw_dcrdefs.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/decoders/decoders_libraw_dcrdefs.cpp -fPIC -DPIC -o src/decoders/.libs/decoders_libraw_dcrdefs.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/decoders/../../internal/dcraw_defs.h:22, from src/decoders/decoders_libraw_dcrdefs.cpp:15: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/decoders/../../internal/dcraw_defs.h:24: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/decoders/../../internal/dcraw_defs.h:19: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/decoders/decoders_libraw_dcrdefs.cpp: In member function 'void LibRaw::packed_tiled_dng_load_raw()': src/decoders/decoders_libraw_dcrdefs.cpp:29:63: error: 'LIBRAW_EXCEPTION_ALLOC' was not declared in this scope 29 | if ((unsigned)ntiles * tile_width > raw_width * 2u) throw LIBRAW_EXCEPTION_ALLOC; | ^~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw_dcrdefs.cpp:34:11: error: 'LIBRAW_EXCEPTION_ALLOC' was not declared in this scope 34 | throw LIBRAW_EXCEPTION_ALLOC; // rethrow | ^~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw_dcrdefs.cpp: In member function 'void LibRaw::nikon_he_load_raw_placeholder()': src/decoders/decoders_libraw_dcrdefs.cpp:118:11: error: 'LIBRAW_EXCEPTION_UNSUPPORTED_FORMAT' was not declared in this scope 118 | throw LIBRAW_EXCEPTION_UNSUPPORTED_FORMAT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw_dcrdefs.cpp: In member function 'void LibRaw::nikon_coolscan_load_raw()': src/decoders/decoders_libraw_dcrdefs.cpp:126:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 126 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw_dcrdefs.cpp:129:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 129 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:1336: src/decoders/decoders_libraw_dcrdefs.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/decoders/load_mfbacks.lo src/decoders/load_mfbacks.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/decoders/load_mfbacks.cpp -fPIC -DPIC -o src/decoders/.libs/load_mfbacks.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/decoders/../../internal/dcraw_defs.h:22, from src/decoders/load_mfbacks.cpp:19: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/decoders/../../internal/dcraw_defs.h:24: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/decoders/../../internal/dcraw_defs.h:19: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/decoders/load_mfbacks.cpp: In member function 'int LibRaw::phase_one_correct()': src/decoders/load_mfbacks.cpp:497:25: error: 'LIBRAW_EXCEPTION_ALLOC' was not declared in this scope 497 | throw LIBRAW_EXCEPTION_ALLOC; | ^~~~~~~~~~~~~~~~~~~~~~ src/decoders/load_mfbacks.cpp:499:25: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 499 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/load_mfbacks.cpp:524:66: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 524 | if (j == 0 || j == head[1] || k < 1 || k >= w0+w1) | ~~^~~~~~~~ src/decoders/load_mfbacks.cpp:531:31: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 531 | if (k < w0 + w1) | ~~^~~~~~~~~ src/decoders/load_mfbacks.cpp:547:12: error: 'LIBRAW_CANCELLED_BY_CALLBACK' was not declared in this scope 547 | return LIBRAW_CANCELLED_BY_CALLBACK; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/load_mfbacks.cpp: In member function 'void LibRaw::phase_one_load_raw_c()': src/decoders/load_mfbacks.cpp:631:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 631 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/load_mfbacks.cpp: In member function 'void LibRaw::leaf_hdr_load_raw()': src/decoders/load_mfbacks.cpp:799:13: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 799 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/load_mfbacks.cpp: In member function 'void LibRaw::sinar_4shot_load_raw()': src/decoders/load_mfbacks.cpp:881:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 881 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/load_mfbacks.cpp: In member function 'void LibRaw::imacon_full_load_raw()': src/decoders/load_mfbacks.cpp:916:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 916 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:1336: src/decoders/load_mfbacks.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/decoders/crx.lo src/decoders/crx.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/decoders/crx.cpp -fPIC -DPIC -o src/decoders/.libs/crx.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/decoders/../../internal/libraw_cxx_defs.h:28, from src/decoders/crx.cpp:19: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/decoders/../../internal/libraw_cxx_defs.h:29: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/decoders/../../internal/libraw_cxx_defs.h:20: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/decoders/crx.cpp: In function 'void crxFillBuffer(CrxBitstream*)': src/decoders/crx.cpp:223:13: error: 'LIBRAW_EXCEPTION_IO_EOF' was not declared in this scope 223 | throw LIBRAW_EXCEPTION_IO_EOF; | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/crx.cpp: In function 'int crxMakeQStep(CrxImage*, CrxTile*, int32_t*, uint32_t)': src/decoders/crx.cpp:2004:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 2004 | if (img->levels > 2) | ^~ src/decoders/crx.cpp:2006:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 2006 | tile->qStep = (CrxQStep *) | ^~~~ src/decoders/crx.cpp: In member function 'void LibRaw::crxLoadRaw()': src/decoders/crx.cpp:2696:13: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int32_t' {aka 'int'} [-Wsign-compare] 2696 | if (bytes != hdr.mdatHdrSize) | ~~~~~~^~~~~~~~~~~~~~~~~~ src/decoders/crx.cpp:2697:11: error: 'LIBRAW_EXCEPTION_IO_EOF' was not declared in this scope 2697 | throw LIBRAW_EXCEPTION_IO_EOF; | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/crx.cpp:2703:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 2703 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:1336: src/decoders/crx.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/demosaic/dcb_demosaic.lo src/demosaic/dcb_demosaic.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/demosaic/dcb_demosaic.cpp -fPIC -DPIC -o src/demosaic/.libs/dcb_demosaic.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/demosaic/../../internal/dcraw_defs.h:22, from src/demosaic/dcb_demosaic.cpp:42: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/demosaic/../../internal/dcraw_defs.h:24: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/demosaic/../../internal/dcraw_defs.h:19: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE make: *** [Makefile:1336: src/demosaic/dcb_demosaic.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/decoders/fp_dng.lo src/decoders/fp_dng.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/decoders/fp_dng.cpp -fPIC -DPIC -o src/decoders/.libs/fp_dng.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/decoders/../../internal/libraw_cxx_defs.h:28, from src/decoders/fp_dng.cpp:15: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/decoders/../../internal/libraw_cxx_defs.h:29: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/decoders/../../internal/libraw_cxx_defs.h:20: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/decoders/fp_dng.cpp: In member function 'void tile_stripe_data_t::init(tiff_ifd_t*, const libraw_image_sizes_t&, const unpacker_data_t&, short int, LibRaw_abstract_datastream*)': src/decoders/fp_dng.cpp:292:15: error: 'LIBRAW_EXCEPTION_DECODE_RAW' was not declared in this scope 292 | throw LIBRAW_EXCEPTION_DECODE_RAW; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/fp_dng.cpp: In member function 'void LibRaw::deflate_dng_load_raw()': src/decoders/fp_dng.cpp:446:45: error: 'LIBRAW_EXCEPTION_DECODE_RAW' was not declared in this scope 446 | void LibRaw::deflate_dng_load_raw() { throw LIBRAW_EXCEPTION_DECODE_RAW; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/fp_dng.cpp: In member function 'void LibRaw::uncompressed_fp_dng_load_raw()': src/decoders/fp_dng.cpp:591:15: error: 'LIBRAW_EXCEPTION_DECODE_RAW' was not declared in this scope 591 | throw LIBRAW_EXCEPTION_DECODE_RAW; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/fp_dng.cpp:597:15: error: 'LIBRAW_EXCEPTION_DECODE_RAW' was not declared in this scope 597 | throw LIBRAW_EXCEPTION_DECODE_RAW; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/fp_dng.cpp:600:13: error: 'LIBRAW_EXCEPTION_DECODE_RAW' was not declared in this scope 600 | throw LIBRAW_EXCEPTION_DECODE_RAW; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/fp_dng.cpp:603:15: error: 'LIBRAW_EXCEPTION_DECODE_RAW' was not declared in this scope 603 | throw LIBRAW_EXCEPTION_DECODE_RAW; // Wrong IFD | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/fp_dng.cpp:608:13: error: 'LIBRAW_EXCEPTION_DECODE_RAW' was not declared in this scope 608 | throw LIBRAW_EXCEPTION_DECODE_RAW; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/fp_dng.cpp:617:13: error: 'LIBRAW_EXCEPTION_TOOBIG' was not declared in this scope 617 | throw LIBRAW_EXCEPTION_TOOBIG; | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/fp_dng.cpp:621:23: error: 'LIBRAW_EXCEPTION_TOOBIG' was not declared in this scope 621 | throw LIBRAW_EXCEPTION_TOOBIG; | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/fp_dng.cpp:626:15: error: 'LIBRAW_EXCEPTION_DECODE_RAW' was not declared in this scope 626 | throw LIBRAW_EXCEPTION_DECODE_RAW; // Only float supported | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/fp_dng.cpp:648:51: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 648 | unsigned char *dst = fullrowbytes > inrowbytes ? rowbuf.data(): // last tile in row, use buffer | ~~~~~~~~~~~~~^~~~~~~~~~~~ src/decoders/fp_dng.cpp:665:34: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 665 | if (fullrowbytes > inrowbytes) // last tile in row: copy buffer to destination | ~~~~~~~~~~~~~^~~~~~~~~~~~ src/decoders/fp_dng.cpp:695:37: error: 'LIBRAW_RAWOPTIONS_CONVERTFLOAT_TO_INT' was not declared in this scope 695 | if (imgdata.rawparams.options & LIBRAW_RAWOPTIONS_CONVERTFLOAT_TO_INT) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:1336: src/decoders/fp_dng.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/decoders/decoders_libraw.lo src/decoders/decoders_libraw.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/decoders/decoders_libraw.cpp -fPIC -DPIC -o src/decoders/.libs/decoders_libraw.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/decoders/../../internal/libraw_cxx_defs.h:28, from src/decoders/decoders_libraw.cpp:18: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/decoders/../../internal/libraw_cxx_defs.h:29: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/decoders/../../internal/libraw_cxx_defs.h:20: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/decoders/decoders_libraw.cpp: In member function 'void LibRaw::sony_arq_load_raw()': src/decoders/decoders_libraw.cpp:26:17: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 26 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw.cpp:33:34: error: 'LIBRAW_RAWOPTIONS_ARQ_SKIP_CHANNEL_SWAP' was not declared in this scope 33 | if(imgdata.rawparams.options & LIBRAW_RAWOPTIONS_ARQ_SKIP_CHANNEL_SWAP) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw.cpp: In member function 'void LibRaw::nikon_load_padded_packed_raw()': src/decoders/decoders_libraw.cpp:249:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 249 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw.cpp: In member function 'void LibRaw::nikon_load_striped_packed_raw()': src/decoders/decoders_libraw.cpp:286:11: error: 'LIBRAW_EXCEPTION_DECODE_RAW' was not declared in this scope 286 | throw LIBRAW_EXCEPTION_DECODE_RAW; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw.cpp: In member function 'void pana_cs6_page_decoder::read_page()': src/decoders/decoders_libraw.cpp:343:11: error: 'LIBRAW_EXCEPTION_IO_EOF' was not declared in this scope 343 | throw LIBRAW_EXCEPTION_IO_EOF; | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw.cpp: In member function 'void pana_cs6_page_decoder::read_page12()': src/decoders/decoders_libraw.cpp:367:11: error: 'LIBRAW_EXCEPTION_IO_EOF' was not declared in this scope 367 | throw LIBRAW_EXCEPTION_IO_EOF; | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw.cpp: In member function 'void LibRaw::panasonicC6_load_raw()': src/decoders/decoders_libraw.cpp:414:11: error: 'LIBRAW_EXCEPTION_ALLOC' was not declared in this scope 414 | throw LIBRAW_EXCEPTION_ALLOC; | ^~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw.cpp:423:13: error: 'LIBRAW_EXCEPTION_IO_EOF' was not declared in this scope 423 | throw LIBRAW_EXCEPTION_IO_EOF; | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw.cpp:444:21: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 444 | throw LIBRAW_EXCEPTION_IO_CORRUPT; // not possible b/c of 2-bit | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw.cpp: In member function 'void LibRaw::panasonicC7_load_raw()': src/decoders/decoders_libraw.cpp:494:13: error: 'LIBRAW_EXCEPTION_IO_EOF' was not declared in this scope 494 | throw LIBRAW_EXCEPTION_IO_EOF; | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw.cpp: In member function 'void LibRaw::nikon_load_sraw()': src/decoders/decoders_libraw.cpp:565:11: error: 'LIBRAW_EXCEPTION_ALLOC' was not declared in this scope 565 | throw LIBRAW_EXCEPTION_ALLOC; | ^~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw.cpp:597:36: error: 'LIBRAW_RAWSPECIAL_SRAW_NO_INTERPOLATE' was not declared in this scope 597 | if (imgdata.rawparams.specials & LIBRAW_RAWSPECIAL_SRAW_NO_INTERPOLATE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw.cpp:623:36: error: 'LIBRAW_RAWSPECIAL_SRAW_NO_RGB' was not declared in this scope 623 | if (imgdata.rawparams.specials & LIBRAW_RAWSPECIAL_SRAW_NO_RGB) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw.cpp: In member function 'void LibRaw::phase_one_load_raw_s()': src/decoders/decoders_libraw.cpp:842:23: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 842 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_libraw.cpp:863:31: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 863 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:1336: src/decoders/decoders_libraw.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/decoders/kodak_decoders.lo src/decoders/kodak_decoders.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/decoders/kodak_decoders.cpp -fPIC -DPIC -o src/decoders/.libs/kodak_decoders.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/decoders/../../internal/dcraw_defs.h:22, from src/decoders/kodak_decoders.cpp:19: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/decoders/../../internal/dcraw_defs.h:24: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/decoders/../../internal/dcraw_defs.h:19: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/decoders/kodak_decoders.cpp: In member function 'void LibRaw::kodak_radc_load_raw()': src/decoders/kodak_decoders.cpp:41:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 41 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/kodak_decoders.cpp:83:13: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 83 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/kodak_decoders.cpp: In function 'void jpegErrorExit_k(j_common_ptr)': src/decoders/kodak_decoders.cpp:165:9: error: 'LIBRAW_EXCEPTION_DECODE_JPEG' was not declared in this scope 165 | throw LIBRAW_EXCEPTION_DECODE_JPEG; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/kodak_decoders.cpp: In member function 'void LibRaw::kodak_jpeg_load_raw()': src/decoders/kodak_decoders.cpp:172:11: error: 'LIBRAW_EXCEPTION_DECODE_JPEG' was not declared in this scope 172 | throw LIBRAW_EXCEPTION_DECODE_JPEG; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/kodak_decoders.cpp:182:17: error: 'LIBRAW_EXCEPTION_TOOBIG' was not declared in this scope 182 | throw LIBRAW_EXCEPTION_TOOBIG; | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/kodak_decoders.cpp:195:13: error: 'LIBRAW_EXCEPTION_DECODE_JPEG' was not declared in this scope 195 | throw LIBRAW_EXCEPTION_DECODE_JPEG; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/kodak_decoders.cpp:201:13: error: 'LIBRAW_EXCEPTION_DECODE_JPEG' was not declared in this scope 201 | throw LIBRAW_EXCEPTION_DECODE_JPEG; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/kodak_decoders.cpp: In member function 'void LibRaw::kodak_c330_load_raw()': src/decoders/kodak_decoders.cpp:257:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 257 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/kodak_decoders.cpp: In member function 'void LibRaw::kodak_c603_load_raw()': src/decoders/kodak_decoders.cpp:286:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 286 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/kodak_decoders.cpp: In member function 'void LibRaw::kodak_ycbcr_load_raw()': src/decoders/kodak_decoders.cpp:449:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 449 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/kodak_decoders.cpp: In member function 'void LibRaw::kodak_rgb_load_raw()': src/decoders/kodak_decoders.cpp:492:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 492 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/kodak_decoders.cpp: In member function 'void LibRaw::kodak_thumb_load_raw()': src/decoders/kodak_decoders.cpp:517:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 517 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:1336: src/decoders/kodak_decoders.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/demosaic/misc_demosaic.lo src/demosaic/misc_demosaic.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/demosaic/misc_demosaic.cpp -fPIC -DPIC -o src/demosaic/.libs/misc_demosaic.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/demosaic/../../internal/dcraw_defs.h:22, from src/demosaic/misc_demosaic.cpp:19: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/demosaic/../../internal/dcraw_defs.h:24: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/demosaic/../../internal/dcraw_defs.h:19: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/demosaic/misc_demosaic.cpp: In member function 'void LibRaw::pre_interpolate()': src/demosaic/misc_demosaic.cpp:25:16: error: 'LIBRAW_PROGRESS_PRE_INTERPOLATE' was not declared in this scope 25 | RUN_CALLBACK(LIBRAW_PROGRESS_PRE_INTERPOLATE, 0, 2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:525:66: note: in definition of macro 'RUN_CALLBACK' 525 | int rr = (*callbacks.progress_cb)(callbacks.progresscb_data, stage, iter, \ | ^~~~~ ./libraw/libraw.h:528:13: error: 'LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK' was not declared in this scope 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:528:13: note: in definition of macro 'RUN_CALLBACK' 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/demosaic/misc_demosaic.cpp:78:16: error: 'LIBRAW_PROGRESS_PRE_INTERPOLATE' was not declared in this scope 78 | RUN_CALLBACK(LIBRAW_PROGRESS_PRE_INTERPOLATE, 1, 2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:525:66: note: in definition of macro 'RUN_CALLBACK' 525 | int rr = (*callbacks.progress_cb)(callbacks.progresscb_data, stage, iter, \ | ^~~~~ ./libraw/libraw.h:528:13: error: 'LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK' was not declared in this scope 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:528:13: note: in definition of macro 'RUN_CALLBACK' 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/demosaic/misc_demosaic.cpp: In member function 'void LibRaw::lin_interpolate()': src/demosaic/misc_demosaic.cpp:133:16: error: 'LIBRAW_PROGRESS_INTERPOLATE' was not declared in this scope 133 | RUN_CALLBACK(LIBRAW_PROGRESS_INTERPOLATE, 0, 3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:525:66: note: in definition of macro 'RUN_CALLBACK' 525 | int rr = (*callbacks.progress_cb)(callbacks.progresscb_data, stage, iter, \ | ^~~~~ ./libraw/libraw.h:528:13: error: 'LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK' was not declared in this scope 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:528:13: note: in definition of macro 'RUN_CALLBACK' 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/demosaic/misc_demosaic.cpp:164:16: error: 'LIBRAW_PROGRESS_INTERPOLATE' was not declared in this scope 164 | RUN_CALLBACK(LIBRAW_PROGRESS_INTERPOLATE, 1, 3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:525:66: note: in definition of macro 'RUN_CALLBACK' 525 | int rr = (*callbacks.progress_cb)(callbacks.progresscb_data, stage, iter, \ | ^~~~~ ./libraw/libraw.h:528:13: error: 'LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK' was not declared in this scope 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:528:13: note: in definition of macro 'RUN_CALLBACK' 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/demosaic/misc_demosaic.cpp:166:16: error: 'LIBRAW_PROGRESS_INTERPOLATE' was not declared in this scope 166 | RUN_CALLBACK(LIBRAW_PROGRESS_INTERPOLATE, 2, 3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:525:66: note: in definition of macro 'RUN_CALLBACK' 525 | int rr = (*callbacks.progress_cb)(callbacks.progresscb_data, stage, iter, \ | ^~~~~ ./libraw/libraw.h:528:13: error: 'LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK' was not declared in this scope 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:528:13: note: in definition of macro 'RUN_CALLBACK' 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/demosaic/misc_demosaic.cpp: In member function 'void LibRaw::vng_interpolate()': src/demosaic/misc_demosaic.cpp:270:20: error: 'LIBRAW_PROGRESS_INTERPOLATE' was not declared in this scope 270 | RUN_CALLBACK(LIBRAW_PROGRESS_INTERPOLATE, (row - 2) / 256 + 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:525:66: note: in definition of macro 'RUN_CALLBACK' 525 | int rr = (*callbacks.progress_cb)(callbacks.progresscb_data, stage, iter, \ | ^~~~~ ./libraw/libraw.h:528:13: error: 'LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK' was not declared in this scope 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:528:13: note: in definition of macro 'RUN_CALLBACK' 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/demosaic/misc_demosaic.cpp: In member function 'void LibRaw::ppg_interpolate()': src/demosaic/misc_demosaic.cpp:351:16: error: 'LIBRAW_PROGRESS_INTERPOLATE' was not declared in this scope 351 | RUN_CALLBACK(LIBRAW_PROGRESS_INTERPOLATE, 0, 3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:525:66: note: in definition of macro 'RUN_CALLBACK' 525 | int rr = (*callbacks.progress_cb)(callbacks.progresscb_data, stage, iter, \ | ^~~~~ ./libraw/libraw.h:528:13: error: 'LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK' was not declared in this scope 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:528:13: note: in definition of macro 'RUN_CALLBACK' 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/demosaic/misc_demosaic.cpp:378:16: error: 'LIBRAW_PROGRESS_INTERPOLATE' was not declared in this scope 378 | RUN_CALLBACK(LIBRAW_PROGRESS_INTERPOLATE, 1, 3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:525:66: note: in definition of macro 'RUN_CALLBACK' 525 | int rr = (*callbacks.progress_cb)(callbacks.progresscb_data, stage, iter, \ | ^~~~~ ./libraw/libraw.h:528:13: error: 'LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK' was not declared in this scope 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:528:13: note: in definition of macro 'RUN_CALLBACK' 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/demosaic/misc_demosaic.cpp:397:16: error: 'LIBRAW_PROGRESS_INTERPOLATE' was not declared in this scope 397 | RUN_CALLBACK(LIBRAW_PROGRESS_INTERPOLATE, 2, 3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:525:66: note: in definition of macro 'RUN_CALLBACK' 525 | int rr = (*callbacks.progress_cb)(callbacks.progresscb_data, stage, iter, \ | ^~~~~ ./libraw/libraw.h:528:13: error: 'LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK' was not declared in this scope 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:528:13: note: in definition of macro 'RUN_CALLBACK' 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:1336: src/demosaic/misc_demosaic.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/decoders/decoders_dcraw.lo src/decoders/decoders_dcraw.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/decoders/decoders_dcraw.cpp -fPIC -DPIC -o src/decoders/.libs/decoders_dcraw.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/decoders/../../internal/dcraw_defs.h:22, from src/decoders/decoders_dcraw.cpp:19: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/decoders/../../internal/dcraw_defs.h:24: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/decoders/../../internal/dcraw_defs.h:19: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/decoders/decoders_dcraw.cpp: In member function 'int LibRaw::ljpeg_diff(ushort*)': src/decoders/decoders_dcraw.cpp:365:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 365 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp: In member function 'void LibRaw::lossless_jpeg_load_raw()': src/decoders/decoders_dcraw.cpp:553:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 553 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp:556:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 556 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp:581:19: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 581 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp:590:17: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 590 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp: In member function 'void LibRaw::canon_sraw_load_raw()': src/decoders/decoders_dcraw.cpp:616:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 616 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp:623:17: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 623 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp:649:44: error: 'LIBRAW_RAWSPECIAL_SRAW_NO_INTERPOLATE' was not declared in this scope 649 | if (imgdata.rawparams.specials & LIBRAW_RAWSPECIAL_SRAW_NO_INTERPOLATE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp:660:49: error: 'LIBRAW_RAWSPECIAL_SRAW_NO_RGB' was not declared in this scope 660 | else if (imgdata.rawparams.specials & LIBRAW_RAWSPECIAL_SRAW_NO_RGB) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp:684:36: error: 'LIBRAW_RAWSPECIAL_SRAW_NO_INTERPOLATE' was not declared in this scope 684 | if (imgdata.rawparams.specials & LIBRAW_RAWSPECIAL_SRAW_NO_INTERPOLATE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp:728:40: error: 'LIBRAW_RAWSPECIAL_SRAW_NO_RGB' was not declared in this scope 728 | if (!(imgdata.rawparams.specials & LIBRAW_RAWSPECIAL_SRAW_NO_RGB)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp: In member function 'void LibRaw::nikon_yuv_load_raw()': src/decoders/decoders_dcraw.cpp:955:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 955 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp: In member function 'void LibRaw::rollei_load_raw()': src/decoders/decoders_dcraw.cpp:986:11: error: 'LIBRAW_EXCEPTION_IO_BADFILE' was not declared in this scope 986 | throw LIBRAW_EXCEPTION_IO_BADFILE; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp: In member function 'void LibRaw::panasonic_load_raw()': src/decoders/decoders_dcraw.cpp:1183:17: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 1183 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp: In member function 'void LibRaw::quicktake_100_load_raw()': src/decoders/decoders_dcraw.cpp:1346:11: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 1346 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp: In member function 'void LibRaw::sony_arw2_load_raw()': src/decoders/decoders_dcraw.cpp:1489:44: error: 'LIBRAW_RAWSPECIAL_SONYARW2_ALLFLAGS' was not declared in this scope 1489 | if (!(imgdata.rawparams.specials & LIBRAW_RAWSPECIAL_SONYARW2_ALLFLAGS) // no flag set | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp:1490:46: error: 'LIBRAW_RAWSPECIAL_SONYARW2_DELTATOVALUE' was not declared in this scope 1490 | || (imgdata.rawparams.specials & LIBRAW_RAWSPECIAL_SONYARW2_DELTATOVALUE)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp:1506:47: error: 'LIBRAW_RAWSPECIAL_SONYARW2_BASEONLY' was not declared in this scope 1506 | else if (imgdata.rawparams.specials & LIBRAW_RAWSPECIAL_SONYARW2_BASEONLY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp:1516:47: error: 'LIBRAW_RAWSPECIAL_SONYARW2_DELTAONLY' was not declared in this scope 1516 | else if (imgdata.rawparams.specials & LIBRAW_RAWSPECIAL_SONYARW2_DELTAONLY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp:1532:47: error: 'LIBRAW_RAWSPECIAL_SONYARW2_DELTAZEROBASE' was not declared in this scope 1532 | else if (imgdata.rawparams.specials & LIBRAW_RAWSPECIAL_SONYARW2_DELTAZEROBASE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp:1548:42: error: 'LIBRAW_RAWSPECIAL_SONYARW2_DELTATOVALUE' was not declared in this scope 1548 | if (imgdata.rawparams.specials & LIBRAW_RAWSPECIAL_SONYARW2_DELTATOVALUE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp:1577:36: error: 'LIBRAW_RAWSPECIAL_SONYARW2_DELTATOVALUE' was not declared in this scope 1577 | if (imgdata.rawparams.specials & LIBRAW_RAWSPECIAL_SONYARW2_DELTATOVALUE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp: In member function 'void LibRaw::samsung_load_raw()': src/decoders/decoders_dcraw.cpp:1587:11: error: 'LIBRAW_EXCEPTION_IO_BADFILE' was not declared in this scope 1587 | throw LIBRAW_EXCEPTION_IO_BADFILE; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp: In member function 'void LibRaw::samsung3_load_raw()': src/decoders/decoders_dcraw.cpp:1701:19: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 1701 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp:1711:17: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 1711 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp:1713:17: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 1713 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/decoders_dcraw.cpp:1715:17: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 1715 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:1336: src/decoders/decoders_dcraw.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/decoders/unpack.lo src/decoders/unpack.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/decoders/unpack.cpp -fPIC -DPIC -o src/decoders/.libs/unpack.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/decoders/../../internal/libraw_cxx_defs.h:28, from src/decoders/unpack.cpp:15: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/decoders/../../internal/libraw_cxx_defs.h:29: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/decoders/../../internal/libraw_cxx_defs.h:20: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/decoders/unpack.cpp: In member function 'int LibRaw::unpack()': ./libraw/libraw_internal.h:311:35: error: 'LIBRAW_PROGRESS_THUMB_MASK' was not declared in this scope 311 | if ((imgdata.progress_flags & LIBRAW_PROGRESS_THUMB_MASK) >= \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:24:3: note: in expansion of macro 'CHECK_ORDER_HIGH' 24 | CHECK_ORDER_HIGH(LIBRAW_PROGRESS_LOAD_RAW); | ^~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:24:20: error: 'LIBRAW_PROGRESS_LOAD_RAW' was not declared in this scope 24 | CHECK_ORDER_HIGH(LIBRAW_PROGRESS_LOAD_RAW); | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_internal.h:312:9: note: in definition of macro 'CHECK_ORDER_HIGH' 312 | expected_stage) \ | ^~~~~~~~~~~~~~ ./libraw/libraw_internal.h:314:14: error: 'LIBRAW_OUT_OF_ORDER_CALL' was not declared in this scope 314 | return LIBRAW_OUT_OF_ORDER_CALL; \ | ^~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:24:3: note: in expansion of macro 'CHECK_ORDER_HIGH' 24 | CHECK_ORDER_HIGH(LIBRAW_PROGRESS_LOAD_RAW); | ^~~~~~~~~~~~~~~~ ./libraw/libraw_internal.h:321:35: error: 'LIBRAW_PROGRESS_THUMB_MASK' was not declared in this scope 321 | if ((imgdata.progress_flags & LIBRAW_PROGRESS_THUMB_MASK) < \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:25:3: note: in expansion of macro 'CHECK_ORDER_LOW' 25 | CHECK_ORDER_LOW(LIBRAW_PROGRESS_IDENTIFY); | ^~~~~~~~~~~~~~~ src/decoders/unpack.cpp:25:19: error: 'LIBRAW_PROGRESS_IDENTIFY' was not declared in this scope 25 | CHECK_ORDER_LOW(LIBRAW_PROGRESS_IDENTIFY); | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_internal.h:322:9: note: in definition of macro 'CHECK_ORDER_LOW' 322 | expected_stage) \ | ^~~~~~~~~~~~~~ ./libraw/libraw_internal.h:323:14: error: 'LIBRAW_OUT_OF_ORDER_CALL' was not declared in this scope 323 | return LIBRAW_OUT_OF_ORDER_CALL; \ | ^~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:25:3: note: in expansion of macro 'CHECK_ORDER_LOW' 25 | CHECK_ORDER_LOW(LIBRAW_PROGRESS_IDENTIFY); | ^~~~~~~~~~~~~~~ src/decoders/unpack.cpp:30:14: error: 'LIBRAW_INPUT_CLOSED' was not declared in this scope 30 | return LIBRAW_INPUT_CLOSED; | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:32:18: error: 'LIBRAW_PROGRESS_LOAD_RAW' was not declared in this scope 32 | RUN_CALLBACK(LIBRAW_PROGRESS_LOAD_RAW, 0, 2); | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:525:66: note: in definition of macro 'RUN_CALLBACK' 525 | int rr = (*callbacks.progress_cb)(callbacks.progresscb_data, stage, iter, \ | ^~~~~ ./libraw/libraw.h:528:13: error: 'LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK' was not declared in this scope 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:528:13: note: in definition of macro 'RUN_CALLBACK' 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:34:14: error: 'LIBRAW_REQUEST_FOR_NONEXISTENT_IMAGE' was not declared in this scope 34 | return LIBRAW_REQUEST_FOR_NONEXISTENT_IMAGE; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:37:14: error: 'LIBRAW_UNSPECIFIED_ERROR' was not declared in this scope 37 | return LIBRAW_UNSPECIFIED_ERROR; | ^~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:54:15: error: 'LIBRAW_EXCEPTION_TOOBIG' was not declared in this scope 54 | throw LIBRAW_EXCEPTION_TOOBIG; | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:77:13: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 77 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:302:40: error: 'LIBRAW_DECODER_OWNALLOC' was not declared in this scope 302 | if (decoder_info.decoder_flags & LIBRAW_DECODER_OWNALLOC) | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:307:40: error: 'LIBRAW_DECODER_SINAR4SHOT' was not declared in this scope 307 | if (decoder_info.decoder_flags & LIBRAW_DECODER_SINAR4SHOT) | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:315:19: error: 'LIBRAW_EXCEPTION_TOOBIG' was not declared in this scope 315 | throw LIBRAW_EXCEPTION_TOOBIG; | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:328:19: error: 'LIBRAW_EXCEPTION_TOOBIG' was not declared in this scope 328 | throw LIBRAW_EXCEPTION_TOOBIG; | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:337:45: error: 'LIBRAW_DECODER_3CHANNEL' was not declared in this scope 337 | else if (decoder_info.decoder_flags & LIBRAW_DECODER_3CHANNEL) | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:343:17: error: 'LIBRAW_EXCEPTION_TOOBIG' was not declared in this scope 343 | throw LIBRAW_EXCEPTION_TOOBIG; | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:359:17: error: 'LIBRAW_EXCEPTION_TOOBIG' was not declared in this scope 359 | throw LIBRAW_EXCEPTION_TOOBIG; | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:369:42: error: 'LIBRAW_DECODER_ADOBECOPYPIXEL' was not declared in this scope 369 | if (decoder_info.decoder_flags & LIBRAW_DECODER_ADOBECOPYPIXEL) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:380:28: error: 'LIBRAW_DECODER_LEGACY_WITH_MARGINS' was not declared in this scope 380 | LIBRAW_DECODER_LEGACY_WITH_MARGINS) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:391:17: error: 'LIBRAW_EXCEPTION_TOOBIG' was not declared in this scope 391 | throw LIBRAW_EXCEPTION_TOOBIG; | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:398:44: error: 'LIBRAW_DECODER_ADOBECOPYPIXEL' was not declared in this scope 398 | if (!(decoder_info.decoder_flags & LIBRAW_DECODER_ADOBECOPYPIXEL)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:418:40: error: 'LIBRAW_DECODER_OWNALLOC' was not declared in this scope 418 | if (decoder_info.decoder_flags & LIBRAW_DECODER_OWNALLOC) | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:422:45: error: 'LIBRAW_DECODER_SINAR4SHOT' was not declared in this scope 422 | else if (decoder_info.decoder_flags & LIBRAW_DECODER_SINAR4SHOT && | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:439:44: error: 'LIBRAW_DECODER_ADOBECOPYPIXEL' was not declared in this scope 439 | !(decoder_info.decoder_flags & LIBRAW_DECODER_ADOBECOPYPIXEL) && | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:440:44: error: 'LIBRAW_DECODER_LEGACY_WITH_MARGINS' was not declared in this scope 440 | !(decoder_info.decoder_flags & LIBRAW_DECODER_LEGACY_WITH_MARGINS)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:476:19: error: 'LIBRAW_PROGRESS_LOAD_RAW' was not declared in this scope 476 | SET_PROC_FLAG(LIBRAW_PROGRESS_LOAD_RAW); | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_internal.h:336:31: note: in definition of macro 'SET_PROC_FLAG' 336 | imgdata.progress_flags |= stage; \ | ^~~~~ src/decoders/unpack.cpp:477:18: error: 'LIBRAW_PROGRESS_LOAD_RAW' was not declared in this scope 477 | RUN_CALLBACK(LIBRAW_PROGRESS_LOAD_RAW, 1, 2); | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:525:66: note: in definition of macro 'RUN_CALLBACK' 525 | int rr = (*callbacks.progress_cb)(callbacks.progresscb_data, stage, iter, \ | ^~~~~ ./libraw/libraw.h:528:13: error: 'LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK' was not declared in this scope 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw.h:528:13: note: in definition of macro 'RUN_CALLBACK' 528 | throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:25: error: 'LIBRAW_EXCEPTION_ALLOC' was not declared in this scope 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:86:13: note: in definition of macro 'EXCEPTION_HANDLER' 86 | switch (e) \ | ^ src/decoders/../../internal/libraw_cxx_defs.h:88:10: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 88 | case LIBRAW_EXCEPTION_MEMPOOL: \ | ^~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:7: note: in expansion of macro 'EXCEPTION_HANDLER' 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:90:14: error: 'LIBRAW_MEMPOOL_OVERFLOW' was not declared in this scope; did you mean 'LIBRAW_MEMPOOL_CHECK'? 90 | return LIBRAW_MEMPOOL_OVERFLOW; \ | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:7: note: in expansion of macro 'EXCEPTION_HANDLER' 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:93:14: error: 'LIBRAW_UNSUFFICIENT_MEMORY' was not declared in this scope 93 | return LIBRAW_UNSUFFICIENT_MEMORY; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:7: note: in expansion of macro 'EXCEPTION_HANDLER' 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:94:10: error: 'LIBRAW_EXCEPTION_TOOBIG' was not declared in this scope 94 | case LIBRAW_EXCEPTION_TOOBIG: \ | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:7: note: in expansion of macro 'EXCEPTION_HANDLER' 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:96:14: error: 'LIBRAW_TOO_BIG' was not declared in this scope 96 | return LIBRAW_TOO_BIG; \ | ^~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:7: note: in expansion of macro 'EXCEPTION_HANDLER' 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:97:10: error: 'LIBRAW_EXCEPTION_DECODE_RAW' was not declared in this scope 97 | case LIBRAW_EXCEPTION_DECODE_RAW: \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:7: note: in expansion of macro 'EXCEPTION_HANDLER' 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:98:10: error: 'LIBRAW_EXCEPTION_DECODE_JPEG' was not declared in this scope 98 | case LIBRAW_EXCEPTION_DECODE_JPEG: \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:7: note: in expansion of macro 'EXCEPTION_HANDLER' 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:100:14: error: 'LIBRAW_DATA_ERROR' was not declared in this scope 100 | return LIBRAW_DATA_ERROR; \ | ^~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:7: note: in expansion of macro 'EXCEPTION_HANDLER' 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:101:10: error: 'LIBRAW_EXCEPTION_DECODE_JPEG2000' was not declared in this scope 101 | case LIBRAW_EXCEPTION_DECODE_JPEG2000: \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:7: note: in expansion of macro 'EXCEPTION_HANDLER' 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:104:10: error: 'LIBRAW_EXCEPTION_IO_EOF' was not declared in this scope 104 | case LIBRAW_EXCEPTION_IO_EOF: \ | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:7: note: in expansion of macro 'EXCEPTION_HANDLER' 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:105:10: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 105 | case LIBRAW_EXCEPTION_IO_CORRUPT: \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:7: note: in expansion of macro 'EXCEPTION_HANDLER' 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:107:14: error: 'LIBRAW_IO_ERROR' was not declared in this scope 107 | return LIBRAW_IO_ERROR; \ | ^~~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:7: note: in expansion of macro 'EXCEPTION_HANDLER' 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:108:10: error: 'LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK' was not declared in this scope 108 | case LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK: \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:108:10: note: in definition of macro 'EXCEPTION_HANDLER' 108 | case LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK: \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:110:14: error: 'LIBRAW_CANCELLED_BY_CALLBACK' was not declared in this scope 110 | return LIBRAW_CANCELLED_BY_CALLBACK; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:7: note: in expansion of macro 'EXCEPTION_HANDLER' 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:111:10: error: 'LIBRAW_EXCEPTION_BAD_CROP' was not declared in this scope 111 | case LIBRAW_EXCEPTION_BAD_CROP: \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:7: note: in expansion of macro 'EXCEPTION_HANDLER' 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:113:14: error: 'LIBRAW_BAD_CROP' was not declared in this scope 113 | return LIBRAW_BAD_CROP; \ | ^~~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:7: note: in expansion of macro 'EXCEPTION_HANDLER' 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:114:10: error: 'LIBRAW_EXCEPTION_UNSUPPORTED_FORMAT' was not declared in this scope 114 | case LIBRAW_EXCEPTION_UNSUPPORTED_FORMAT: \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:114:10: note: in definition of macro 'EXCEPTION_HANDLER' 114 | case LIBRAW_EXCEPTION_UNSUPPORTED_FORMAT: \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:116:14: error: 'LIBRAW_FILE_UNSUPPORTED' was not declared in this scope 116 | return LIBRAW_FILE_UNSUPPORTED; \ | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:7: note: in expansion of macro 'EXCEPTION_HANDLER' 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~ src/decoders/../../internal/libraw_cxx_defs.h:118:14: error: 'LIBRAW_UNSPECIFIED_ERROR' was not declared in this scope 118 | return LIBRAW_UNSPECIFIED_ERROR; \ | ^~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:483:7: note: in expansion of macro 'EXCEPTION_HANDLER' 483 | EXCEPTION_HANDLER(LIBRAW_EXCEPTION_ALLOC); | ^~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:485:16: error: ISO C++ forbids declaration of 'LibRaw_exceptions' with no type [-fpermissive] 485 | catch (const LibRaw_exceptions& err) | ^~~~~~~~~~~~~~~~~ src/decoders/unpack.cpp:485:33: error: expected ')' before '&' token 485 | catch (const LibRaw_exceptions& err) | ~ ^ | ) src/decoders/unpack.cpp:485:33: error: expected '{' before '&' token src/decoders/unpack.cpp:485:35: error: 'err' was not declared in this scope; did you mean 'erf'? 485 | catch (const LibRaw_exceptions& err) | ^~~ | erf src/decoders/unpack.cpp:489:3: error: expected primary-expression before 'catch' 489 | catch (const std::exception& ) | ^~~~~ make: *** [Makefile:1336: src/decoders/unpack.lo] Error 1 /bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" -DPACKAGE_STRING=\"LibRaw\ 0.21.2\" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c -o src/decoders/unpack_thumb.lo src/decoders/unpack_thumb.cpp libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.2\" "-DPACKAGE_STRING=\"LibRaw 0.21.2\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fopenmp -c src/decoders/unpack_thumb.cpp -fPIC -DPIC -o src/decoders/.libs/unpack_thumb.o In file included from ./libraw/libraw_datastream.h:46, from ./libraw/libraw.h:82, from src/decoders/../../internal/libraw_cxx_defs.h:28, from src/decoders/unpack_thumb.cpp:15: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_types.h:92, from ./libraw/libraw_datastream.h:47: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw.h:84: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from ./libraw/libraw_alloc.h:24, from ./libraw/libraw.h:86: ./libraw/libraw_const.h:17: error: unterminated #ifndef 17 | #ifndef _LIBRAW_ERRORS_H | In file included from /usr/include/jasper/jasper.h:73, from ./internal/defines.h:73, from src/decoders/../../internal/libraw_cxx_defs.h:29: /usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp] 117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." | ^~~~~~~ In file included from /usr/include/features.h:503, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/os_defines.h:39, from /usr/include/c++/12/x86_64-OpenCloudOS-linux/bits/c++config.h:655, from /usr/include/c++/12/cmath:41, from /usr/include/c++/12/math.h:36, from src/decoders/../../internal/libraw_cxx_defs.h:20: /usr/include/sys/time.h:34:1: error: expected '}' before 'extern' 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_const.h:299:1: note: to match this '{' 299 | { | ^ /usr/include/sys/time.h:34:1: error: expected unqualified-id before string constant 34 | __BEGIN_DECLS | ^~~~~~~~~~~~~ ./libraw/libraw_types.h:146:53: error: use of enum 'LibRaw_progress' without previous declaration 146 | typedef int (*progress_callback)(void *data, enum LibRaw_progress stage, | ^~~~~~~~~~~~~~~ ./libraw/libraw_types.h:172:10: error: use of enum 'LibRaw_image_formats' without previous declaration 172 | enum LibRaw_image_formats type; | ^~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:806:10: error: use of enum 'LibRaw_thumbnail_formats' without previous declaration 806 | enum LibRaw_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_types.h:815:14: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 815 | enum LibRaw_internal_thumbnail_formats tformat; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./libraw/libraw.h:85: ./libraw/libraw_internal.h:165:8: error: use of enum 'LibRaw_internal_thumbnail_formats' without previous declaration 165 | enum LibRaw_internal_thumbnail_formats thumb_format; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_alloc.h: In member function 'void libraw_memmgr::mem_ptr(void*)': ./libraw/libraw_alloc.h:123:17: error: 'LIBRAW_EXCEPTION_MEMPOOL' was not declared in this scope; did you mean 'LIBRAW_CR3_MEMPOOL'? 123 | throw LIBRAW_EXCEPTION_MEMPOOL; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_CR3_MEMPOOL ./libraw/libraw.h: At global scope: ./libraw/libraw.h:93:46: error: use of enum 'LibRaw_progress' without previous declaration 93 | DllDef const char *libraw_strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:261:39: error: use of enum 'LibRaw_progress' without previous declaration 261 | static const char *strprogress(enum LibRaw_progress); | ^~~~~~~~~~~~~~~ ./libraw/libraw.h:194:31: error: 'LIBRAW_OPTIONS_NONE' was not declared in this scope; did you mean 'LIBRAW_DNG_NONE'? 194 | LibRaw(unsigned int flags = LIBRAW_OPTIONS_NONE); | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_DNG_NONE src/decoders/unpack_thumb.cpp: In member function 'int LibRaw::unpack_thumb_ex(int)': src/decoders/unpack_thumb.cpp:34:24: error: 'LIBRAW_REQUEST_FOR_NONEXISTENT_THUMBNAIL' was not declared in this scope 34 | return LIBRAW_REQUEST_FOR_NONEXISTENT_THUMBNAIL; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:44:32: error: 'LIBRAW_PROGRESS_THUMB_LOAD' was not declared in this scope 44 | imgdata.progress_flags &= ~LIBRAW_PROGRESS_THUMB_LOAD; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp: In member function 'int LibRaw::unpack_thumb()': ./libraw/libraw_internal.h:321:35: error: 'LIBRAW_PROGRESS_THUMB_MASK' was not declared in this scope 321 | if ((imgdata.progress_flags & LIBRAW_PROGRESS_THUMB_MASK) < \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:52:3: note: in expansion of macro 'CHECK_ORDER_LOW' 52 | CHECK_ORDER_LOW(LIBRAW_PROGRESS_IDENTIFY); | ^~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:52:19: error: 'LIBRAW_PROGRESS_IDENTIFY' was not declared in this scope 52 | CHECK_ORDER_LOW(LIBRAW_PROGRESS_IDENTIFY); | ^~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_internal.h:322:9: note: in definition of macro 'CHECK_ORDER_LOW' 322 | expected_stage) \ | ^~~~~~~~~~~~~~ ./libraw/libraw_internal.h:323:14: error: 'LIBRAW_OUT_OF_ORDER_CALL' was not declared in this scope 323 | return LIBRAW_OUT_OF_ORDER_CALL; \ | ^~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:52:3: note: in expansion of macro 'CHECK_ORDER_LOW' 52 | CHECK_ORDER_LOW(LIBRAW_PROGRESS_IDENTIFY); | ^~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:53:19: error: 'LIBRAW_PROGRESS_THUMB_LOAD' was not declared in this scope 53 | CHECK_ORDER_BIT(LIBRAW_PROGRESS_THUMB_LOAD); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_internal.h:329:34: note: in definition of macro 'CHECK_ORDER_BIT' 329 | if (imgdata.progress_flags & expected_stage) \ | ^~~~~~~~~~~~~~ ./libraw/libraw_internal.h:330:14: error: 'LIBRAW_OUT_OF_ORDER_CALL' was not declared in this scope 330 | return LIBRAW_OUT_OF_ORDER_CALL; \ | ^~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:53:3: note: in expansion of macro 'CHECK_ORDER_BIT' 53 | CHECK_ORDER_BIT(LIBRAW_PROGRESS_THUMB_LOAD); | ^~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:79:14: error: 'LIBRAW_INPUT_CLOSED' was not declared in this scope 79 | return LIBRAW_INPUT_CLOSED; | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:93:14: error: 'LIBRAW_NO_THUMBNAIL' was not declared in this scope; did you mean 'LIBRAW_MAX_THUMBNAIL_MB'? 93 | return LIBRAW_NO_THUMBNAIL; | ^~~~~~~~~~~~~~~~~~~ | LIBRAW_MAX_THUMBNAIL_MB src/decoders/unpack_thumb.cpp:95:26: error: 'LIBRAW_INTERNAL_THUMBNAIL_KODAK_THUMB' was not declared in this scope 95 | else if ((Tformat >= LIBRAW_INTERNAL_THUMBNAIL_KODAK_THUMB) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:96:33: error: 'LIBRAW_INTERNAL_THUMBNAIL_KODAK_RGB' was not declared in this scope 96 | && ((Tformat <= LIBRAW_INTERNAL_THUMBNAIL_KODAK_RGB))) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:99:19: error: 'LIBRAW_THUMBNAIL_BITMAP' was not declared in this scope; did you mean 'LIBRAW_THUMBNAIL_MAXCOUNT'? 99 | T.tformat = LIBRAW_THUMBNAIL_BITMAP; | ^~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_THUMBNAIL_MAXCOUNT src/decoders/unpack_thumb.cpp:100:21: error: 'LIBRAW_PROGRESS_THUMB_LOAD' was not declared in this scope 100 | SET_PROC_FLAG(LIBRAW_PROGRESS_THUMB_LOAD); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_internal.h:336:31: note: in definition of macro 'SET_PROC_FLAG' 336 | imgdata.progress_flags |= stage; \ | ^~~~~ src/decoders/unpack_thumb.cpp:122:17: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 122 | throw LIBRAW_EXCEPTION_IO_CORRUPT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:126:17: error: 'LIBRAW_EXCEPTION_IO_EOF' was not declared in this scope 126 | throw LIBRAW_EXCEPTION_IO_EOF; | ^~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:130:22: error: 'LIBRAW_INTERNAL_THUMBNAIL_JPEG' was not declared in this scope 130 | if (Tformat == LIBRAW_INTERNAL_THUMBNAIL_JPEG) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:63:70: error: 'LIBRAW_UNSUPPORTED_THUMBNAIL' was not declared in this scope 63 | if (INT64(A) > 1024LL * 1024LL * LIBRAW_MAX_THUMBNAIL_MB) return LIBRAW_UNSUPPORTED_THUMBNAIL; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:132:9: note: in expansion of macro 'THUMB_SIZE_CHECKTNZ' 132 | THUMB_SIZE_CHECKTNZ(T.tlength); | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:64:40: error: 'LIBRAW_NO_THUMBNAIL' was not declared in this scope; did you mean 'LIBRAW_MAX_THUMBNAIL_MB'? 64 | if (INT64(A) < 64LL) return LIBRAW_NO_THUMBNAIL; \ | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:132:9: note: in expansion of macro 'THUMB_SIZE_CHECKTNZ' 132 | THUMB_SIZE_CHECKTNZ(T.tlength); | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:143:45: error: 'LIBRAW_THUMBNAIL_H265' was not declared in this scope; did you mean 'LIBRAW_MAX_THUMBNAIL_MB'? 143 | T.tformat = LIBRAW_THUMBNAIL_H265; | ^~~~~~~~~~~~~~~~~~~~~ | LIBRAW_MAX_THUMBNAIL_MB src/decoders/unpack_thumb.cpp:144:47: error: 'LIBRAW_PROGRESS_THUMB_LOAD' was not declared in this scope 144 | SET_PROC_FLAG(LIBRAW_PROGRESS_THUMB_LOAD); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_internal.h:336:31: note: in definition of macro 'SET_PROC_FLAG' 336 | imgdata.progress_flags |= stage; \ | ^~~~~ src/decoders/unpack_thumb.cpp:165:25: error: 'LIBRAW_THUMBNAIL_UNKNOWN' was not declared in this scope; did you mean 'LIBRAW_THUMBNAIL_MAXCOUNT'? 165 | T.tformat = LIBRAW_THUMBNAIL_UNKNOWN; | ^~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_THUMBNAIL_MAXCOUNT src/decoders/unpack_thumb.cpp:168:27: error: 'LIBRAW_PROGRESS_THUMB_LOAD' was not declared in this scope 168 | SET_PROC_FLAG(LIBRAW_PROGRESS_THUMB_LOAD); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_internal.h:336:31: note: in definition of macro 'SET_PROC_FLAG' 336 | imgdata.progress_flags |= stage; \ | ^~~~~ src/decoders/unpack_thumb.cpp:182:21: error: 'LIBRAW_THUMBNAIL_JPEG' was not declared in this scope 182 | T.tformat = LIBRAW_THUMBNAIL_JPEG; | ^~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:183:23: error: 'LIBRAW_PROGRESS_THUMB_LOAD' was not declared in this scope 183 | SET_PROC_FLAG(LIBRAW_PROGRESS_THUMB_LOAD); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_internal.h:336:31: note: in definition of macro 'SET_PROC_FLAG' 336 | imgdata.progress_flags |= stage; \ | ^~~~~ src/decoders/unpack_thumb.cpp:186:27: error: 'LIBRAW_INTERNAL_THUMBNAIL_LAYER' was not declared in this scope 186 | else if (Tformat == LIBRAW_INTERNAL_THUMBNAIL_LAYER) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:190:18: error: 'LIBRAW_UNSUPPORTED_THUMBNAIL' was not declared in this scope 190 | return LIBRAW_UNSUPPORTED_THUMBNAIL; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:70:81: error: 'LIBRAW_UNSUPPORTED_THUMBNAIL' was not declared in this scope 70 | if (INT64(W)*INT64(H) > 1024ULL * 1024ULL * LIBRAW_MAX_THUMBNAIL_MB) return LIBRAW_UNSUPPORTED_THUMBNAIL; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:192:9: note: in expansion of macro 'THUMB_SIZE_CHECKWH' 192 | THUMB_SIZE_CHECKWH(T.twidth, T.theight); | ^~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:71:50: error: 'LIBRAW_NO_THUMBNAIL' was not declared in this scope; did you mean 'LIBRAW_MAX_THUMBNAIL_MB'? 71 | if (INT64(W)*INT64(H) < 64ULL) return LIBRAW_NO_THUMBNAIL; \ | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:192:9: note: in expansion of macro 'THUMB_SIZE_CHECKWH' 192 | THUMB_SIZE_CHECKWH(T.twidth, T.theight); | ^~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:226:21: error: 'LIBRAW_THUMBNAIL_BITMAP' was not declared in this scope; did you mean 'LIBRAW_THUMBNAIL_MAXCOUNT'? 226 | T.tformat = LIBRAW_THUMBNAIL_BITMAP; | ^~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_THUMBNAIL_MAXCOUNT src/decoders/unpack_thumb.cpp:227:23: error: 'LIBRAW_PROGRESS_THUMB_LOAD' was not declared in this scope 227 | SET_PROC_FLAG(LIBRAW_PROGRESS_THUMB_LOAD); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_internal.h:336:31: note: in definition of macro 'SET_PROC_FLAG' 336 | imgdata.progress_flags |= stage; \ | ^~~~~ src/decoders/unpack_thumb.cpp:230:27: error: 'LIBRAW_INTERNAL_THUMBNAIL_ROLLEI' was not declared in this scope 230 | else if (Tformat == LIBRAW_INTERNAL_THUMBNAIL_ROLLEI) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:70:81: error: 'LIBRAW_UNSUPPORTED_THUMBNAIL' was not declared in this scope 70 | if (INT64(W)*INT64(H) > 1024ULL * 1024ULL * LIBRAW_MAX_THUMBNAIL_MB) return LIBRAW_UNSUPPORTED_THUMBNAIL; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:233:9: note: in expansion of macro 'THUMB_SIZE_CHECKWH' 233 | THUMB_SIZE_CHECKWH(T.twidth, T.theight); | ^~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:71:50: error: 'LIBRAW_NO_THUMBNAIL' was not declared in this scope; did you mean 'LIBRAW_MAX_THUMBNAIL_MB'? 71 | if (INT64(W)*INT64(H) < 64ULL) return LIBRAW_NO_THUMBNAIL; \ | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:233:9: note: in expansion of macro 'THUMB_SIZE_CHECKWH' 233 | THUMB_SIZE_CHECKWH(T.twidth, T.theight); | ^~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:249:21: error: 'LIBRAW_THUMBNAIL_BITMAP' was not declared in this scope; did you mean 'LIBRAW_THUMBNAIL_MAXCOUNT'? 249 | T.tformat = LIBRAW_THUMBNAIL_BITMAP; | ^~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_THUMBNAIL_MAXCOUNT src/decoders/unpack_thumb.cpp:250:23: error: 'LIBRAW_PROGRESS_THUMB_LOAD' was not declared in this scope 250 | SET_PROC_FLAG(LIBRAW_PROGRESS_THUMB_LOAD); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_internal.h:336:31: note: in definition of macro 'SET_PROC_FLAG' 336 | imgdata.progress_flags |= stage; \ | ^~~~~ src/decoders/unpack_thumb.cpp:253:27: error: 'LIBRAW_INTERNAL_THUMBNAIL_PPM' was not declared in this scope; did you mean 'LIBRAW_MAX_THUMBNAIL_MB'? 253 | else if (Tformat == LIBRAW_INTERNAL_THUMBNAIL_PPM) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_MAX_THUMBNAIL_MB src/decoders/unpack_thumb.cpp:256:17: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 256 | throw LIBRAW_EXCEPTION_IO_CORRUPT; // 8-bit thumb, but parsed for more | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:70:81: error: 'LIBRAW_UNSUPPORTED_THUMBNAIL' was not declared in this scope 70 | if (INT64(W)*INT64(H) > 1024ULL * 1024ULL * LIBRAW_MAX_THUMBNAIL_MB) return LIBRAW_UNSUPPORTED_THUMBNAIL; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:258:9: note: in expansion of macro 'THUMB_SIZE_CHECKWH' 258 | THUMB_SIZE_CHECKWH(T.twidth, T.theight); | ^~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:71:50: error: 'LIBRAW_NO_THUMBNAIL' was not declared in this scope; did you mean 'LIBRAW_MAX_THUMBNAIL_MB'? 71 | if (INT64(W)*INT64(H) < 64ULL) return LIBRAW_NO_THUMBNAIL; \ | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:258:9: note: in expansion of macro 'THUMB_SIZE_CHECKWH' 258 | THUMB_SIZE_CHECKWH(T.twidth, T.theight); | ^~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:63:70: error: 'LIBRAW_UNSUPPORTED_THUMBNAIL' was not declared in this scope 63 | if (INT64(A) > 1024LL * 1024LL * LIBRAW_MAX_THUMBNAIL_MB) return LIBRAW_UNSUPPORTED_THUMBNAIL; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:281:13: note: in expansion of macro 'THUMB_SIZE_CHECKTNZ' 281 | THUMB_SIZE_CHECKTNZ(T.tlength); | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:64:40: error: 'LIBRAW_NO_THUMBNAIL' was not declared in this scope; did you mean 'LIBRAW_MAX_THUMBNAIL_MB'? 64 | if (INT64(A) < 64LL) return LIBRAW_NO_THUMBNAIL; \ | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:281:13: note: in expansion of macro 'THUMB_SIZE_CHECKTNZ' 281 | THUMB_SIZE_CHECKTNZ(T.tlength); | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:305:25: error: 'LIBRAW_THUMBNAIL_BITMAP' was not declared in this scope; did you mean 'LIBRAW_THUMBNAIL_MAXCOUNT'? 305 | T.tformat = LIBRAW_THUMBNAIL_BITMAP; | ^~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_THUMBNAIL_MAXCOUNT src/decoders/unpack_thumb.cpp:306:27: error: 'LIBRAW_PROGRESS_THUMB_LOAD' was not declared in this scope 306 | SET_PROC_FLAG(LIBRAW_PROGRESS_THUMB_LOAD); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_internal.h:336:31: note: in definition of macro 'SET_PROC_FLAG' 336 | imgdata.progress_flags |= stage; \ | ^~~~~ src/decoders/unpack_thumb.cpp:63:70: error: 'LIBRAW_UNSUPPORTED_THUMBNAIL' was not declared in this scope 63 | if (INT64(A) > 1024LL * 1024LL * LIBRAW_MAX_THUMBNAIL_MB) return LIBRAW_UNSUPPORTED_THUMBNAIL; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:316:9: note: in expansion of macro 'THUMB_SIZE_CHECKTNZ' 316 | THUMB_SIZE_CHECKTNZ(T.tlength); | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:64:40: error: 'LIBRAW_NO_THUMBNAIL' was not declared in this scope; did you mean 'LIBRAW_MAX_THUMBNAIL_MB'? 64 | if (INT64(A) < 64LL) return LIBRAW_NO_THUMBNAIL; \ | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:316:9: note: in expansion of macro 'THUMB_SIZE_CHECKTNZ' 316 | THUMB_SIZE_CHECKTNZ(T.tlength); | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:324:21: error: 'LIBRAW_THUMBNAIL_BITMAP' was not declared in this scope; did you mean 'LIBRAW_THUMBNAIL_MAXCOUNT'? 324 | T.tformat = LIBRAW_THUMBNAIL_BITMAP; | ^~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_THUMBNAIL_MAXCOUNT src/decoders/unpack_thumb.cpp:325:23: error: 'LIBRAW_PROGRESS_THUMB_LOAD' was not declared in this scope 325 | SET_PROC_FLAG(LIBRAW_PROGRESS_THUMB_LOAD); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_internal.h:336:31: note: in definition of macro 'SET_PROC_FLAG' 336 | imgdata.progress_flags |= stage; \ | ^~~~~ src/decoders/unpack_thumb.cpp:328:27: error: 'LIBRAW_INTERNAL_THUMBNAIL_PPM16' was not declared in this scope; did you mean 'LIBRAW_MAX_THUMBNAIL_MB'? 328 | else if (Tformat == LIBRAW_INTERNAL_THUMBNAIL_PPM16) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_MAX_THUMBNAIL_MB src/decoders/unpack_thumb.cpp:331:17: error: 'LIBRAW_EXCEPTION_IO_CORRUPT' was not declared in this scope 331 | throw LIBRAW_EXCEPTION_IO_CORRUPT; // 16-bit thumb, but parsed for | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:333:50: error: 'LIBRAW_RAWOPTIONS_USE_PPM16_THUMBS' was not declared in this scope 333 | int o_bps = (imgdata.rawparams.options & LIBRAW_RAWOPTIONS_USE_PPM16_THUMBS) ? 2 : 1; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:63:70: error: 'LIBRAW_UNSUPPORTED_THUMBNAIL' was not declared in this scope 63 | if (INT64(A) > 1024LL * 1024LL * LIBRAW_MAX_THUMBNAIL_MB) return LIBRAW_UNSUPPORTED_THUMBNAIL; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:337:17: note: in expansion of macro 'THUMB_SIZE_CHECKTNZ' 337 | THUMB_SIZE_CHECKTNZ(o_length); | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:64:40: error: 'LIBRAW_NO_THUMBNAIL' was not declared in this scope; did you mean 'LIBRAW_MAX_THUMBNAIL_MB'? 64 | if (INT64(A) < 64LL) return LIBRAW_NO_THUMBNAIL; \ | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:337:17: note: in expansion of macro 'THUMB_SIZE_CHECKTNZ' 337 | THUMB_SIZE_CHECKTNZ(o_length); | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:63:70: error: 'LIBRAW_UNSUPPORTED_THUMBNAIL' was not declared in this scope 63 | if (INT64(A) > 1024LL * 1024LL * LIBRAW_MAX_THUMBNAIL_MB) return LIBRAW_UNSUPPORTED_THUMBNAIL; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:338:9: note: in expansion of macro 'THUMB_SIZE_CHECKTNZ' 338 | THUMB_SIZE_CHECKTNZ(i_length); | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:64:40: error: 'LIBRAW_NO_THUMBNAIL' was not declared in this scope; did you mean 'LIBRAW_MAX_THUMBNAIL_MB'? 64 | if (INT64(A) < 64LL) return LIBRAW_NO_THUMBNAIL; \ | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:338:9: note: in expansion of macro 'THUMB_SIZE_CHECKTNZ' 338 | THUMB_SIZE_CHECKTNZ(i_length); | ^~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:342:23: error: 'LIBRAW_EXCEPTION_ALLOC' was not declared in this scope 342 | throw LIBRAW_EXCEPTION_ALLOC; | ^~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:353:23: error: 'LIBRAW_THUMBNAIL_BITMAP16' was not declared in this scope; did you mean 'LIBRAW_THUMBNAIL_MAXCOUNT'? 353 | T.tformat = LIBRAW_THUMBNAIL_BITMAP16; | ^~~~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_THUMBNAIL_MAXCOUNT src/decoders/unpack_thumb.cpp:360:19: error: 'LIBRAW_EXCEPTION_ALLOC' was not declared in this scope 360 | throw LIBRAW_EXCEPTION_ALLOC; | ^~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:364:23: error: 'LIBRAW_THUMBNAIL_BITMAP' was not declared in this scope; did you mean 'LIBRAW_THUMBNAIL_MAXCOUNT'? 364 | T.tformat = LIBRAW_THUMBNAIL_BITMAP; | ^~~~~~~~~~~~~~~~~~~~~~~ | LIBRAW_THUMBNAIL_MAXCOUNT src/decoders/unpack_thumb.cpp:367:23: error: 'LIBRAW_PROGRESS_THUMB_LOAD' was not declared in this scope 367 | SET_PROC_FLAG(LIBRAW_PROGRESS_THUMB_LOAD); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./libraw/libraw_internal.h:336:31: note: in definition of macro 'SET_PROC_FLAG' 336 | imgdata.progress_flags |= stage; \ | ^~~~~ src/decoders/unpack_thumb.cpp:380:16: error: 'LIBRAW_UNSUPPORTED_THUMBNAIL' was not declared in this scope 380 | return LIBRAW_UNSUPPORTED_THUMBNAIL; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:384:12: error: 'LIBRAW_UNSUPPORTED_THUMBNAIL' was not declared in this scope 384 | return LIBRAW_UNSUPPORTED_THUMBNAIL; /* warned as unreachable*/ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:386:16: error: ISO C++ forbids declaration of 'LibRaw_exceptions' with no type [-fpermissive] 386 | catch (const LibRaw_exceptions& err) | ^~~~~~~~~~~~~~~~~ src/decoders/unpack_thumb.cpp:386:33: error: expected ')' before '&' token 386 | catch (const LibRaw_exceptions& err) | ~ ^ | ) src/decoders/unpack_thumb.cpp:386:33: error: expected '{' before '&' token src/decoders/unpack_thumb.cpp:386:35: error: 'err' was not declared in this scope; did you mean 'erf'? 386 | catch (const LibRaw_exceptions& err) | ^~~ | erf make: *** [Makefile:1336: src/decoders/unpack_thumb.lo] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.Z0Bzqh (%build) Bad exit status from /var/tmp/rpm-tmp.Z0Bzqh (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/LibRaw.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/LibRaw.spec