D: [iurt_root_command] chroot
Building target platforms: x86_64
Building for target x86_64
sh: line 4: [: -j8: integer expected
Installing /home/pterjan/rpmbuild/SRPMS/wmmoonclock-1.30-2.mga10.src.rpm
Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.WQJ3kJ
sh: line 4: [: -j8: integer expected
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.G42uma
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/wmmoonclock-1.30-build
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD/wmmoonclock-1.30-build
+ rm -rf wmmoonclock-1.30
+ /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/wmmoonclock-1.30.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd wmmoonclock-1.30
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
sh: line 4: [: -j8: integer expected
Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.4klVcI
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/wmmoonclock-1.30-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 wmmoonclock-1.30
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ autoreconf -fi
+ 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
+ CONFIGURE_TOP=.
+ '[' 1 = 1 ']'
++ find . -name config.guess -o -name 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
+ /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
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
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 whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... none
checking for x86_64-mageia-linux-gnu-pkg-config... /usr/bin/x86_64-mageia-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for x11... yes
checking for xext... yes
checking for xpm... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
+ /usr/bin/make -O -j48 V=1 VERBOSE=1
gcc -DPACKAGE_NAME=\"wmmoonclock\" -DPACKAGE_TARNAME=\"wmmoonclock\" -DPACKAGE_VERSION=\"1.30\" -DPACKAGE_STRING=\"wmmoonclock\ 1.30\" -DPACKAGE_BUGREPORT=\"wmaker-dev@googlegroups.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"wmmoonclock\" -DVERSION=\"1.30\" -I.       -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 -c -o src/MoonRise.o src/MoonRise.c
src/MoonRise.c: In function 'MoonRise':
src/MoonRise.c:24:10: error: too many arguments to function 'SinH'; expected 0, have 4
   24 |     ym = SinH(year, month, day, UT-1.0) - SinH0;
      |          ^~~~ ~~~~
src/MoonRise.c:14:33: note: declared here
   14 |     double      xe, ye, z1, z2, SinH(), hour24();
      |                                 ^~~~
src/MoonRise.c:28:14: error: too many arguments to function 'SinH'; expected 0, have 4
   28 |         y0 = SinH(year, month, day, UT) - SinH0;
      |              ^~~~ ~~~~
src/MoonRise.c:14:33: note: declared here
   14 |     double      xe, ye, z1, z2, SinH(), hour24();
      |                                 ^~~~
src/MoonRise.c:29:14: error: too many arguments to function 'SinH'; expected 0, have 4
   29 |         yp = SinH(year, month, day, UT+1.0) - SinH0;
      |              ^~~~ ~~~~
src/MoonRise.c:14:33: note: declared here
   14 |     double      xe, ye, z1, z2, SinH(), hour24();
      |                                 ^~~~
src/MoonRise.c:65:19: error: too many arguments to function 'hour24'; expected 0, have 1
   65 |         *UTRise = hour24(*UTRise);
      |                   ^~~~~~ ~~~~~~~
src/MoonRise.c:14:41: note: declared here
   14 |     double      xe, ye, z1, z2, SinH(), hour24();
      |                                         ^~~~~~
src/MoonRise.c:72:18: error: too many arguments to function 'hour24'; expected 0, have 1
   72 |         *UTSet = hour24(*UTSet);
      |                  ^~~~~~ ~~~~~~
src/MoonRise.c:14:41: note: declared here
   14 |     double      xe, ye, z1, z2, SinH(), hour24();
      |                                         ^~~~~~
src/MoonRise.c: At top level:
src/MoonRise.c:134:8: error: conflicting types for 'SinH'; have 'double(int,  int,  int,  double)'
  134 | double SinH(int year, int month, int day, double UT){
      |        ^~~~
src/MoonRise.c:14:33: note: previous declaration of 'SinH' with type 'double(void)'
   14 |     double      xe, ye, z1, z2, SinH(), hour24();
      |                                 ^~~~
src/MoonRise.c: In function 'SinH':
src/MoonRise.c:140:11: error: too many arguments to function 'jd'; expected 0, have 4
  140 |     TU = (jd(year, month, day, UT) - 2451545.0)/36525.0;
      |           ^~ ~~~~
src/MoonRise.c:136:29: note: declared here
  136 |     double      TU, frac(), jd();
      |                             ^~
src/MoonRise.c:160:15: error: too many arguments to function 'frac'; expected 0, have 1
  160 |     UT = 24.0*frac( UT/24.0 );
      |               ^~~~  ~~~~~~~
src/MoonRise.c:136:21: note: declared here
  136 |     double      TU, frac(), jd();
      |                     ^~~~
src/MoonRise.c:165:17: error: too many arguments to function 'frac'; expected 0, have 1
  165 |     lmst = 24.0*frac( (gmst-Glon/15.0) / 24.0 );
      |                 ^~~~  ~~~~~~~~~~~~~~~~~~~~~~~
src/MoonRise.c:136:21: note: declared here
  136 |     double      TU, frac(), jd();
      |                     ^~~~
make: *** [Makefile:458: src/MoonRise.o] Error 1
make: *** Waiting for unfinished jobs....
gcc -DPACKAGE_NAME=\"wmmoonclock\" -DPACKAGE_TARNAME=\"wmmoonclock\" -DPACKAGE_VERSION=\"1.30\" -DPACKAGE_STRING=\"wmmoonclock\ 1.30\" -DPACKAGE_BUGREPORT=\"wmaker-dev@googlegroups.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"wmmoonclock\" -DVERSION=\"1.30\" -I.       -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 -c -o src/Moon.o src/Moon.c
src/Moon.c: In function 'Moon':
src/Moon.c:43:10: error: too many arguments to function 'sine'; expected 0, have 1
   43 |     S1 = sine( 0.19833 + 0.05611*T );
      |          ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:44:10: error: too many arguments to function 'sine'; expected 0, have 1
   44 |     S2 = sine( 0.27869 + 0.04508*T );
      |          ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:45:10: error: too many arguments to function 'sine'; expected 0, have 1
   45 |     S3 = sine( 0.16827 - 0.36903*T );
      |          ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:46:10: error: too many arguments to function 'sine'; expected 0, have 1
   46 |     S4 = sine( 0.34734 - 5.37261*T );
      |          ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:47:10: error: too many arguments to function 'sine'; expected 0, have 1
   47 |     S5 = sine( 0.10498 - 5.37899*T );
      |          ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:48:10: error: too many arguments to function 'sine'; expected 0, have 1
   48 |     S6 = sine( 0.42681 - 0.41855*T );
      |          ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:49:10: error: too many arguments to function 'sine'; expected 0, have 1
   49 |     S7 = sine( 0.14943 - 5.37511*T );
      |          ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:55:23: error: too many arguments to function 'sine'; expected 0, have 1
   55 |     DGAM = -3332e-9 * sine( 0.59734 - 5.37261*T)
      |                       ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:56:23: error: too many arguments to function 'sine'; expected 0, have 1
   56 |             -539e-9 * sine( 0.35498 - 5.37899*T)
      |                       ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:57:23: error: too many arguments to function 'sine'; expected 0, have 1
   57 |              -64e-9 * sine( 0.39943 - 5.37511*T);
      |                       ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:61:17: error: too many arguments to function 'frac'; expected 0, have 1
   61 |     L0  = TwoPi*frac( 0.60643382 + 1336.85522467*T - 0.00000313*T2 ) + DL0/ARC;
      |                 ^~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:17: note: declared here
   18 | double  sine(), frac();
      |                 ^~~~
src/Moon.c:62:17: error: too many arguments to function 'frac'; expected 0, have 1
   62 |     L   = TwoPi*frac( 0.37489701 + 1325.55240982*T + 0.00002565*T2 ) + DL/ARC;
      |                 ^~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:17: note: declared here
   18 | double  sine(), frac();
      |                 ^~~~
src/Moon.c:63:17: error: too many arguments to function 'frac'; expected 0, have 1
   63 |     LS  = TwoPi*frac( 0.99312619 +   99.99735956*T - 0.00000044*T2 ) + DLS/ARC;
      |                 ^~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:17: note: declared here
   18 | double  sine(), frac();
      |                 ^~~~
src/Moon.c:64:17: error: too many arguments to function 'frac'; expected 0, have 1
   64 |     F   = TwoPi*frac( 0.25909118 + 1342.22782980*T - 0.00000892*T2 ) + DF/ARC;
      |                 ^~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:17: note: declared here
   18 | double  sine(), frac();
      |                 ^~~~
src/Moon.c:65:17: error: too many arguments to function 'frac'; expected 0, have 1
   65 |     D   = TwoPi*frac( 0.82736186 + 1236.85308708*T - 0.00000397*T2 ) + DD/ARC;
      |                 ^~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:17: note: declared here
   18 | double  sine(), frac();
      |                 ^~~~
src/Moon.c:220:19: error: too many arguments to function 'sine'; expected 0, have 1
  220 |     DLAM += +0.82*sine( 0.7736   -62.5512*T ) + 0.31*sine( 0.0466  -125.1025*T )
      |                   ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:220:54: error: too many arguments to function 'sine'; expected 0, have 1
  220 |     DLAM += +0.82*sine( 0.7736   -62.5512*T ) + 0.31*sine( 0.0466  -125.1025*T )
      |                                                      ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:221:19: error: too many arguments to function 'sine'; expected 0, have 1
  221 |             +0.35*sine( 0.5785   -25.1042*T ) + 0.66*sine( 0.4591 +1335.8075*T )
      |                   ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:221:54: error: too many arguments to function 'sine'; expected 0, have 1
  221 |             +0.35*sine( 0.5785   -25.1042*T ) + 0.66*sine( 0.4591 +1335.8075*T )
      |                                                      ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:222:19: error: too many arguments to function 'sine'; expected 0, have 1
  222 |             +0.64*sine( 0.3130   -91.5680*T ) + 1.14*sine( 0.1480 +1331.2898*T )
      |                   ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:222:54: error: too many arguments to function 'sine'; expected 0, have 1
  222 |             +0.64*sine( 0.3130   -91.5680*T ) + 1.14*sine( 0.1480 +1331.2898*T )
      |                                                      ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:223:19: error: too many arguments to function 'sine'; expected 0, have 1
  223 |             +0.21*sine( 0.5918 +1056.5859*T ) + 0.44*sine( 0.5784 +1322.8595*T )
      |                   ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:223:54: error: too many arguments to function 'sine'; expected 0, have 1
  223 |             +0.21*sine( 0.5918 +1056.5859*T ) + 0.44*sine( 0.5784 +1322.8595*T )
      |                                                      ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:224:19: error: too many arguments to function 'sine'; expected 0, have 1
  224 |             +0.24*sine( 0.2275    -5.7374*T ) + 0.28*sine( 0.2965    +2.6929*T )
      |                   ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:224:54: error: too many arguments to function 'sine'; expected 0, have 1
  224 |             +0.24*sine( 0.2275    -5.7374*T ) + 0.28*sine( 0.2965    +2.6929*T )
      |                                                      ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:225:19: error: too many arguments to function 'sine'; expected 0, have 1
  225 |             +0.33*sine( 0.3132    +6.3368*T );
      |                   ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:9: note: declared here
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c:235:21: error: too many arguments to function 'frac'; expected 0, have 1
  235 |     *LAMBDA = 360.0*frac( (L0+DLAM/ARC)/TwoPi );
      |                     ^~~~  ~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:17: note: declared here
   18 | double  sine(), frac();
      |                 ^~~~
src/Moon.c:247:22: error: too many arguments to function 'frac'; expected 0, have 1
  247 |     *AGE = 29.530589*frac((D+(DLAM-DLAMS)/ARC)/TwoPi);
      |                      ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
src/Moon.c:18:17: note: declared here
   18 | double  sine(), frac();
      |                 ^~~~
src/Moon.c: At top level:
src/Moon.c:265:8: error: conflicting types for 'sine'; have 'double(double)'
  265 | double sine(double phi){
      |        ^~~~
src/Moon.c:18:9: note: previous declaration of 'sine' with type 'double(void)'
   18 | double  sine(), frac();
      |         ^~~~
src/Moon.c: In function 'sine':
src/Moon.c:267:23: error: too many arguments to function 'frac'; expected 0, have 1
  267 |     return( sin(TwoPi*frac(phi)) );
      |                       ^~~~ ~~~
src/Moon.c:18:17: note: declared here
   18 | double  sine(), frac();
      |                 ^~~~
src/Moon.c: At top level:
src/Moon.c:272:8: error: conflicting types for 'frac'; have 'double(double)'
  272 | double frac(double x){
      |        ^~~~
src/Moon.c:18:17: note: previous declaration of 'frac' with type 'double(void)'
   18 | double  sine(), frac();
      |                 ^~~~
src/Moon.c: In function 'NewMoon':
src/Moon.c:340:41: error: conflicting types for 'Moon'; have 'double(void)'
  340 |     double      f1, f2, x0, x1, x2, x3, Moon();
      |                                         ^~~~
src/Moon.c:26:8: note: previous definition of 'Moon' with type 'double(double,  double *, double *, double *, double *)'
   26 | double Moon(double T, double *LAMBDA, double *BETA, double *R, double *AGE){
      |        ^~~~
src/Moon.c:352:10: error: too many arguments to function 'Moon'; expected 0, have 5
  352 |     f1 = Moon(x1, &L, &B, &Rad, &AGE);
      |          ^~~~ ~~
src/Moon.c:340:41: note: declared here
  340 |     double      f1, f2, x0, x1, x2, x3, Moon();
      |                                         ^~~~
src/Moon.c:353:10: error: too many arguments to function 'Moon'; expected 0, have 5
  353 |     f2 = Moon(x2, &L, &B, &Rad, &AGE);
      |          ^~~~ ~~
src/Moon.c:340:41: note: declared here
  340 |     double      f1, f2, x0, x1, x2, x3, Moon();
      |                                         ^~~~
src/Moon.c:360:18: error: too many arguments to function 'Moon'; expected 0, have 5
  360 |             f2 = Moon(x2, &L, &B, &Rad, &AGE);
      |                  ^~~~ ~~
src/Moon.c:340:41: note: declared here
  340 |     double      f1, f2, x0, x1, x2, x3, Moon();
      |                                         ^~~~
src/Moon.c:366:18: error: too many arguments to function 'Moon'; expected 0, have 5
  366 |             f1 = Moon(x1, &L, &B, &Rad, &AGE);
      |                  ^~~~ ~~
src/Moon.c:340:41: note: declared here
  340 |     double      f1, f2, x0, x1, x2, x3, Moon();
      |                                         ^~~~
src/Moon.c: In function 'MiniMoon':
src/Moon.c:403:10: error: too many arguments to function 'frac'; expected 0, have 1
  403 |     L0 = frac(0.606433+1336.855225*T); /* mean longitude Moon (in rev) */
      |          ^~~~ ~~~~~~~~~~~~~~~~~~~~~~
src/Moon.c:391:17: note: declared here
  391 |     double      frac(), cosEPS, sinEPS, P2, ARC;
      |                 ^~~~
src/Moon.c:404:13: error: too many arguments to function 'frac'; expected 0, have 1
  404 |     L  = P2*frac(0.374897+1325.552410*T); /* mean anomaly of the Moon     */
      |             ^~~~ ~~~~~~~~~~~~~~~~~~~~~~
src/Moon.c:391:17: note: declared here
  391 |     double      frac(), cosEPS, sinEPS, P2, ARC;
      |                 ^~~~
src/Moon.c:405:13: error: too many arguments to function 'frac'; expected 0, have 1
  405 |     LS = P2*frac(0.993133+  99.997361*T); /* mean anomaly of the Sun      */
      |             ^~~~ ~~~~~~~~~~~~~~~~~~~~~~
src/Moon.c:391:17: note: declared here
  391 |     double      frac(), cosEPS, sinEPS, P2, ARC;
      |                 ^~~~
src/Moon.c:406:13: error: too many arguments to function 'frac'; expected 0, have 1
  406 |     D  = P2*frac(0.827361+1236.853086*T); /* diff. longitude Moon-Sun     */
      |             ^~~~ ~~~~~~~~~~~~~~~~~~~~~~
src/Moon.c:391:17: note: declared here
  391 |     double      frac(), cosEPS, sinEPS, P2, ARC;
      |                 ^~~~
src/Moon.c:407:13: error: too many arguments to function 'frac'; expected 0, have 1
  407 |     F  = P2*frac(0.259086+1342.227825*T); /* mean argument of latitude    */
      |             ^~~~ ~~~~~~~~~~~~~~~~~~~~~~
src/Moon.c:391:17: note: declared here
  391 |     double      frac(), cosEPS, sinEPS, P2, ARC;
      |                 ^~~~
src/Moon.c:416:21: error: too many arguments to function 'frac'; expected 0, have 1
  416 |     L_MOON  =  P2 * frac ( L0 + DL/1296e3 ); /* in rad */
      |                     ^~~~   ~~~~~~~~~~~~~~
src/Moon.c:391:17: note: declared here
  391 |     double      frac(), cosEPS, sinEPS, P2, ARC;
      |                 ^~~~
make: *** [Makefile:458: src/Moon.o] Error 1
gcc -DPACKAGE_NAME=\"wmmoonclock\" -DPACKAGE_TARNAME=\"wmmoonclock\" -DPACKAGE_VERSION=\"1.30\" -DPACKAGE_STRING=\"wmmoonclock\ 1.30\" -DPACKAGE_BUGREPORT=\"wmaker-dev@googlegroups.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"wmmoonclock\" -DVERSION=\"1.30\" -I.       -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 -c -o src/CalcEphem.o src/CalcEphem.c
src/CalcEphem.c: In function 'CalcEphem':
src/CalcEphem.c:5:6: warning: old-style function definition [-Wold-style-definition]
    5 | void CalcEphem(date, UT, c)
      |      ^~~~~~~~~
src/CalcEphem.c:47:11: error: too many arguments to function 'jd'; expected 0, have 4
   47 |     TU = (jd(year, month, day, 0.0) - 2451545.0)/36525.0;
      |           ^~ ~~~~
src/CalcEphem.c:19:12: note: declared here
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |            ^~
src/CalcEphem.c:52:10: error: too many arguments to function 'hour24'; expected 0, have 1
   52 |     T0 = hour24(T0);
      |          ^~~~~~ ~~
src/CalcEphem.c:19:18: note: declared here
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |                  ^~~~~~
src/CalcEphem.c:53:15: error: too many arguments to function 'hour24'; expected 0, have 1
   53 |     c->gmst = hour24(T0 + UT*1.002737909);
      |               ^~~~~~ ~~~~~~~~~~~~~~~~~~~
src/CalcEphem.c:19:18: note: declared here
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |                  ^~~~~~
src/CalcEphem.c:55:17: error: too many arguments to function 'frac'; expected 0, have 1
   55 |     lmst = 24.0*frac( (c->gmst - c->Glon/15.0) / 24.0 );
      |                 ^~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/CalcEphem.c:20:24: note: declared here
   20 |     double Ta, Tb, Tc, frac();
      |                        ^~~~
src/CalcEphem.c:76:11: error: too many arguments to function 'jd'; expected 0, have 4
   76 |     TU = (jd(year, month, day, TDT) - 2415020.0)/36525.0;
      |           ^~ ~~~~
src/CalcEphem.c:19:12: note: declared here
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |            ^~
src/CalcEphem.c:89:12: error: too many arguments to function 'jd'; expected 0, have 4
   89 |     TU  = (jd(year, month, day, TDT) - jd(2000, 1, 1, 12.0))/36525.0;
      |            ^~ ~~~~
src/CalcEphem.c:19:12: note: declared here
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |            ^~
src/CalcEphem.c:89:40: error: too many arguments to function 'jd'; expected 0, have 4
   89 |     TU  = (jd(year, month, day, TDT) - jd(2000, 1, 1, 12.0))/36525.0;
      |                                        ^~ ~~~~
src/CalcEphem.c:19:12: note: declared here
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |            ^~
src/CalcEphem.c:104:13: error: too many arguments to function 'jd'; expected 0, have 4
  104 |     days  = jd(year, month, day, TDT) - jd(year, month, day, TDT);
      |             ^~ ~~~~
src/CalcEphem.c:19:12: note: declared here
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |            ^~
src/CalcEphem.c:104:41: error: too many arguments to function 'jd'; expected 0, have 4
  104 |     days  = jd(year, month, day, TDT) - jd(year, month, day, TDT);
      |                                         ^~ ~~~~
src/CalcEphem.c:19:12: note: declared here
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |            ^~
src/CalcEphem.c:105:9: error: too many arguments to function 'angle2pi'; expected 0, have 1
  105 |     M = angle2pi(2.0*M_PI/365.242191*days + varep - varpi);
      |         ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/CalcEphem.c:19:28: note: declared here
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |                            ^~~~~~~~
src/CalcEphem.c:106:9: error: too many arguments to function 'kepler'; expected 0, have 2
  106 |     E = kepler(M, eccen);
      |         ^~~~~~ ~
src/CalcEphem.c:19:52: note: declared here
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |                                                    ^~~~~~
src/CalcEphem.c:108:15: error: too many arguments to function 'angle2pi'; expected 0, have 1
  108 |     lambnew = angle2pi(nu + varpi);
      |               ^~~~~~~~ ~~~~~~~~~~
src/CalcEphem.c:19:28: note: declared here
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |                            ^~~~~~~~
src/CalcEphem.c:126:10: error: too many arguments to function 'angle360'; expected 0, have 1
  126 |     RA = angle360(atan2(sin(lambnew)*cos(epsilon), cos(lambnew))*180.0/M_PI);
      |          ^~~~~~~~
src/CalcEphem.c:19:40: note: declared here
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |                                        ^~~~~~~~
src/CalcEphem.c:142:11: error: too many arguments to function 'jd'; expected 0, have 4
  142 |     TU = (jd(year, month, day, TDT) - 2451545.0)/36525.0;
      |           ^~ ~~~~
src/CalcEphem.c:19:12: note: declared here
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |            ^~
src/CalcEphem.c:143:20: error: too many arguments to function 'Moon'; expected 0, have 5
  143 |     c->MoonPhase = Moon(TU, &LambdaMoon, &BetaMoon, &R, &AGE);
      |                    ^~~~ ~~
src/CalcEphem.c:19:62: note: declared here
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |                                                              ^~~~
src/CalcEphem.c:148:16: error: too many arguments to function 'angle360'; expected 0, have 1
  148 |     RA_Moon  = angle360(atan2(sin(LambdaMoon)*cos(epsilon)-tan(BetaMoon)*sin(epsilon), cos(LambdaMoon))*DegPerRad);
      |                ^~~~~~~~
src/CalcEphem.c:19:40: note: declared here
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |                                        ^~~~~~~~
src/CalcEphem.c:176:24: error: too many arguments to function 'NewMoon'; expected 0, have 3
  176 |     c->MoonAge = (TU - NewMoon(Ta, Tb, Tc))*36525.0;
      |                        ^~~~~~~ ~~
src/CalcEphem.c:19:70: note: declared here
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |                                                                      ^~~~~~~
src/CalcEphem.c: In function 'kepler':
src/CalcEphem.c:19:52: warning: old-style function definition [-Wold-style-definition]
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |                                                    ^~~~~~
src/CalcEphem.c:195:1: error: number of arguments doesn't match prototype
  195 | {
      | ^
src/CalcEphem.c:19:52: error: prototype declaration
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |                                                    ^~~~~~
src/CalcEphem.c: In function 'DayofYear':
src/CalcEphem.c:214:5: warning: old-style function definition [-Wold-style-definition]
  214 | int DayofYear(year, month, day)
      |     ^~~~~~~~~
src/CalcEphem.c:218:22: error: too many arguments to function 'jd'; expected 0, have 4
  218 |         return((int)(jd(year, month, day, 0.0) - jd(year, 1, 0, 0.0)));
      |                      ^~ ~~~~
src/CalcEphem.c:217:16: note: declared here
  217 |         double jd();
      |                ^~
src/CalcEphem.c:218:50: error: too many arguments to function 'jd'; expected 0, have 4
  218 |         return((int)(jd(year, month, day, 0.0) - jd(year, 1, 0, 0.0)));
      |                                                  ^~ ~~~~
src/CalcEphem.c:217:16: note: declared here
  217 |         double jd();
      |                ^~
src/CalcEphem.c: In function 'DayofWeek':
src/CalcEphem.c:224:5: warning: old-style function definition [-Wold-style-definition]
  224 | int DayofWeek(year, month, day, dowstr)
      |     ^~~~~~~~~
src/CalcEphem.c:231:14: error: too many arguments to function 'jd'; expected 0, have 4
  231 |         JD = jd(year, month, day, 0.0);
      |              ^~ ~~~~
src/CalcEphem.c:228:30: note: declared here
  228 |         double JD, A, Afrac, jd();
      |                              ^~
src/CalcEphem.c: In function 'jd':
src/CalcEphem.c:228:30: warning: old-style function definition [-Wold-style-definition]
src/CalcEphem.c:273:1: error: number of arguments doesn't match prototype
  273 | {
      | ^
src/CalcEphem.c:228:30: error: prototype declaration
  228 |         double JD, A, Afrac, jd();
      |                              ^~
src/CalcEphem.c: In function 'hour24':
src/CalcEphem.c:19:18: warning: old-style function definition [-Wold-style-definition]
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |                  ^~~~~~
src/CalcEphem.c:309:1: error: number of arguments doesn't match prototype
  309 | {
      | ^
src/CalcEphem.c:19:18: error: prototype declaration
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |                  ^~~~~~
src/CalcEphem.c: In function 'angle2pi':
src/CalcEphem.c:19:28: warning: old-style function definition [-Wold-style-definition]
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |                            ^~~~~~~~
src/CalcEphem.c:327:1: error: number of arguments doesn't match prototype
  327 | {
      | ^
src/CalcEphem.c:19:28: error: prototype declaration
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |                            ^~~~~~~~
src/CalcEphem.c: In function 'angle360':
src/CalcEphem.c:19:40: warning: old-style function definition [-Wold-style-definition]
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |                                        ^~~~~~~~
src/CalcEphem.c:347:1: error: number of arguments doesn't match prototype
  347 | {
      | ^
src/CalcEphem.c:19:40: error: prototype declaration
   19 |     double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
      |                                        ^~~~~~~~
src/CalcEphem.c: In function 'Radec_to_Cart':
src/CalcEphem.c:364:6: warning: old-style function definition [-Wold-style-definition]
  364 | void Radec_to_Cart(ra, dec, r)
      |      ^~~~~~~~~~~~~
src/CalcEphem.c: In function 'LeapYear':
src/CalcEphem.c:389:5: warning: old-style function definition [-Wold-style-definition]
  389 | int LeapYear(year)
      |     ^~~~~~~~
make: *** [Makefile:458: src/CalcEphem.o] Error 1
gcc -DPACKAGE_NAME=\"wmmoonclock\" -DPACKAGE_TARNAME=\"wmmoonclock\" -DPACKAGE_VERSION=\"1.30\" -DPACKAGE_STRING=\"wmmoonclock\ 1.30\" -DPACKAGE_BUGREPORT=\"wmaker-dev@googlegroups.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"wmmoonclock\" -DVERSION=\"1.30\" -I.       -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 -c -o src/xutils.o src/xutils.c
gcc -DPACKAGE_NAME=\"wmmoonclock\" -DPACKAGE_TARNAME=\"wmmoonclock\" -DPACKAGE_VERSION=\"1.30\" -DPACKAGE_STRING=\"wmmoonclock\ 1.30\" -DPACKAGE_BUGREPORT=\"wmaker-dev@googlegroups.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"wmmoonclock\" -DVERSION=\"1.30\" -I.       -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 -c -o src/wmMoonClock.o src/wmMoonClock.c
error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.4klVcI (%build)

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