D: [iurt_root_command] chroot
Building target platforms: x86_64
Building for target x86_64
sh: line 4: [: -j8: integer expression expected
Installing /home/pterjan/rpmbuild/SRPMS/swarp-2.41.5-3.mga10.src.rpm
Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.JuYcWT
sh: line 4: [: -j8: integer expression expected
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.HIDppU
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build
+ rm -rf swarp-2.41.5
+ /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/swarp-2.41.5.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd swarp-2.41.5
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
sh: line 4: [: -j8: integer expression expected
Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.twC5Sq
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build
+ CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full '
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd swarp-2.41.5
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ autoreconf -vfi
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: creating directory autoconf
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'autoconf'.
libtoolize: copying file 'autoconf/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'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I m4
autoreconf: running: /usr/bin/autoconf --force
configure.ac:103: warning: The macro 'AC_HEADER_STDC' is obsolete.
configure.ac:103: You should run autoupdate.
./lib/autoconf/headers.m4:663: AC_HEADER_STDC is expanded from...
configure.ac:103: the top level
configure.ac:121: warning: The macro 'AC_TYPE_SIGNAL' is obsolete.
configure.ac:121: You should run autoupdate.
./lib/autoconf/types.m4:805: AC_TYPE_SIGNAL is expanded from...
configure.ac:121: the top level
configure.ac:191: warning: The macro 'AC_TRY_LINK' is obsolete.
configure.ac:191: You should run autoupdate.
./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from...
m4/acx_pthread.m4:68: ACX_PTHREAD is expanded from...
configure.ac:191: the top level
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:90: installing 'autoconf/compile'
configure.ac:96: installing 'autoconf/config.guess'
configure.ac:96: installing 'autoconf/config.sub'
configure.ac:39: installing 'autoconf/install-sh'
configure.ac:39: installing 'autoconf/missing'
src/Makefile.am: installing 'autoconf/depcomp'
autoreconf: Leaving directory '.'
+ CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon'
+ CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full '
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ CONFIGURE_TOP=.
+ '[' 1 = 1 ']'
++ find . -name config.guess -o -name config.sub
+ for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub)
++ basename ./autoconf/config.guess
+ '[' -f /usr/lib/rpm/mageia/config.guess ']'
++ basename ./autoconf/config.guess
+ cp -af /usr/lib/rpm/mageia/config.guess ./autoconf/config.guess
+ for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub)
++ basename ./autoconf/config.sub
+ '[' -f /usr/lib/rpm/mageia/config.sub ']'
++ basename ./autoconf/config.sub
+ cp -af /usr/lib/rpm/mageia/config.sub ./autoconf/config.sub
+ /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool
Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html)
+ /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool
Modifying autoconf/ltmain.sh underlinking for plugins (cf http://wiki.mandriva.com/en/Underlinking)
+ /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking
+ /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs .
+ /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64
+ ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-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-threads
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 0.01
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 xargs -n works... yes
******** Configuring:  SWarp 2.41.5 - 1 (2025-04-25) ********
checking if compilation flags are set automatically... no
checking whether the INTEL compiler is enabled... no
checking whether make supports the include directive... yes (GNU style)
checking for x86_64-mageia-linux-gnu-gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether 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 for library containing strerror... none required
checking build system type... x86_64-mageia-linux-gnu
checking host system type... x86_64-mageia-linux-gnu
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-mageia-linux-gnu file names to x86_64-mageia-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-mageia-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for x86_64-mageia-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-mageia-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-mageia-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for x86_64-mageia-linux-gnu-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for x86_64-mageia-linux-gnu-strip... no
checking for strip... strip
checking command to parse /usr/bin/nm -B output from gcc object... 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-mageia-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 sys/param.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... no
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 for sin in -lm... yes
checking for egrep... (cached) /usr/bin/grep -E
checking for malloc.h... yes
checking for unistd.h... (cached) yes
checking for sys/mman.h... yes
checking for an ANSI C-conforming const... yes
checking for off_t... yes
checking for size_t... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking for unsigned long long int... (cached) yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uid_t... yes
checking for gid_t... yes
checking for error_at_line... yes
checking for getpagesize... yes
checking for working mmap... yes
checking return type of signal handlers... void
checking for strftime... yes
checking for atexit... yes
checking for getenv... yes
checking for gethostname... yes
checking for memcpy... yes
checking for memmove... yes
checking for memset... yes
checking for mmap... yes
checking for strstr... yes
checking for getrlimit... yes
checking for cosd... no
checking for sind... no
checking for tand... no
checking for acosd... no
checking for asind... no
checking for atand... no
checking for atan2d... no
checking for sincos... yes
checking for isnan... yes
checking for gcc option to enable large file support... none needed
checking for declarations of fseeko and ftello... yes
checking for profiler mode... checking best linking option... no
checking for multithreading... maximum of 1024 thread(s)
checking for pthread.h... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for cc_r... gcc
checking for fitsio.h... yes
checking for ffopen in -lcfitsio... yes
***************************************************************
Compile cmdline:  gcc     -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon
Link    cmdline:  gcc  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -lcfitsio -lm  
Default XSLT URL: 
***************************************************************
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating swarp.spec
config.status: creating debian/Makefile
config.status: creating debian/changelog
config.status: creating doc/Makefile
config.status: creating doc/src/conf.py
config.status: creating man/Makefile
config.status: creating man/swarp.1
config.status: creating src/Makefile
config.status: creating src/fits/Makefile
config.status: creating src/wcs/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
+ /usr/bin/make -O -j48 V=1 VERBOSE=1
/usr/bin/make  all-recursive
Making all in src
Making all in fits
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o fitscleanup.o fitscleanup.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o fitsconv.o fitsconv.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o fitsread.o fitsread.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o fitsmisc.o fitsmisc.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o fitscheck.o fitscheck.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o fitscat.o fitscat.c
fitscat.c: In function 'addhistoryto_cat':
fitscat.c:140:21: warning: '%.65s' directive writing up to 65 bytes into a region of size between 0 and 81 [-Wformat-overflow=]
  140 |   sprintf(str2, "%s %.65s", str2, str);
      |                     ^~~~~
In file included from /usr/include/stdio.h:970,
                 from fitscat.c:34:
In function 'sprintf',
    inlined from 'addhistoryto_cat' at fitscat.c:140:3:
/usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 2 and 148 bytes into a destination of size 82
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o fitswrite.o fitswrite.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o fitsutil.o fitsutil.c
fitsutil.c: In function 'fitswrite':
fitsutil.c:558:42: warning: ''' directive writing 1 byte into a region of size between 0 and 80 [-Wformat-overflow=]
  558 |                         sprintf(str, "'%s'", str2);
      |                                          ^
In file included from /usr/include/stdio.h:970,
                 from fitsutil.c:34:
In function 'sprintf',
    inlined from 'fitswrite' at fitsutil.c:558:11:
/usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 3 and 83 bytes into a destination of size 81
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
fitsutil.c: In function 'fitswrite':
fitsutil.c:558:42: warning: ''' directive writing 1 byte into a region of size between 0 and 80 [-Wformat-overflow=]
  558 |                         sprintf(str, "'%s'", str2);
      |                                          ^
In function 'sprintf',
    inlined from 'fitswrite' at fitsutil.c:558:11:
/usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 3 and 83 bytes into a destination of size 81
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o fitshead.o fitshead.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o fitstab.o fitstab.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o fitskey.o fitskey.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o fitsbody.o fitsbody.c
fitsbody.c: In function 'readTileCompressed':
fitsbody.c:376:42: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
  376 |     printf("CFITSIO ERROR reading start=%d end=%d absolute end=%d\n",
      |                                         ~^
      |                                          |
      |                                          int
      |                                         %ld
  377 |         tab->currentElement,
      |         ~~~~~~~~~~~~~~~~~~~               
      |            |
      |            long int
fitsbody.c:376:49: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
  376 |     printf("CFITSIO ERROR reading start=%d end=%d absolute end=%d\n",
      |                                                ~^
      |                                                 |
      |                                                 int
      |                                                %ld
  377 |         tab->currentElement,
  378 |         (tab->currentElement + spoonful),
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~         
      |                              |
      |                              long unsigned int
fitsbody.c: In function 'write_body':
fitsbody.c:1142:52: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
 1142 |               printf("CFITSIO ERROR writing start=%d end=%d absolute end=%d\n",
      |                                                   ~^
      |                                                    |
      |                                                    int
      |                                                   %ld
 1143 |                         tab->currentElement, (tab->currentElement + spoonful),
      |                         ~~~~~~~~~~~~~~~~~~~         
      |                            |
      |                            long int
fitsbody.c:1142:59: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
 1142 |               printf("CFITSIO ERROR writing start=%d end=%d absolute end=%d\n",
      |                                                          ~^
      |                                                           |
      |                                                           int
      |                                                          %ld
 1143 |                         tab->currentElement, (tab->currentElement + spoonful),
      |                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                   |
      |                                                                   long unsigned int
fitsbody.c: In function 'alloc_body':
fitsbody.c:124:31: warning: '/vm' directive writing 3 bytes into a region of size between 1 and 256 [-Wformat-overflow=]
  124 |     sprintf(tab->swapname, "%s/vm%05ld_%05x.tmp",
      |                               ^~~
fitsbody.c:124:28: note: directive argument in the range [-2147483648, 2147483647]
  124 |     sprintf(tab->swapname, "%s/vm%05ld_%05x.tmp",
      |                            ^~~~~~~~~~~~~~~~~~~~~
fitsbody.c:124:28: note: using the range [0, 4294967295] for directive argument
In file included from /usr/include/stdio.h:970,
                 from fitsbody.c:34:
In function 'sprintf',
    inlined from 'alloc_body' at fitsbody.c:124:5:
/usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 19 and 283 bytes into a destination of size 256
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
fitsbody.c: In function 'alloc_ibody':
fitsbody.c:230:31: warning: '/vm' directive writing 3 bytes into a region of size between 1 and 256 [-Wformat-overflow=]
  230 |     sprintf(tab->swapname, "%s/vm%05ld_%05x.tmp",
      |                               ^~~
fitsbody.c:230:28: note: directive argument in the range [-2147483648, 2147483647]
  230 |     sprintf(tab->swapname, "%s/vm%05ld_%05x.tmp",
      |                            ^~~~~~~~~~~~~~~~~~~~~
fitsbody.c:230:28: note: using the range [0, 4294967295] for directive argument
In function 'sprintf',
    inlined from 'alloc_ibody' at fitsbody.c:230:5:
/usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 19 and 283 bytes into a destination of size 256
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
rm -f libfits.a
ar cr libfits.a fitsbody.o fitscat.o fitscheck.o fitscleanup.o fitsconv.o fitshead.o fitskey.o fitsmisc.o fitsread.o fitstab.o fitsutil.o fitswrite.o 
ranlib libfits.a
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/fits'
Making all in wcs
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o wcstrig.o wcstrig.c
wcstrig.c: In function 'wcs_cosd':
wcstrig.c:84:8: warning: old-style function definition [-Wold-style-definition]
   84 | double wcs_cosd(angle)
      |        ^~~~~~~~
wcstrig.c: In function 'wcs_sind':
wcstrig.c:107:8: warning: old-style function definition [-Wold-style-definition]
  107 | double wcs_sind(angle)
      |        ^~~~~~~~
wcstrig.c: In function 'wcs_tand':
wcstrig.c:130:8: warning: old-style function definition [-Wold-style-definition]
  130 | double wcs_tand(angle)
      |        ^~~~~~~~
wcstrig.c: In function 'wcs_acosd':
wcstrig.c:151:8: warning: old-style function definition [-Wold-style-definition]
  151 | double wcs_acosd(v)
      |        ^~~~~~~~~
wcstrig.c: In function 'wcs_asind':
wcstrig.c:169:8: warning: old-style function definition [-Wold-style-definition]
  169 | double wcs_asind(v)
      |        ^~~~~~~~~
wcstrig.c: In function 'wcs_atand':
wcstrig.c:187:8: warning: old-style function definition [-Wold-style-definition]
  187 | double wcs_atand(v)
      |        ^~~~~~~~~
wcstrig.c: In function 'wcs_atan2d':
wcstrig.c:205:8: warning: old-style function definition [-Wold-style-definition]
  205 | double wcs_atan2d(y, x)
      |        ^~~~~~~~~~
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o sph.o sph.c
sph.c: In function 'sphfwd':
sph.c:143:5: warning: old-style function definition [-Wold-style-definition]
  143 | int sphfwd (lng, lat, eul, phi, theta)
      |     ^~~~~~
sph.c: In function 'sphrev':
sph.c:200:5: warning: old-style function definition [-Wold-style-definition]
  200 | int sphrev (phi, theta, eul, lng, lat)
      |     ^~~~~~
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o cel.o cel.c
cel.c: In function 'celset':
cel.c:311:5: warning: old-style function definition [-Wold-style-definition]
  311 | int celset(pcode, cel, prj)
      |     ^~~~~~
cel.c: In function 'celfwd':
cel.c:568:5: warning: old-style function definition [-Wold-style-definition]
  568 | int celfwd(pcode, lng, lat, cel, phi, theta, prj, x, y)
      |     ^~~~~~
cel.c: In function 'celrev':
cel.c:597:5: warning: old-style function definition [-Wold-style-definition]
  597 | int celrev(pcode, x, y, prj, phi, theta, cel, lng, lat)
      |     ^~~~~~
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o tnx.o tnx.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o lin.o lin.c
lin.c: In function 'linset':
lin.c:201:5: warning: old-style function definition [-Wold-style-definition]
  201 | int linset(lin)
      |     ^~~~~~
lin.c: In function 'linfwd':
lin.c:238:5: warning: old-style function definition [-Wold-style-definition]
  238 | int linfwd(imgcrd, lin, pixcrd)
      |     ^~~~~~
lin.c: In function 'linrev':
lin.c:269:5: warning: old-style function definition [-Wold-style-definition]
  269 | int linrev(pixcrd, lin, imgcrd)
      |     ^~~~~~
lin.c: In function 'matinv':
lin.c:301:5: warning: old-style function definition [-Wold-style-definition]
  301 | int matinv(n, mat, inv)
      |     ^~~~~~
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o wcs.o wcs.c
wcs.c: In function 'wcsset':
wcs.c:456:5: warning: old-style function definition [-Wold-style-definition]
  456 | int wcsset (naxis, ctype, wcs)
      |     ^~~~~~
wcs.c: In function 'wcsfwd':
wcs.c:556:5: warning: old-style function definition [-Wold-style-definition]
  556 | int wcsfwd(ctype, wcs, world, crval, cel, phi, theta, prj, imgcrd, lin,
      |     ^~~~~~
wcs.c: In function 'wcsrev':
wcs.c:645:5: warning: old-style function definition [-Wold-style-definition]
  645 | int wcsrev(ctype, wcs, pixcrd, lin, imgcrd, prj, phi, theta, crval, cel,
      |     ^~~~~~
wcs.c: In function 'wcsmix':
wcs.c:744:5: warning: old-style function definition [-Wold-style-definition]
  744 | int wcsmix(ctype, wcs, mixpix, mixcel, vspan, vstep, viter, world, crval, cel,
      |     ^~~~~~
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o poly.o poly.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
gcc -DHAVE_CONFIG_H -I. -I../..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o proj.o proj.c
proj.c: In function 'azpset':
proj.c:275:5: warning: old-style function definition [-Wold-style-definition]
  275 | int azpset(prj)
      |     ^~~~~~
proj.c: In function 'azpfwd':
proj.c:305:5: warning: old-style function definition [-Wold-style-definition]
  305 | int azpfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'azprev':
proj.c:338:5: warning: old-style function definition [-Wold-style-definition]
  338 | int azprev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'tanset':
proj.c:380:5: warning: old-style function definition [-Wold-style-definition]
  380 | int tanset(prj)
      |     ^~~~~~
proj.c: In function 'tanfwd':
proj.c:408:5: warning: old-style function definition [-Wold-style-definition]
  408 | int tanfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'tanrev':
proj.c:447:5: warning: old-style function definition [-Wold-style-definition]
  447 | int tanrev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'sinset':
proj.c:493:5: warning: old-style function definition [-Wold-style-definition]
  493 | int sinset(prj)
      |     ^~~~~~
proj.c: In function 'sinfwd':
proj.c:517:5: warning: old-style function definition [-Wold-style-definition]
  517 | int sinfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'sinrev':
proj.c:568:5: warning: old-style function definition [-Wold-style-definition]
  568 | int sinrev (x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'stgset':
proj.c:664:5: warning: old-style function definition [-Wold-style-definition]
  664 | int stgset(prj)
      |     ^~~~~~
proj.c: In function 'stgfwd':
proj.c:684:5: warning: old-style function definition [-Wold-style-definition]
  684 | int stgfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'stgrev':
proj.c:711:5: warning: old-style function definition [-Wold-style-definition]
  711 | int stgrev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'arcset':
proj.c:744:5: warning: old-style function definition [-Wold-style-definition]
  744 | int arcset(prj)
      |     ^~~~~~
proj.c: In function 'arcfwd':
proj.c:765:5: warning: old-style function definition [-Wold-style-definition]
  765 | int arcfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'arcrev':
proj.c:787:5: warning: old-style function definition [-Wold-style-definition]
  787 | int arcrev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'zpnset':
proj.c:824:5: warning: old-style function definition [-Wold-style-definition]
  824 | int zpnset(prj)
      |     ^~~~~~
proj.c: In function 'zpnfwd':
proj.c:906:5: warning: old-style function definition [-Wold-style-definition]
  906 | int zpnfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'zpnrev':
proj.c:939:5: warning: old-style function definition [-Wold-style-definition]
  939 | int zpnrev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'zeaset':
proj.c:1060:5: warning: old-style function definition [-Wold-style-definition]
 1060 | int zeaset(prj)
      |     ^~~~~~
proj.c: In function 'zeafwd':
proj.c:1081:5: warning: old-style function definition [-Wold-style-definition]
 1081 | int zeafwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'zearev':
proj.c:1103:5: warning: old-style function definition [-Wold-style-definition]
 1103 | int zearev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'airset':
proj.c:1157:5: warning: old-style function definition [-Wold-style-definition]
 1157 | int airset(prj)
      |     ^~~~~~
proj.c: In function 'airfwd':
proj.c:1191:5: warning: old-style function definition [-Wold-style-definition]
 1191 | int airfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'airrev':
proj.c:1227:5: warning: old-style function definition [-Wold-style-definition]
 1227 | int airrev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'cypset':
proj.c:1318:5: warning: old-style function definition [-Wold-style-definition]
 1318 | int cypset(prj)
      |     ^~~~~~
proj.c: In function 'cypfwd':
proj.c:1358:5: warning: old-style function definition [-Wold-style-definition]
 1358 | int cypfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'cyprev':
proj.c:1384:5: warning: old-style function definition [-Wold-style-definition]
 1384 | int cyprev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'carset':
proj.c:1417:5: warning: old-style function definition [-Wold-style-definition]
 1417 | int carset(prj)
      |     ^~~~~~
proj.c: In function 'carfwd':
proj.c:1439:5: warning: old-style function definition [-Wold-style-definition]
 1439 | int carfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'carrev':
proj.c:1458:5: warning: old-style function definition [-Wold-style-definition]
 1458 | int carrev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'merset':
proj.c:1488:5: warning: old-style function definition [-Wold-style-definition]
 1488 | int merset(prj)
      |     ^~~~~~
proj.c: In function 'merfwd':
proj.c:1509:5: warning: old-style function definition [-Wold-style-definition]
 1509 | int merfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'merrev':
proj.c:1532:5: warning: old-style function definition [-Wold-style-definition]
 1532 | int merrev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'ceaset':
proj.c:1568:5: warning: old-style function definition [-Wold-style-definition]
 1568 | int ceaset(prj)
      |     ^~~~~~
proj.c: In function 'ceafwd':
proj.c:1597:5: warning: old-style function definition [-Wold-style-definition]
 1597 | int ceafwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'cearev':
proj.c:1616:5: warning: old-style function definition [-Wold-style-definition]
 1616 | int cearev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'copset':
proj.c:1666:5: warning: old-style function definition [-Wold-style-definition]
 1666 | int copset(prj)
      |     ^~~~~~
proj.c: In function 'copfwd':
proj.c:1701:5: warning: old-style function definition [-Wold-style-definition]
 1701 | int copfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'coprev':
proj.c:1735:5: warning: old-style function definition [-Wold-style-definition]
 1735 | int coprev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'codset':
proj.c:1780:5: warning: old-style function definition [-Wold-style-definition]
 1780 | int codset(prj)
      |     ^~~~~~
proj.c: In function 'codfwd':
proj.c:1808:5: warning: old-style function definition [-Wold-style-definition]
 1808 | int codfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'codrev':
proj.c:1832:5: warning: old-style function definition [-Wold-style-definition]
 1832 | int codrev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'coeset':
proj.c:1882:5: warning: old-style function definition [-Wold-style-definition]
 1882 | int coeset(prj)
      |     ^~~~~~
proj.c: In function 'coefwd':
proj.c:1917:5: warning: old-style function definition [-Wold-style-definition]
 1917 | int coefwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'coerev':
proj.c:1945:5: warning: old-style function definition [-Wold-style-definition]
 1945 | int coerev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'cooset':
proj.c:2009:5: warning: old-style function definition [-Wold-style-definition]
 2009 | int cooset(prj)
      |     ^~~~~~
proj.c: In function 'coofwd':
proj.c:2051:5: warning: old-style function definition [-Wold-style-definition]
 2051 | int coofwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'coorev':
proj.c:2083:5: warning: old-style function definition [-Wold-style-definition]
 2083 | int coorev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'bonset':
proj.c:2132:5: warning: old-style function definition [-Wold-style-definition]
 2132 | int bonset(prj)
      |     ^~~~~~
proj.c: In function 'bonfwd':
proj.c:2153:5: warning: old-style function definition [-Wold-style-definition]
 2153 | int bonfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'bonrev':
proj.c:2182:5: warning: old-style function definition [-Wold-style-definition]
 2182 | int bonrev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'pcoset':
proj.c:2231:5: warning: old-style function definition [-Wold-style-definition]
 2231 | int pcoset(prj)
      |     ^~~~~~
proj.c: In function 'pcofwd':
proj.c:2254:5: warning: old-style function definition [-Wold-style-definition]
 2254 | int pcofwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'pcorev':
proj.c:2285:5: warning: old-style function definition [-Wold-style-definition]
 2285 | int pcorev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'glsset':
proj.c:2376:5: warning: old-style function definition [-Wold-style-definition]
 2376 | int glsset(prj)
      |     ^~~~~~
proj.c: In function 'glsfwd':
proj.c:2397:5: warning: old-style function definition [-Wold-style-definition]
 2397 | int glsfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'glsrev':
proj.c:2416:5: warning: old-style function definition [-Wold-style-definition]
 2416 | int glsrev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'parset':
proj.c:2451:5: warning: old-style function definition [-Wold-style-definition]
 2451 | int parset(prj)
      |     ^~~~~~
proj.c: In function 'parfwd':
proj.c:2476:5: warning: old-style function definition [-Wold-style-definition]
 2476 | int parfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'parrev':
proj.c:2498:5: warning: old-style function definition [-Wold-style-definition]
 2498 | int parrev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'aitset':
proj.c:2543:5: warning: old-style function definition [-Wold-style-definition]
 2543 | int aitset(prj)
      |     ^~~~~~
proj.c: In function 'aitfwd':
proj.c:2562:5: warning: old-style function definition [-Wold-style-definition]
 2562 | int aitfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'aitrev':
proj.c:2585:5: warning: old-style function definition [-Wold-style-definition]
 2585 | int aitrev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'molset':
proj.c:2640:5: warning: old-style function definition [-Wold-style-definition]
 2640 | int molset(prj)
      |     ^~~~~~
proj.c: In function 'molfwd':
proj.c:2660:5: warning: old-style function definition [-Wold-style-definition]
 2660 | int molfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'molrev':
proj.c:2708:5: warning: old-style function definition [-Wold-style-definition]
 2708 | int molrev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'cscset':
proj.c:2770:5: warning: old-style function definition [-Wold-style-definition]
 2770 | int cscset(prj)
      |     ^~~~~~
proj.c: In function 'cscfwd':
proj.c:2791:5: warning: old-style function definition [-Wold-style-definition]
 2791 | int cscfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'cscrev':
proj.c:2922:5: warning: old-style function definition [-Wold-style-definition]
 2922 | int cscrev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'qscset':
proj.c:3070:5: warning: old-style function definition [-Wold-style-definition]
 3070 | int qscset(prj)
      |     ^~~~~~
proj.c: In function 'qscfwd':
proj.c:3091:5: warning: old-style function definition [-Wold-style-definition]
 3091 | int qscfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'qscrev':
proj.c:3264:5: warning: old-style function definition [-Wold-style-definition]
 3264 | int qscrev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'tscset':
proj.c:3441:5: warning: old-style function definition [-Wold-style-definition]
 3441 | int tscset(prj)
      |     ^~~~~~
proj.c: In function 'tscfwd':
proj.c:3462:5: warning: old-style function definition [-Wold-style-definition]
 3462 | int tscfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'tscrev':
proj.c:3558:5: warning: old-style function definition [-Wold-style-definition]
 3558 | int tscrev(x, y, prj, phi, theta)
      |     ^~~~~~
proj.c: In function 'tnxset':
proj.c:3641:5: warning: old-style function definition [-Wold-style-definition]
 3641 | int tnxset(prj)
      |     ^~~~~~
proj.c: In function 'tnxfwd':
proj.c:3659:5: warning: old-style function definition [-Wold-style-definition]
 3659 | int tnxfwd(phi, theta, prj, x, y)
      |     ^~~~~~
proj.c: In function 'tnxrev':
proj.c:3690:5: warning: old-style function definition [-Wold-style-definition]
 3690 | int tnxrev(x, y, prj, phi, theta)
      |     ^~~~~~
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
rm -f libwcs_c.a
ar cr libwcs_c.a cel.o lin.o poly.o proj.o sph.o tnx.o wcs.o wcstrig.o 
ranlib libwcs_c.a
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src/wcs'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o misc.o misc.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o threads.o threads.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o coadd.o coadd.c
coadd.c: In function 'chi_bias':
coadd.c:69:25: error: too many arguments to function 'gammln'; expected 0, have 1
   69 | #define LOGGAMMA        gammln
      |                         ^~~~~~
coadd.c:932:33: note: in expansion of macro 'LOGGAMMA'
  932 |     bias[i] = 1.41421356237*exp(LOGGAMMA(val+0.5)-LOGGAMMA(val));
      |                                 ^~~~~~~~
coadd.c:70:25: note: declared here
   70 | static double           gammln();
      |                         ^~~~~~
coadd.c:69:25: error: too many arguments to function 'gammln'; expected 0, have 1
   69 | #define LOGGAMMA        gammln
      |                         ^~~~~~
coadd.c:932:51: note: in expansion of macro 'LOGGAMMA'
  932 |     bias[i] = 1.41421356237*exp(LOGGAMMA(val+0.5)-LOGGAMMA(val));
      |                                                   ^~~~~~~~
coadd.c:70:25: note: declared here
   70 | static double           gammln();
      |                         ^~~~~~
coadd.c: At top level:
coadd.c:949:17: error: conflicting types for 'gammln'; have 'double(double)'
  949 | static double   gammln(double xx)
      |                 ^~~~~~
coadd.c:70:25: note: previous declaration of 'gammln' with type 'double(void)'
   70 | static double           gammln();
      |                         ^~~~~~
coadd.c:70:25: warning: 'gammln' used but never defined
make[3]: *** [Makefile:521: coadd.o] Error 1
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
make[3]: *** Waiting for unfinished jobs....
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o main.o main.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o data.o data.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o weight.o weight.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o header.o header.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o interpolate.o interpolate.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o makeit.o makeit.c
makeit.c: In function 'makeit':
makeit.c:82:35: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 0 and 7 [-Wformat-overflow=]
   82 |   sprintf(prefs.sdate_start,"%04d-%02d-%02d",
      |                                   ^~~~
makeit.c:82:29: note: directive argument in the range [-2147483647, 2147483647]
   82 |   sprintf(prefs.sdate_start,"%04d-%02d-%02d",
      |                             ^~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:970,
                 from makeit.c:38:
In function 'sprintf',
    inlined from 'makeit' at makeit.c:82:3:
/usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 11 and 36 bytes into a destination of size 12
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
makeit.c: In function 'makeit':
makeit.c:276:34: warning: '%s' directive writing up to 511 bytes into a region of size 504 [-Wformat-overflow=]
  276 |           sprintf(gstr, "Reading %s ...", inwfield[k]->filename);
      |                                  ^~
In function 'sprintf',
    inlined from 'makeit' at makeit.c:276:11:
/usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 13 and 524 bytes into a destination of size 512
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
makeit.c: In function 'makeit':
makeit.c:281:32: warning: '%s' directive writing up to 511 bytes into a region of size 504 [-Wformat-overflow=]
  281 |         sprintf(gstr, "Reading %s", infield[k]->filename);
      |                                ^~
In function 'sprintf',
    inlined from 'makeit' at makeit.c:281:9:
/usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 9 and 520 bytes into a destination of size 512
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
makeit.c: In function 'makeit':
makeit.c:285:35: warning: '%s' directive writing up to 511 bytes into a region of size 501 [-Wformat-overflow=]
  285 |         sprintf(gstr, "Resampling %s ...", infield[k]->filename);
      |                                   ^~
In function 'sprintf',
    inlined from 'makeit' at makeit.c:285:9:
/usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 16 and 527 bytes into a destination of size 512
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
makeit.c: In function 'makeit':
makeit.c:292:43: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 0 and 7 [-Wformat-overflow=]
  292 |       sprintf(infield[k]->sdate_end,"%04d-%02d-%02d",
      |                                           ^~~~
makeit.c:292:37: note: directive argument in the range [-2147483647, 2147483647]
  292 |       sprintf(infield[k]->sdate_end,"%04d-%02d-%02d",
      |                                     ^~~~~~~~~~~~~~~~
In function 'sprintf',
    inlined from 'makeit' at makeit.c:292:7:
/usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 11 and 36 bytes into a destination of size 12
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
makeit.c: In function 'makeit':
makeit.c:357:33: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 0 and 7 [-Wformat-overflow=]
  357 |   sprintf(prefs.sdate_end,"%04d-%02d-%02d",
      |                                 ^~~~
makeit.c:357:27: note: directive argument in the range [-2147483647, 2147483647]
  357 |   sprintf(prefs.sdate_end,"%04d-%02d-%02d",
      |                           ^~~~~~~~~~~~~~~~
In function 'sprintf',
    inlined from 'makeit' at makeit.c:357:3:
/usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 11 and 36 bytes into a destination of size 12
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o xml.o xml.c
xml.c: In function 'write_xml_meta':
xml.c:267:35: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 0 and 7 [-Wformat-overflow=]
  267 |     sprintf(prefs.sdate_end,"%04d-%02d-%02d",
      |                                   ^~~~
xml.c:267:29: note: directive argument in the range [-2147483647, 2147483647]
  267 |     sprintf(prefs.sdate_end,"%04d-%02d-%02d",
      |                             ^~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:970,
                 from xml.c:34:
In function 'sprintf',
    inlined from 'write_xml_meta' at xml.c:267:5:
/usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 11 and 36 bytes into a destination of size 12
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o projapprox.o projapprox.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o resample.o resample.c
resample.c: In function 'resample_field':
resample.c:149:29: warning: '%s' directive writing up to 511 bytes into a region of size between 0 and 511 [-Wformat-overflow=]
  149 |     sprintf(filename, "%s/%s%s", prefs.resampdir_name, filename2,
      |                             ^~
  150 |                                 prefs.resamp_suffix);
      |                                 ~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:970,
                 from resample.c:38:
In function 'sprintf',
    inlined from 'resample_field' at resample.c:149:5:
/usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 1024) into a destination of size 512
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
resample.c: In function 'resample_field':
resample.c:146:29: warning: '.' directive writing 1 byte into a region of size between 0 and 511 [-Wformat-overflow=]
  146 |     sprintf(filename, "%s/%s.%04d%s", prefs.resampdir_name, filename2,
      |                             ^
resample.c:146:23: note: using the range [-2147483648, 2147483647] for directive argument
  146 |     sprintf(filename, "%s/%s.%04d%s", prefs.resampdir_name, filename2,
      |                       ^~~~~~~~~~~~~~
In function 'sprintf',
    inlined from 'resample_field' at resample.c:146:5:
/usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 7 or more bytes (assuming 1029) into a destination of size 512
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
resample.c: In function 'resample_field':
resample.c:231:31: warning: '.weight' directive writing 7 bytes into a region of size between 0 and 511 [-Wformat-overflow=]
  231 |     sprintf(filename, "%s/%s%s.weight%s", prefs.resampdir_name, filename2,
      |                               ^~~~~~~
In function 'sprintf',
    inlined from 'resample_field' at resample.c:231:5:
/usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 9 or more bytes (assuming 520) into a destination of size 512
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
resample.c: In function 'resample_field':
resample.c:227:29: warning: '.' directive writing 1 byte into a region of size between 0 and 511 [-Wformat-overflow=]
  227 |     sprintf(filename, "%s/%s.%04d%s.weight%s", prefs.resampdir_name, filename2,
      |                             ^
resample.c:227:23: note: using the range [-2147483648, 2147483647] for directive argument
  227 |     sprintf(filename, "%s/%s.%04d%s.weight%s", prefs.resampdir_name, filename2,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~
In function 'sprintf',
    inlined from 'resample_field' at resample.c:227:5:
/usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 14 or more bytes (assuming 525) into a destination of size 512
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o prefs.o prefs.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o field.o field.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o back.o back.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fcommon -c -o fitswcs.o fitswcs.c
make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/swarp-2.41.5-build/swarp-2.41.5/src'
make[2]: *** [Makefile:550: all-recursive] Error 1
make[1]: *** [Makefile:517: all-recursive] Error 1
make: *** [Makefile:424: all] Error 2
error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.twC5Sq (%build)

RPM build errors:
    Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.twC5Sq (%build)
I: [iurt_root_command] ERROR: chroot