Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.

  Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.

  Snippets are delimited with '================'.

  Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.

  Explanation of the issue, and recommended solution, should take a handful of sentences.

  Snippets:

  [RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.WWpyzw (%build)
    Bad exit status from /var/tmp/rpm-tmp.WWpyzw (%build)
Child return code was: 1
]: [The build failed in %build section.]
=============
[   98 | explodeGIF (raw, nraw, wp, hp, pixap, ra, ga, ba, errmsg)
      | ^~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:111:13: error: too many arguments to function ‘LoadGIF’; expected 0, have 1
  111 |         if (LoadGIF (&pi) != 1)
      |             ^~~~~~~  ~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:95:12: note: declared here
   95 | static int LoadGIF();
      |            ^~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c: In function ‘LoadGIF’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:124:12: warning: old-style function definition [-Wold-style-definition]
  124 | static int LoadGIF(pinfo)
      |            ^~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:144:13: error: too many arguments to function ‘gifError’; expected 0, have 2
  144 |     return( gifError(pinfo, "not enough memory to read gif file") );
      |             ^~~~~~~~ ~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:84:14: note: declared here
   84 | static int   gifError();
      |              ^~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:150:19: error: too many arguments to function ‘gifError’; expected 0, have 2
  150 |   else    return( gifError(pinfo, "not a GIF file"));
      |                   ^~~~~~~~ ~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:84:14: note: declared here
   84 | static int   gifError();
      |              ^~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:172:24: error: too many arguments to function ‘gifError’; expected 0, have 2
  172 |     if (!gif89) return(gifError(pinfo,"corrupt GIF file (screen descriptor)"));
      |                        ^~~~~~~~ ~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:84:14: note: declared here
   84 | static int   gifError();
      |              ^~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:244:15: warning: variable ‘ch’ set but not used [-Wunused-but-set-variable]
  244 |         int   ch, j, sbsize, cmtlen;
      |               ^~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:269:68: warning: variable ‘bg’ set but not used [-Wunused-but-set-variable]
  269 |         int tgLeft, tgTop, tgWidth, tgHeight, cWidth, cHeight, fg, bg;
      |                                                                    ^~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:269:64: warning: variable ‘fg’ set but not used [-Wunused-but-set-variable]
  269 |         int tgLeft, tgTop, tgWidth, tgHeight, cWidth, cHeight, fg, bg;
      |                                                                ^~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:269:55: warning: variable ‘cHeight’ set but not used [-Wunused-but-set-variable]
  269 |         int tgLeft, tgTop, tgWidth, tgHeight, cWidth, cHeight, fg, bg;
      |                                                       ^~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:269:47: warning: variable ‘cWidth’ set but not used [-Wunused-but-set-variable]
  269 |         int tgLeft, tgTop, tgWidth, tgHeight, cWidth, cHeight, fg, bg;
      |                                               ^~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:268:22: warning: variable ‘ch’ set but not used [-Wunused-but-set-variable]
  268 |         int j,sbsize,ch;
      |                      ^~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:355:16: error: too many arguments to function ‘readImage’; expected 0, have 1
  355 |       else if (readImage(pinfo)) gotimage = 1;
      |                ^~~~~~~~~ ~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:81:14: note: declared here
   81 | static int   readImage();
      |              ^~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:371:31: error: too many arguments to function ‘gifError’; expected 0, have 2
  371 |         if (!gotimage) return gifError(pinfo, str);
      |                               ^~~~~~~~ ~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:84:14: note: declared here
   84 | static int   gifError();
      |              ^~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:372:22: error: too many arguments to function ‘gifError’; expected 0, have 2
  372 |         else return( gifError(pinfo, str));
      |                      ^~~~~~~~ ~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:84:14: note: declared here
   84 | static int   gifError();
      |              ^~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:382:14: error: too many arguments to function ‘gifError’; expected 0, have 2
  382 |      return( gifError(pinfo, "no image data found in GIF file") );
      |              ^~~~~~~~ ~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:84:14: note: declared here
   84 | static int   gifError();
      |              ^~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c: In function ‘readImage’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:389:12: warning: old-style function definition [-Wold-style-definition]
  389 | static int readImage(pinfo)
      |            ^~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c: In function ‘lstsqr’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:422:13: error: too many arguments to function ‘gifError’; expected 0, have 2
  422 |     return (gifError (pinfo, "No colormap in this GIF file."));
      |             ^~~~~~~~  ~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:84:14: note: declared here
   84 | static int   gifError();
      |              ^~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:63:39: error: passing argument 5 of ‘amoeba’ from incompatible pointer type [-Wincompatible-pointer-types]
   63 |         ret = amoeba (p, y, np, ftol, chisqr_1based, &iter);
      |                                       ^~~~~~~~~~~~~
      |                                       |
      |                                       double (*)(double *)
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:15:14: note: expected ‘double (*)(void)’ but argument is of type ‘double (*)(double *)’
   15 |     double (*funk)(), int *nfunk);
      |     ~~~~~~~~~^~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:20:1: note: ‘chisqr_1based’ declared here
   20 | chisqr_1based (double p[])
      | ^~~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:469:22: error: too many arguments to function ‘gifError’; expected 0, have 2
  469 |   if (!pic8) return( gifError(pinfo, "couldn't malloc 'pic8'") );
      |                      ^~~~~~~~ ~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:84:14: note: declared here
   84 | static int   gifError();
      |              ^~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c: In function ‘amoeba’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:111:1: warning: old-style function definition [-Wold-style-definition]
  111 | amoeba(p,y,ndim,ftol,funk,nfunk)
      | ^~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:491:15: error: too many arguments to function ‘DoInterlace’; expected 0, have 1
  491 |          else DoInterlace(FinChar);
      |               ^~~~~~~~~~~ ~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:83:14: note: declared here
   83 | static void  DoInterlace();
      |              ^~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:116:36: error: conflicting types for ‘amotry’; have ‘double(void)’
  116 |         double ytry,ysave,sum,rtol,amotry(),*psum,*vector();
      |                                    ^~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:94:15: note: previous declaration of ‘amotry’ with type ‘double(double **, double *, double *, int,  double (*)(void), int,  int *, double)’
   94 | static double amotry(double **p, double *y, double *psum, int ndim,
      |               ^~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:116:52: error: conflicting types for ‘vector’; have ‘double *(void)’
  116 |         double ytry,ysave,sum,rtol,amotry(),*psum,*vector();
      |                                                    ^~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:97:16: note: previous declaration of ‘vector’ with type ‘double *(int,  int)’
   97 | static double *vector(int nl, int nh);
      |                ^~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:117:14: error: conflicting types for ‘nrerror’; have ‘void(void)’
  117 |         void nrerror(),free_vector();
      |              ^~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:96:13: note: previous declaration of ‘nrerror’ with type ‘void(char *)’
   96 | static void nrerror( char error_text[]);
      |             ^~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:117:24: error: conflicting types for ‘free_vector’; have ‘void(void)’
  117 |         void nrerror(),free_vector();
      |                        ^~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:98:13: note: previous declaration of ‘free_vector’ with type ‘void(double *, int,  int)’
   98 | static void free_vector(double *v, int nl, int nh);
      |             ^~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:120:14: error: too many arguments to function ‘vector’; expected 0, have 2
  120 |         psum=vector(1,ndim);
      |              ^~~~~~ ~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:116:52: note: declared here
  116 |         double ytry,ysave,sum,rtol,amotry(),*psum,*vector();
      |                                                    ^~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:540:53: error: too many arguments to function ‘DoInterlace’; expected 0, have 1
  540 |                 else  for (i=OutCount-1; i>=0; i--) DoInterlace(OutCode[i]);
      |                                                     ^~~~~~~~~~~ ~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:83:14: note: declared here
   83 | static void  DoInterlace();
      |              ^~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:107:42: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
  107 | #define GET_PSUM for (j=1;j<=ndim;j++) { for (i=1,sum=0.0;i<=mpts;i++)\
      |                                          ^~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:122:9: note: in expansion of macro ‘GET_PSUM’
  122 |         GET_PSUM
      |         ^~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:108:65: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
  108 |                                                 sum += p[i][j]; psum[j]=sum;}
      |                                                                 ^~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:122:9: note: in expansion of macro ‘GET_PSUM’
  122 |         GET_PSUM
      |         ^~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:140:21: error: too many arguments to function ‘free_vector’; expected 0, have 3
  140 |                     free_vector(psum,1,ndim);
      |                     ^~~~~~~~~~~ ~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:117:24: note: declared here
  117 |         void nrerror(),free_vector();
      |                        ^~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c: In function ‘DoInterlace’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:143:22: error: too many arguments to function ‘amotry’; expected 0, have 8
  143 |                 ytry=amotry(p,y,psum,ndim,funk,ihi,nfunk,-ALPHA);
      |                      ^~~~~~ ~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:116:36: note: declared here
  116 |         double ytry,ysave,sum,rtol,amotry(),*psum,*vector();
      |                                    ^~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:607:13: warning: old-style function definition [-Wold-style-definition]
  607 | static void DoInterlace(Index)
      |             ^~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:145:30: error: too many arguments to function ‘amotry’; expected 0, have 8
  145 |                         ytry=amotry(p,y,psum,ndim,funk,ihi,nfunk,GAMMA);
      |                              ^~~~~~ ~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:116:36: note: declared here
  116 |         double ytry,ysave,sum,rtol,amotry(),*psum,*vector();
      |                                    ^~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:148:30: error: too many arguments to function ‘amotry’; expected 0, have 8
  148 |                         ytry=amotry(p,y,psum,ndim,funk,ihi,nfunk,BETA);
      |                              ^~~~~~ ~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:116:36: note: declared here
  116 |         double ytry,ysave,sum,rtol,amotry(),*psum,*vector();
      |                                    ^~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c: In function ‘gifError’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:156:55: error: too many arguments to function ‘funk’; expected 0, have 1
  156 |                                                 y[i]=(*funk)(psum);
      |                                                      ~^~~~~~ ~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/explodegif.c:657:12: warning: old-style function definition [-Wold-style-definition]
  657 | static int gifError(pinfo, st)
      |            ^~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:107:42: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
  107 | #define GET_PSUM for (j=1;j<=ndim;j++) { for (i=1,sum=0.0;i<=mpts;i++)\
      |                                          ^~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:160:33: note: in expansion of macro ‘GET_PSUM’
  160 |                                 GET_PSUM
      |                                 ^~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:108:65: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
  108 |                                                 sum += p[i][j]; psum[j]=sum;}
      |                                                                 ^~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:160:33: note: in expansion of macro ‘GET_PSUM’
  160 |                                 GET_PSUM
      |                                 ^~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:165:9: error: too many arguments to function ‘free_vector’; expected 0, have 3
  165 |         free_vector(psum,1,ndim);
      |         ^~~~~~~~~~~ ~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:117:24: note: declared here
  117 |         void nrerror(),free_vector();
      |                        ^~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c: In function ‘amotry’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:171:1: warning: old-style function definition [-Wold-style-definition]
  171 | amotry(p,y,psum,ndim,funk,ihi,nfunk,fac)
      | ^~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:179:14: error: too many arguments to function ‘vector’; expected 0, have 2
  179 |         ptry=vector(1,ndim);
      |              ^~~~~~ ~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:176:38: note: declared here
  176 |         double fac1,fac2,ytry,*ptry,*vector();
      |                                      ^~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:183:15: error: too many arguments to function ‘funk’; expected 0, have 1
  183 |         ytry=(*funk)(ptry);
      |              ~^~~~~~ ~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:192:9: error: too many arguments to function ‘free_vector’; expected 0, have 3
  192 |         free_vector(ptry,1,ndim);
      |         ^~~~~~~~~~~ ~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:177:24: note: declared here
  177 |         void nrerror(),free_vector();
      |                        ^~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c: In function ‘nrerror’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:205:1: warning: old-style function definition [-Wold-style-definition]
  205 | nrerror(error_text)
      | ^~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c: In function ‘vector’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:217:1: warning: old-style function definition [-Wold-style-definition]
  217 | vector(nl,nh)
      | ^~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c: In function ‘free_vector’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:229:1: warning: old-style function definition [-Wold-style-definition]
  229 | free_vector(v,nl,nh)
      | ^~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c: At top level:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:229:1: warning: ‘free_vector’ defined but not used [-Wunused-function]
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:217:1: warning: ‘vector’ defined but not used [-Wunused-function]
  217 | vector(nl,nh)
      | ^~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/lstsqr.c:171:1: warning: ‘amotry’ defined but not used [-Wunused-function]
  171 | amotry(p,y,psum,ndim,funk,ihi,nfunk,fac)
      | ^~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/wcs.c: In function ‘xy2RADec’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/wcs.c:32:1: warning: old-style function definition [-Wold-style-definition]
   32 | xy2RADec (fip, x, y, rap, decp)
      | ^~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/wcs.c: In function ‘RADec2xy’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/wcs.c:60:1: warning: old-style function definition [-Wold-style-definition]
   60 | RADec2xy (fip, ra, dec, xp, yp)
      | ^~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/wcs.c: In function ‘dsswcs’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/wcs.c:89:1: warning: old-style function definition [-Wold-style-definition]
   89 | dsswcs (fip)
      | ^~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/wcs.c: In function ‘dssxy2RADec’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/wcs.c:147:1: warning: old-style function definition [-Wold-style-definition]
  147 | dssxy2RADec (fip, X, Y, rap, decp)
      | ^~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/wcs.c: In function ‘setWCScache’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/wcs.c:233:1: warning: old-style function definition [-Wold-style-definition]
  233 | setWCScache (fip)
      | ^~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/wcs.c: In function ‘worldpos’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/wcs.c:342:12: warning: old-style function definition [-Wold-style-definition]
  342 | static int worldpos(xpix, ypix, xref, yref, xrefpix, yrefpix, xinc, yinc, rot,
      |            ^~~~~~~~
gmake[2]: *** [libip/CMakeFiles/ip.dir/build.make:138: libip/CMakeFiles/ip.dir/lstsqr.c.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: *** [libip/CMakeFiles/ip.dir/build.make:82: libip/CMakeFiles/ip.dir/explodegif.c.o] Error 1
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/wcs.c: In function ‘xypix’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/wcs.c:551:12: warning: old-style function definition [-Wold-style-definition]
  551 | static int xypix(xpos, ypos, xref, yref, xrefpix, yrefpix, xinc, yinc, rot,
      |            ^~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘writeFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:49:1: warning: old-style function definition [-Wold-style-definition]
   49 | writeFITS (fd, fip, errmsg, restore)
      | ^~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘readFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:147:1: warning: old-style function definition [-Wold-style-definition]
  147 | readFITS (fd, fip, errmsg)
      | ^~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘readIncFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:289:1: warning: old-style function definition [-Wold-style-definition]
  289 | readIncFITS (fd, fip, errmsg)
      | ^~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘readFITSHeader’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:345:1: warning: old-style function definition [-Wold-style-definition]
  345 | readFITSHeader (fd, fip, errmsg)
      | ^~~~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘writeSimpleFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:425:1: warning: old-style function definition [-Wold-style-definition]
  425 | writeSimpleFITS (fd, pix, w, h, restore)
      | ^~~~~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘getNAXIS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:451:1: warning: old-style function definition [-Wold-style-definition]
  451 | getNAXIS (fip, n1p, n2p, errmsg)
      | ^~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘writeFITSHeader’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:560:1: warning: old-style function definition [-Wold-style-definition]
  560 | writeFITSHeader (fip, fd, errmsg)
      | ^~~~~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘initFImage’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:595:1: warning: old-style function definition [-Wold-style-definition]
  595 | initFImage (fip)
      | ^~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘resetFImage’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:607:1: warning: old-style function definition [-Wold-style-definition]
  607 | resetFImage (fip)
      | ^~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘setSimpleFITSHeader’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:622:1: warning: old-style function definition [-Wold-style-definition]
  622 | setSimpleFITSHeader (fip)
      | ^~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘setLogicalFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:636:1: warning: old-style function definition [-Wold-style-definition]
  636 | setLogicalFITS (fip, name, v, comment)
      | ^~~~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘setIntFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:655:1: warning: old-style function definition [-Wold-style-definition]
  655 | setIntFITS (fip, name, v, comment)
      | ^~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘setRealFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:674:1: warning: old-style function definition [-Wold-style-definition]
  674 | setRealFITS (fip, name, v, sigdig, comment)
      | ^~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘setStringFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:697:1: warning: old-style function definition [-Wold-style-definition]
  697 | setStringFITS (fip, name, string, comment)
      | ^~~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘setCommentFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:719:1: warning: old-style function definition [-Wold-style-definition]
  719 | setCommentFITS (fip, name, comment)
      | ^~~~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘getLogicalFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:744:1: warning: old-style function definition [-Wold-style-definition]
  744 | getLogicalFITS (fip, name, vp)
      | ^~~~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘getIntFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:765:1: warning: old-style function definition [-Wold-style-definition]
  765 | getIntFITS (fip, name, vp)
      | ^~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘getRealFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:782:1: warning: old-style function definition [-Wold-style-definition]
  782 | getRealFITS (fip, name, vp)
      | ^~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘getCommentFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:806:1: warning: old-style function definition [-Wold-style-definition]
  806 | getCommentFITS (fip, name, buf)
      | ^~~~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘getStringFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:826:1: warning: old-style function definition [-Wold-style-definition]
  826 | getStringFITS (fip, name, string)
      | ^~~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘findFImageVar’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:858:1: warning: old-style function definition [-Wold-style-definition]
  858 | findFImageVar (fip, name, rpp)
      | ^~~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘addFImageVar’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:879:1: warning: old-style function definition [-Wold-style-definition]
  879 | addFImageVar (fip, row)
      | ^~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘delFImageVar’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:909:1: warning: old-style function definition [-Wold-style-definition]
  909 | delFImageVar (fip, name)
      | ^~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘cpyFImageVar’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:950:1: warning: old-style function definition [-Wold-style-definition]
  950 | cpyFImageVar (fip1, fip2, name)
      | ^~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘fmtLogicalFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:969:1: warning: old-style function definition [-Wold-style-definition]
  969 | fmtLogicalFITS (line, name, value, comment)
      | ^~~~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘fmtIntFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:983:1: warning: old-style function definition [-Wold-style-definition]
  983 | fmtIntFITS (line, name, value, comment)
      | ^~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘fmtRealFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:1003:1: warning: old-style function definition [-Wold-style-definition]
 1003 | fmtRealFITS (line, name, value, sigdig, comment)
      | ^~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘fmtStringFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:1019:1: warning: old-style function definition [-Wold-style-definition]
 1019 | fmtStringFITS (line, name, value, comment)
      | ^~~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘fmtENDFITS’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:1047:1: warning: old-style function definition [-Wold-style-definition]
 1047 | fmtENDFITS (line)
      | ^~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘fmtInlineComment’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:1056:1: warning: old-style function definition [-Wold-style-definition]
 1056 | fmtInlineComment (line, comment)
      | ^~~~~~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘enFITSPixels’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:1072:1: warning: old-style function definition [-Wold-style-definition]
 1072 | enFITSPixels (fip)
      | ^~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c: In function ‘unFITSPixels’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fits.c:1101:1: warning: old-style function definition [-Wold-style-definition]
 1101 | unFITSPixels (fip)
      | ^~~~~~~~~~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fsmatch.c:528:16: warning: argument 1 of type ‘double[4]’ with mismatched bound [-Warray-parameter=]
  528 | chisqr (double p[4])
      |         ~~~~~~~^~~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/fsmatch.c:66:29: note: previously declared as ‘double[]’
   66 | static double chisqr(double p[]);
      |                      ~~~~~~~^~~
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/wcs.c: In function ‘setWCScache’:
/builddir/build/BUILD/xephem-4.2.0-build/XEphem-4.2.0/libip/wcs.c:259:9: warning: ‘strncpy’ output may be truncated copying 4 bytes from a string of length 75 [-Wstringop-truncation]
  259 |         strncpy (fip->type, typestr+4, sizeof(fip->type)-1);
      |         ^]: [Various C errors due old style coding.]


Answer: Issue: You are using old C standard while the default likely moved to new standard.
Resolution: You should be explicit in your CMakeLists.txt and set there:

set(CMAKE_C_STANDARD 17)