Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0.0 + master(48ff575a): build fails #50

Closed
kloczek opened this issue Feb 21, 2024 · 5 comments
Closed

2.0.0 + master(48ff575a): build fails #50

kloczek opened this issue Feb 21, 2024 · 5 comments

Comments

@kloczek
Copy link

kloczek commented Feb 21, 2024

With latest glibc snapshot and with -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 in $CFLAG some warnings are turned into errors.
Part of below errors are not related to that feature.

@kloczek
Copy link
Author

kloczek commented Feb 21, 2024

Build fails with
[tkloczko@pers-jacek libcupsfilters-2.0.0]$ make -k V=1
make  all-recursive
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libcupsfilters-2.0.0'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libcupsfilters-2.0.0'
/bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I.    -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c -o cupsfilters/libcupsfilters_la-bannertopdf.lo `test -f 'cupsfilters/bannertopdf.c' || echo './'`cupsfilters/bannertopdf.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c cupsfilters/bannertopdf.c  -fPIC -DPIC -o cupsfilters/.libs/libcupsfilters_la-bannertopdf.o
cupsfilters/bannertopdf.c: In function 'cfFilterBannerToPDF':
cupsfilters/bannertopdf.c:917:17: error: implicit declaration of function 'cupsCreateTempFd' [-Wimplicit-function-declaration]
  917 |   if ((tempfd = cupsCreateTempFd(NULL, NULL, tempfile, sizeof(tempfile))) < 0)
      |                 ^~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1635: cupsfilters/libcupsfilters_la-bannertopdf.lo] Error 1
/bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I.    -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c -o cupsfilters/libcupsfilters_la-catalog.lo `test -f 'cupsfilters/catalog.c' || echo './'`cupsfilters/catalog.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c cupsfilters/catalog.c  -fPIC -DPIC -o cupsfilters/.libs/libcupsfilters_la-catalog.o
cupsfilters/catalog.c: In function 'cfGetURI':
cupsfilters/catalog.c:56:3: warning: 'httpConnect' is deprecated: Use httpConnect2 instead. [-Wdeprecated-declarations]
   56 |   http = httpConnect(host, port, NULL, AF_UNSPEC, encryption, 1, 5000, NULL);
      |   ^~~~
In file included from /usr/include/cups/ipp.h:18,
                 from /usr/include/cups/cups.h:28,
                 from cupsfilters/catalog.c:22:
/usr/include/cups/http.h:476:26: note: declared here
  476 | extern http_t           *httpConnect(const char *host, int port) _CUPS_DEPRECATED_1_7_MSG("Use httpConnect2 instead.");
      |                          ^~~~~~~~~~~
cupsfilters/catalog.c:56:10: error: too many arguments to function 'httpConnect'
   56 |   http = httpConnect(host, port, NULL, AF_UNSPEC, encryption, 1, 5000, NULL);
      |          ^~~~~~~~~~~
/usr/include/cups/http.h:476:26: note: declared here
  476 | extern http_t           *httpConnect(const char *host, int port) _CUPS_DEPRECATED_1_7_MSG("Use httpConnect2 instead.");
      |                          ^~~~~~~~~~~
cupsfilters/catalog.c:61:13: error: implicit declaration of function 'cupsCreateTempFd' [-Wimplicit-function-declaration]
   61 |   if ((fd = cupsCreateTempFd(NULL, NULL, name, (int)namesize)) < 0)
      |             ^~~~~~~~~~~~~~~~
cupsfilters/catalog.c: In function 'cfCatalogFind':
cupsfilters/catalog.c:291:9: error: 'CUPS_DATADIR' undeclared (first use in this function); did you mean 'CUPS_STATEDIR'?
  291 |     c = CUPS_DATADIR;
      |         ^~~~~~~~~~~~
      |         CUPS_STATEDIR
cupsfilters/catalog.c:291:9: note: each undeclared identifier is reported only once for each function it appears in
cupsfilters/catalog.c: In function 'cfCatalogOptionArrayNew':
cupsfilters/catalog.c:370:11: error: too many arguments to function 'cupsArrayNew'
  370 |   return (cupsArrayNew(compare_options, NULL, NULL, 0,
      |           ^~~~~~~~~~~~
In file included from /usr/include/cups/http.h:19:
/usr/include/cups/array.h:63:26: note: declared here
   63 | extern cups_array_t     *cupsArrayNew(cups_array_func_t f, void *d) _CUPS_API_1_2;
      |                          ^~~~~~~~~~~~
cupsfilters/catalog.c: In function 'cfCatalogAddOption':
cupsfilters/catalog.c:419:20: error: too many arguments to function 'cupsArrayNew'
  419 |     opt->choices = cupsArrayNew(compare_choices, NULL, NULL, 0,
      |                    ^~~~~~~~~~~~
/usr/include/cups/array.h:63:26: note: declared here
   63 | extern cups_array_t     *cupsArrayNew(cups_array_func_t f, void *d) _CUPS_API_1_2;
      |                          ^~~~~~~~~~~~
make[2]: *** [Makefile:1649: cupsfilters/libcupsfilters_la-catalog.lo] Error 1
/bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I.    -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c -o cupsfilters/libcupsfilters_la-filter.lo `test -f 'cupsfilters/filter.c' || echo './'`cupsfilters/filter.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c cupsfilters/filter.c  -fPIC -DPIC -o cupsfilters/.libs/libcupsfilters_la-filter.o
cupsfilters/filter.c: In function 'get_filter_data_ext_entry':
cupsfilters/filter.c:133:40: error: implicit declaration of function 'cupsArrayGetFirst'; did you mean 'cupsArrayFirst'? [-Wimplicit-function-declaration]
  133 |   for (entry = (cf_filter_data_ext_t *)cupsArrayGetFirst(ext_array);
      |                                        ^~~~~~~~~~~~~~~~~
      |                                        cupsArrayFirst
cupsfilters/filter.c:133:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  133 |   for (entry = (cf_filter_data_ext_t *)cupsArrayGetFirst(ext_array);
      |                ^
cupsfilters/filter.c:135:40: error: implicit declaration of function 'cupsArrayGetNext'; did you mean 'cupsArrayNext'? [-Wimplicit-function-declaration]
  135 |        entry = (cf_filter_data_ext_t *)cupsArrayGetNext(ext_array))
      |                                        ^~~~~~~~~~~~~~~~
      |                                        cupsArrayNext
cupsfilters/filter.c:135:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  135 |        entry = (cf_filter_data_ext_t *)cupsArrayGetNext(ext_array))
      |                ^
cupsfilters/filter.c: In function 'cfFilterDataAddExt':
cupsfilters/filter.c:162:23: error: too many arguments to function 'cupsArrayNew'
  162 |     data->extension = cupsArrayNew(NULL, NULL, NULL, 0, NULL, NULL);
      |                       ^~~~~~~~~~~~
In file included from /usr/include/cups/http.h:19,
                 from /usr/include/cups/ipp.h:18,
                 from /usr/include/cups/cups.h:28,
                 from cupsfilters/filter.h:36,
                 from cupsfilters/filter.c:16:
/usr/include/cups/array.h:63:26: note: declared here
   63 | extern cups_array_t     *cupsArrayNew(cups_array_func_t f, void *d) _CUPS_API_1_2;
      |                          ^~~~~~~~~~~~
cupsfilters/filter.c: In function 'cfFilterDataRemoveExt':
cupsfilters/filter.c:219:9: error: implicit declaration of function 'cupsArrayGetCount'; did you mean 'cupsArrayCount'? [-Wimplicit-function-declaration]
  219 |     if (cupsArrayGetCount(data->extension) == 0)
      |         ^~~~~~~~~~~~~~~~~
      |         cupsArrayCount
cupsfilters/filter.c: In function 'cfFilterChain':
cupsfilters/filter.c:654:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  654 |   for (filter = (cf_filter_filter_in_chain_t *)cupsArrayGetFirst(filter_chain);
      |                 ^
cupsfilters/filter.c:656:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  656 |        filter = (cf_filter_filter_in_chain_t *)cupsArrayGetNext(filter_chain))
      |                 ^
cupsfilters/filter.c:703:35: error: 'cups_array_cb_t' undeclared (first use in this function); did you mean 'cups_array_t'?
  703 |   pids            = cupsArrayNew((cups_array_cb_t)compare_filter_pids, NULL,
      |                                   ^~~~~~~~~~~~~~~
      |                                   cups_array_t
cupsfilters/filter.c:703:35: note: each undeclared identifier is reported only once for each function it appears in
cupsfilters/filter.c:703:51: error: expected ')' before 'compare_filter_pids'
  703 |   pids            = cupsArrayNew((cups_array_cb_t)compare_filter_pids, NULL,
      |                                 ~                 ^~~~~~~~~~~~~~~~~~~
      |                                                   )
cupsfilters/filter.c:703:21: error: too few arguments to function 'cupsArrayNew'
  703 |   pids            = cupsArrayNew((cups_array_cb_t)compare_filter_pids, NULL,
      |                     ^~~~~~~~~~~~
/usr/include/cups/array.h:63:26: note: declared here
   63 | extern cups_array_t     *cupsArrayNew(cups_array_func_t f, void *d) _CUPS_API_1_2;
      |                          ^~~~~~~~~~~~
cupsfilters/filter.c:711:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  711 |   for (filter = (cf_filter_filter_in_chain_t *)cupsArrayGetFirst(filter_chain);
      |                 ^
cupsfilters/filter.c:715:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  715 |     next = (cf_filter_filter_in_chain_t *)cupsArrayGetNext(filter_chain);
      |            ^
cupsfilters/filter.c:830:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  830 |         for (pid_entry = (filter_function_pid_t *)cupsArrayGetFirst(pids);
      |                          ^
cupsfilters/filter.c:832:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  832 |              pid_entry = (filter_function_pid_t *)cupsArrayGetNext(pids))
      |                          ^
cupsfilters/filter.c: In function 'cfFilterExternal':
cupsfilters/filter.c:1108:12: error: implicit declaration of function 'cupsCreateTempFd' [-Wimplicit-function-declaration]
 1108 |       fd = cupsCreateTempFd(NULL, NULL, tmp_name, sizeof(tmp_name));
      |            ^~~~~~~~~~~~~~~~
cupsfilters/filter.c: At top level:
cupsfilters/filter.c:602:1: warning: 'compare_filter_pids' defined but not used [-Wunused-function]
  602 | compare_filter_pids(filter_function_pid_t *a,   // I - First filter
      | ^~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1698: cupsfilters/libcupsfilters_la-filter.lo] Error 1
/bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I.    -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c -o cupsfilters/libcupsfilters_la-ghostscript.lo `test -f 'cupsfilters/ghostscript.c' || echo './'`cupsfilters/ghostscript.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c cupsfilters/ghostscript.c  -fPIC -DPIC -o cupsfilters/.libs/libcupsfilters_la-ghostscript.o
cupsfilters/ghostscript.c: In function 'gs_spawn':
cupsfilters/ghostscript.c:459:13: error: implicit declaration of function 'cupsArrayGetCount'; did you mean 'cupsArrayCount'? [-Wimplicit-function-declaration]
  459 |   numargs = cupsArrayGetCount(gs_args);
      |             ^~~~~~~~~~~~~~~~~
      |             cupsArrayCount
cupsfilters/ghostscript.c:461:27: error: implicit declaration of function 'cupsArrayGetFirst'; did you mean 'cupsArrayFirst'? [-Wimplicit-function-declaration]
  461 |   for (argument = (char *)cupsArrayGetFirst(gs_args), i = 0; argument;
      |                           ^~~~~~~~~~~~~~~~~
      |                           cupsArrayFirst
cupsfilters/ghostscript.c:461:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  461 |   for (argument = (char *)cupsArrayGetFirst(gs_args), i = 0; argument;
      |                   ^
cupsfilters/ghostscript.c:462:27: error: implicit declaration of function 'cupsArrayGetNext'; did you mean 'cupsArrayNext'? [-Wimplicit-function-declaration]
  462 |        argument = (char *)cupsArrayGetNext(gs_args), i++)
      |                           ^~~~~~~~~~~~~~~~
      |                           cupsArrayNext
cupsfilters/ghostscript.c:462:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  462 |        argument = (char *)cupsArrayGetNext(gs_args), i++)
      |                   ^
cupsfilters/ghostscript.c: In function 'cfFilterGhostscript':
cupsfilters/ghostscript.c:938:17: error: implicit declaration of function 'cupsCreateTempFd' [-Wimplicit-function-declaration]
  938 |       if ((fd = cupsCreateTempFd(NULL, NULL, tempfile, sizeof(tempfile))) < 0)
      |                 ^~~~~~~~~~~~~~~~
cupsfilters/ghostscript.c:1090:13: error: too many arguments to function 'cupsArrayNew'
 1090 |   gs_args = cupsArrayNew(NULL, NULL, NULL, 0, NULL, NULL);
      |             ^~~~~~~~~~~~
In file included from /usr/include/cups/http.h:19,
                 from /usr/include/cups/ipp.h:18,
                 from /usr/include/cups/cups.h:28,
                 from cupsfilters/ghostscript.c:15:
/usr/include/cups/array.h:63:26: note: declared here
   63 | extern cups_array_t     *cupsArrayNew(cups_array_func_t f, void *d) _CUPS_API_1_2;
      |                          ^~~~~~~~~~~~
cupsfilters/ghostscript.c:1685:17: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1685 |     while ((tmp = cupsArrayGetFirst(gs_args)) != NULL)
      |                 ^
make[2]: *** [Makefile:1768: cupsfilters/libcupsfilters_la-ghostscript.lo] Error 1
/bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I.    -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c -o cupsfilters/libcupsfilters_la-image.lo `test -f 'cupsfilters/image.c' || echo './'`cupsfilters/image.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c cupsfilters/image.c  -fPIC -DPIC -o cupsfilters/.libs/libcupsfilters_la-image.o
cupsfilters/image.c: In function 'flush_tile':
cupsfilters/image.c:688:27: error: implicit declaration of function 'cupsCreateTempFd' [-Wimplicit-function-declaration]
  688 |     if ((img->cachefile = cupsCreateTempFd(NULL, NULL, img->cachename,
      |                           ^~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1782: cupsfilters/libcupsfilters_la-image.lo] Error 1
/bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I.    -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c -o cupsfilters/libcupsfilters_la-imagetopdf.lo `test -f 'cupsfilters/imagetopdf.c' || echo './'`cupsfilters/imagetopdf.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c cupsfilters/imagetopdf.c  -fPIC -DPIC -o cupsfilters/.libs/libcupsfilters_la-imagetopdf.o
cupsfilters/imagetopdf.c: In function 'cfFilterImageToPDF':
cupsfilters/imagetopdf.c:681:15: error: implicit declaration of function 'cupsCreateTempFd' [-Wimplicit-function-declaration]
  681 |     if ((fd = cupsCreateTempFd(NULL, NULL, tempfile, sizeof(tempfile))) < 0)
      |               ^~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1824: cupsfilters/libcupsfilters_la-imagetopdf.lo] Error 1
/bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I.    -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c -o cupsfilters/libcupsfilters_la-imagetoraster.lo `test -f 'cupsfilters/imagetoraster.c' || echo './'`cupsfilters/imagetoraster.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c cupsfilters/imagetoraster.c  -fPIC -DPIC -o cupsfilters/.libs/libcupsfilters_la-imagetoraster.o
cupsfilters/imagetoraster.c: In function 'cfFilterImageToRaster':
cupsfilters/imagetoraster.c:364:15: error: implicit declaration of function 'cupsCreateTempFd' [-Wimplicit-function-declaration]
  364 |     if ((fd = cupsCreateTempFd(NULL, NULL, tempfile, sizeof(tempfile))) < 0)
      |               ^~~~~~~~~~~~~~~~
cupsfilters/imagetoraster.c:1670:9: warning: 'cupsRasterWriteHeader' is deprecated: Use cupsRasterWriteHeader2 instead. [-Wdeprecated-declarations]
 1670 |         cupsRasterWriteHeader(ras, &header);
      |         ^~~~~~~~~~~~~~~~~~~~~
In file included from ./cupsfilters/filter.h:37,
                 from cupsfilters/imagetoraster.c:31:
/usr/include/cups/raster.h:379:25: note: declared here
  379 | extern unsigned         cupsRasterWriteHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterWriteHeader2 instead.") _CUPS_PUBLIC;
      |                         ^~~~~~~~~~~~~~~~~~~~~
cupsfilters/imagetoraster.c:1670:36: error: passing argument 2 of 'cupsRasterWriteHeader' from incompatible pointer type [-Wincompatible-pointer-types]
 1670 |         cupsRasterWriteHeader(ras, &header);
      |                                    ^~~~~~~
      |                                    |
      |                                    cups_page_header2_t * {aka struct cups_page_header2_s *}
/usr/include/cups/raster.h:379:85: note: expected 'cups_page_header_t *' {aka 'struct cups_page_header_s *'} but argument is of type 'cups_page_header2_t *' {aka 'struct cups_page_header2_s *'}
  379 | extern unsigned         cupsRasterWriteHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterWriteHeader2 instead.") _CUPS_PUBLIC;
      |                                                                 ~~~~~~~~~~~~~~~~~~~~^
make[2]: *** [Makefile:1831: cupsfilters/libcupsfilters_la-imagetoraster.lo] Error 1
/bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I.    -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c -o cupsfilters/libcupsfilters_la-ipp.lo `test -f 'cupsfilters/ipp.c' || echo './'`cupsfilters/ipp.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c cupsfilters/ipp.c  -fPIC -DPIC -o cupsfilters/.libs/libcupsfilters_la-ipp.o
cupsfilters/ipp.c: In function 'cfGetPrinterAttributes5':
cupsfilters/ipp.c:263:10: warning: 'httpConnect' is deprecated: Use httpConnect2 instead. [-Wdeprecated-declarations]
  263 |          httpConnect(host_name, host_port, NULL, AF_UNSPEC,
      |          ^~~~~~~~~~~
In file included from /usr/include/cups/ipp.h:18,
                 from /usr/include/cups/cups.h:28,
                 from cupsfilters/ipp.c:29:
/usr/include/cups/http.h:476:26: note: declared here
  476 | extern http_t           *httpConnect(const char *host, int port) _CUPS_DEPRECATED_1_7_MSG("Use httpConnect2 instead.");
      |                          ^~~~~~~~~~~
cupsfilters/ipp.c:263:10: error: too many arguments to function 'httpConnect'
  263 |          httpConnect(host_name, host_port, NULL, AF_UNSPEC,
      |          ^~~~~~~~~~~
/usr/include/cups/http.h:476:26: note: declared here
  476 | extern http_t           *httpConnect(const char *host, int port) _CUPS_DEPRECATED_1_7_MSG("Use httpConnect2 instead.");
      |                          ^~~~~~~~~~~
cupsfilters/ipp.c:314:18: error: implicit declaration of function 'cupsGetError'; did you mean 'cupsLastError'? [-Wimplicit-function-declaration]
  314 |     ipp_status = cupsGetError();
      |                  ^~~~~~~~~~~~
      |                  cupsLastError
cupsfilters/ipp.c:325:14: error: implicit declaration of function 'ippGetFirstAttribute'; did you mean 'ippFirstAttribute'? [-Wimplicit-function-declaration]
  325 |       attr = ippGetFirstAttribute(response);
      |              ^~~~~~~~~~~~~~~~~~~~
      |              ippFirstAttribute
cupsfilters/ipp.c:325:12: error: assignment to 'ipp_attribute_t *' {aka 'struct _ipp_attribute_s *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
  325 |       attr = ippGetFirstAttribute(response);
      |            ^
cupsfilters/ipp.c:340:16: error: implicit declaration of function 'ippGetNextAttribute'; did you mean 'ippNextAttribute'? [-Wimplicit-function-declaration]
  340 |         attr = ippGetNextAttribute(response);
      |                ^~~~~~~~~~~~~~~~~~~
      |                ippNextAttribute
cupsfilters/ipp.c:340:14: error: assignment to 'ipp_attribute_t *' {aka 'struct _ipp_attribute_s *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
  340 |         attr = ippGetNextAttribute(response);
      |              ^
cupsfilters/ipp.c:416:23: error: implicit declaration of function 'cupsGetErrorString'; did you mean 'cupsLastErrorString'? [-Wimplicit-function-declaration]
  416 |                  uri, cupsGetErrorString());
      |                       ^~~~~~~~~~~~~~~~~~
      |                       cupsLastErrorString
cupsfilters/ipp.c: In function 'cfResolveURI2':
cupsfilters/ipp.c:453:17: error: 'HTTP_RESOLVE_DEFAULT' undeclared (first use in this function)
  453 |   int options = HTTP_RESOLVE_DEFAULT;
      |                 ^~~~~~~~~~~~~~~~~~~~
cupsfilters/ipp.c:453:17: note: each undeclared identifier is reported only once for each function it appears in
cupsfilters/ipp.c:458:17: error: 'HTTP_RESOLVE_FQDN' undeclared (first use in this function)
  458 |     {options |= HTTP_RESOLVE_FQDN;}
      |                 ^~~~~~~~~~~~~~~~~
cupsfilters/ipp.c:460:17: error: 'HTTP_RESOLVE_FAXOUT' undeclared (first use in this function)
  460 |     {options |= HTTP_RESOLVE_FAXOUT;}
      |                 ^~~~~~~~~~~~~~~~~~~
cupsfilters/ipp.c:462:18: error: implicit declaration of function 'httpResolveURI'; did you mean 'cfResolveURI'? [-Wimplicit-function-declaration]
  462 |   return (strdup(httpResolveURI(raw_uri, buf, sizeof(buf), options, NULL,
      |                  ^~~~~~~~~~~~~~
      |                  cfResolveURI
cupsfilters/ipp.c:462:18: error: passing argument 1 of 'strdup' makes pointer from integer without a cast [-Wint-conversion]
  462 |   return (strdup(httpResolveURI(raw_uri, buf, sizeof(buf), options, NULL,
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                  |
      |                  int
  463 |                                 NULL)));
      |                                 ~~~~~
In file included from /usr/include/cups/http.h:20:
/usr/include/string.h:187:34: note: expected 'const char *' but argument is of type 'int'
  187 | extern char *strdup (const char *__s)
      |                      ~~~~~~~~~~~~^~~
cupsfilters/ipp.c: In function 'cfIPPReverseOutput':
cupsfilters/ipp.c:724:58: error: passing argument 3 of 'ippGetOctetString' from incompatible pointer type [-Wincompatible-pointer-types]
  724 |                (const char *)ippGetOctetString(attr2, i, &length)) != NULL)
      |                                                          ^~~~~~~
      |                                                          |
      |                                                          size_t * {aka long unsigned int *}
/usr/include/cups/ipp.h:920:49: note: expected 'int *' but argument is of type 'size_t *' {aka 'long unsigned int *'}
  920 |                                            int *datalen) _CUPS_API_1_7;
      |                                            ~~~~~^~~~~~~
cupsfilters/ipp.c: In function 'cfJoinJobOptionsAndAttrs':
cupsfilters/ipp.c:1010:17: error: assignment to 'ipp_attribute_t *' {aka 'struct _ipp_attribute_s *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1010 |   for (ipp_attr = ippGetFirstAttribute(job_attrs); ipp_attr;
      |                 ^
cupsfilters/ipp.c:1011:17: error: assignment to 'ipp_attribute_t *' {aka 'struct _ipp_attribute_s *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1011 |        ipp_attr = ippGetNextAttribute(job_attrs))
      |                 ^
cupsfilters/ipp.c: In function 'cfNewResolutionArray':
cupsfilters/ipp.c:1190:11: error: too many arguments to function 'cupsArrayNew'
 1190 |   return (cupsArrayNew(cfCompareResolutions, NULL, NULL, 0,
      |           ^~~~~~~~~~~~
In file included from /usr/include/cups/http.h:19:
/usr/include/cups/array.h:63:26: note: declared here
   63 | extern cups_array_t     *cupsArrayNew(cups_array_func_t f, void *d) _CUPS_API_1_2;
      |                          ^~~~~~~~~~~~
cupsfilters/ipp.c: In function 'cfIPPAttrToResolutionArray':
cupsfilters/ipp.c:1266:11: error: implicit declaration of function 'cupsArrayGetCount'; did you mean 'cupsArrayCount'? [-Wimplicit-function-declaration]
 1266 |       if (cupsArrayGetCount(res_array) == 0)
      |           ^~~~~~~~~~~~~~~~~
      |           cupsArrayCount
cupsfilters/ipp.c: In function 'cfJoinResolutionArrays':
cupsfilters/ipp.c:1330:14: error: implicit declaration of function 'cupsArrayGetFirst'; did you mean 'cupsArrayFirst'? [-Wimplicit-function-declaration]
 1330 |   for (res = cupsArrayGetFirst(*current);
      |              ^~~~~~~~~~~~~~~~~
      |              cupsArrayFirst
cupsfilters/ipp.c:1330:12: error: assignment to 'cf_res_t *' {aka 'struct cf_res_s *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1330 |   for (res = cupsArrayGetFirst(*current);
      |            ^
cupsfilters/ipp.c:1331:19: error: implicit declaration of function 'cupsArrayGetNext'; did you mean 'cupsArrayNext'? [-Wimplicit-function-declaration]
 1331 |        res; res = cupsArrayGetNext(*current))
      |                   ^~~~~~~~~~~~~~~~
      |                   cupsArrayNext
cupsfilters/ipp.c:1331:17: error: assignment to 'cf_res_t *' {aka 'struct cf_res_s *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1331 |        res; res = cupsArrayGetNext(*current))
      |                 ^
cupsfilters/ipp.c:1340:14: error: assignment to 'cf_res_t *' {aka 'struct cf_res_s *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1340 |     for (res = cupsArrayGetFirst(*current);
      |              ^
cupsfilters/ipp.c:1341:19: error: assignment to 'cf_res_t *' {aka 'struct cf_res_s *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1341 |          res; res = cupsArrayGetNext(*current))
      |                   ^
cupsfilters/ipp.c: In function 'cfGenerateSizes':
cupsfilters/ipp.c:2173:28: error: 'cups_array_cb_t' undeclared (first use in this function); did you mean 'cups_array_t'?
 2173 |     *sizes = cupsArrayNew((cups_array_cb_t)pwg_compare_sizes, NULL, NULL, 0,
      |                            ^~~~~~~~~~~~~~~
      |                            cups_array_t
cupsfilters/ipp.c:2173:44: error: expected ')' before 'pwg_compare_sizes'
 2173 |     *sizes = cupsArrayNew((cups_array_cb_t)pwg_compare_sizes, NULL, NULL, 0,
      |                          ~                 ^~~~~~~~~~~~~~~~~
      |                                            )
cupsfilters/ipp.c:2173:14: error: too few arguments to function 'cupsArrayNew'
 2173 |     *sizes = cupsArrayNew((cups_array_cb_t)pwg_compare_sizes, NULL, NULL, 0,
      |              ^~~~~~~~~~~~
/usr/include/cups/array.h:63:26: note: declared here
   63 | extern cups_array_t     *cupsArrayNew(cups_array_func_t f, void *d) _CUPS_API_1_2;
      |                          ^~~~~~~~~~~~
cupsfilters/ipp.c: At top level:
cupsfilters/ipp.c:1397:1: warning: 'pwg_copy_size' defined but not used [-Wunused-function]
 1397 | pwg_copy_size(cf_size_t *size)  // I - Media size to copy
      | ^~~~~~~~~~~~~
cupsfilters/ipp.c:1385:1: warning: 'pwg_compare_sizes' defined but not used [-Wunused-function]
 1385 | pwg_compare_sizes(cf_size_t *a, // I - First media size
      | ^~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1838: cupsfilters/libcupsfilters_la-ipp.lo] Error 1
/bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I.    -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c -o cupsfilters/libcupsfilters_la-mupdftopwg.lo `test -f 'cupsfilters/mupdftopwg.c' || echo './'`cupsfilters/mupdftopwg.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c cupsfilters/mupdftopwg.c  -fPIC -DPIC -o cupsfilters/.libs/libcupsfilters_la-mupdftopwg.o
cupsfilters/mupdftopwg.c: In function 'mutool_spawn':
cupsfilters/mupdftopwg.c:189:13: error: implicit declaration of function 'cupsArrayGetCount'; did you mean 'cupsArrayCount'? [-Wimplicit-function-declaration]
  189 |   numargs = cupsArrayGetCount(mutool_args);
      |             ^~~~~~~~~~~~~~~~~
      |             cupsArrayCount
cupsfilters/mupdftopwg.c:191:27: error: implicit declaration of function 'cupsArrayGetFirst'; did you mean 'cupsArrayFirst'? [-Wimplicit-function-declaration]
  191 |   for (argument = (char *)cupsArrayGetFirst(mutool_args), i = 0; argument;
      |                           ^~~~~~~~~~~~~~~~~
      |                           cupsArrayFirst
cupsfilters/mupdftopwg.c:191:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  191 |   for (argument = (char *)cupsArrayGetFirst(mutool_args), i = 0; argument;
      |                   ^
cupsfilters/mupdftopwg.c:192:27: error: implicit declaration of function 'cupsArrayGetNext'; did you mean 'cupsArrayNext'? [-Wimplicit-function-declaration]
  192 |        argument = (char *)cupsArrayGetNext(mutool_args), i++)
      |                           ^~~~~~~~~~~~~~~~
      |                           cupsArrayNext
cupsfilters/mupdftopwg.c:192:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  192 |        argument = (char *)cupsArrayGetNext(mutool_args), i++)
      |                   ^
cupsfilters/mupdftopwg.c: In function 'cfFilterMuPDFToPWG':
cupsfilters/mupdftopwg.c:469:8: error: implicit declaration of function 'cupsCreateTempFd' [-Wimplicit-function-declaration]
  469 |   fd = cupsCreateTempFd(NULL, NULL, infilename, 1024);
      |        ^~~~~~~~~~~~~~~~
cupsfilters/mupdftopwg.c:525:16: error: too many arguments to function 'cupsArrayNew'
  525 |   mupdf_args = cupsArrayNew(NULL, NULL, NULL, 0, NULL, NULL);
      |                ^~~~~~~~~~~~
In file included from /usr/include/cups/http.h:19,
                 from /usr/include/cups/ipp.h:18,
                 from /usr/include/cups/cups.h:28,
                 from cupsfilters/mupdftopwg.c:15:
/usr/include/cups/array.h:63:26: note: declared here
   63 | extern cups_array_t     *cupsArrayNew(cups_array_func_t f, void *d) _CUPS_API_1_2;
      |                          ^~~~~~~~~~~~
make[2]: *** [Makefile:1859: cupsfilters/libcupsfilters_la-mupdftopwg.lo] Error 1
/bin/sh ./libtool  --tag=CXX   --mode=compile /usr/bin/g++ -DHAVE_CONFIG_H -I.    -std=c++11 -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS    -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall  -D_GNU_SOURCE -DPOINTERHOLDER_TRANSITION=0 -std=c++17 -c -o cupsfilters/libcupsfilters_la-pclmtoraster.lo `test -f 'cupsfilters/pclmtoraster.cxx' || echo './'`cupsfilters/pclmtoraster.cxx
libtool: compile:  /usr/bin/g++ -DHAVE_CONFIG_H -I. -std=c++11 -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -D_GNU_SOURCE -DPOINTERHOLDER_TRANSITION=0 -std=c++17 -c cupsfilters/pclmtoraster.cxx  -fPIC -DPIC -o cupsfilters/.libs/libcupsfilters_la-pclmtoraster.o
cupsfilters/pclmtoraster.cxx: In function 'int out_page(cups_raster_t*, QPDFObjectHandle, int, cf_logfunc_t, void*, pclmtoraster_data_t*, cf_filter_data_t*, pclm_conversion_function_t*)':
cupsfilters/pclmtoraster.cxx:973:29: warning: 'unsigned int cupsRasterWriteHeader(cups_raster_t*, cups_page_header_t*)' is deprecated: Use cupsRasterWriteHeader2 instead. [-Wdeprecated-declarations]
  973 |   if (!cupsRasterWriteHeader(raster, &(data->header)))
      |        ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./cupsfilters/filter.h:37,
                 from cupsfilters/pclmtoraster.cxx:14:
/usr/include/cups/raster.h:379:25: note: declared here
  379 | extern unsigned         cupsRasterWriteHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterWriteHeader2 instead.") _CUPS_PUBLIC;
      |                         ^~~~~~~~~~~~~~~~~~~~~
cupsfilters/pclmtoraster.cxx:973:29: warning: 'unsigned int cupsRasterWriteHeader(cups_raster_t*, cups_page_header_t*)' is deprecated: Use cupsRasterWriteHeader2 instead. [-Wdeprecated-declarations]
  973 |   if (!cupsRasterWriteHeader(raster, &(data->header)))
      |        ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/raster.h:379:25: note: declared here
  379 | extern unsigned         cupsRasterWriteHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterWriteHeader2 instead.") _CUPS_PUBLIC;
      |                         ^~~~~~~~~~~~~~~~~~~~~
cupsfilters/pclmtoraster.cxx:973:38: error: cannot convert 'cups_page_header2_t*' {aka 'cups_page_header2_s*'} to 'cups_page_header_t*' {aka 'cups_page_header_s*'}
  973 |   if (!cupsRasterWriteHeader(raster, &(data->header)))
      |                                      ^~~~~~~~~~~~~~~
      |                                      |
      |                                      cups_page_header2_t* {aka cups_page_header2_s*}
/usr/include/cups/raster.h:379:85: note:   initializing argument 2 of 'unsigned int cupsRasterWriteHeader(cups_raster_t*, cups_page_header_t*)'
  379 | extern unsigned         cupsRasterWriteHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterWriteHeader2 instead.") _CUPS_PUBLIC;
      |                                                                 ~~~~~~~~~~~~~~~~~~~~^
cupsfilters/pclmtoraster.cxx: In function 'int cfFilterPCLmToRaster(int, int, int, cf_filter_data_t*, void*)':
cupsfilters/pclmtoraster.cxx:1118:13: error: 'cupsCreateTempFd' was not declared in this scope; did you mean 'cupsTempFd'?
 1118 |   if ((fd = cupsCreateTempFd(NULL, NULL, tempfile, sizeof(tempfile))) < 0)
      |             ^~~~~~~~~~~~~~~~
      |             cupsTempFd
make[2]: *** [Makefile:2016: cupsfilters/libcupsfilters_la-pclmtoraster.lo] Error 1
/bin/sh ./libtool  --tag=CXX   --mode=compile /usr/bin/g++ -DHAVE_CONFIG_H -I.    -std=c++11 -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS    -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall  -D_GNU_SOURCE -DPOINTERHOLDER_TRANSITION=0 -std=c++17 -c -o cupsfilters/pdftopdf/libcupsfilters_la-pdftopdf.lo `test -f 'cupsfilters/pdftopdf/pdftopdf.cxx' || echo './'`cupsfilters/pdftopdf/pdftopdf.cxx
libtool: compile:  /usr/bin/g++ -DHAVE_CONFIG_H -I. -std=c++11 -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -D_GNU_SOURCE -DPOINTERHOLDER_TRANSITION=0 -std=c++17 -c cupsfilters/pdftopdf/pdftopdf.cxx  -fPIC -DPIC -o cupsfilters/pdftopdf/.libs/libcupsfilters_la-pdftopdf.o
cupsfilters/pdftopdf/pdftopdf.cxx: In function 'FILE* copy_fd_to_temp(int, pdftopdf_doc_t*)':
cupsfilters/pdftopdf/pdftopdf.cxx:795:15: error: 'cupsCreateTempFd' was not declared in this scope; did you mean 'cupsTempFd'?
  795 |   int outfd = cupsCreateTempFd(NULL, NULL, buf, sizeof(buf));
      |               ^~~~~~~~~~~~~~~~
      |               cupsTempFd
make[2]: *** [Makefile:2030: cupsfilters/pdftopdf/libcupsfilters_la-pdftopdf.lo] Error 1
/bin/sh ./libtool  --tag=CXX   --mode=compile /usr/bin/g++ -DHAVE_CONFIG_H -I.    -std=c++11 -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS    -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall  -D_GNU_SOURCE -DPOINTERHOLDER_TRANSITION=0 -std=c++17 -c -o cupsfilters/libcupsfilters_la-pdftoraster.lo `test -f 'cupsfilters/pdftoraster.cxx' || echo './'`cupsfilters/pdftoraster.cxx
libtool: compile:  /usr/bin/g++ -DHAVE_CONFIG_H -I. -std=c++11 -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -D_GNU_SOURCE -DPOINTERHOLDER_TRANSITION=0 -std=c++17 -c cupsfilters/pdftoraster.cxx  -fPIC -DPIC -o cupsfilters/.libs/libcupsfilters_la-pdftoraster.o
cupsfilters/pdftoraster.cxx: In function 'int out_page(pdftoraster_doc_t*, int, cf_filter_data_t*, cups_raster_t*, pdf_conversion_function_t*, cf_logfunc_t, void*, cf_filter_iscanceledfunc_t, void*)':
cupsfilters/pdftoraster.cxx:1785:29: warning: 'unsigned int cupsRasterWriteHeader(cups_raster_t*, cups_page_header_t*)' is deprecated: Use cupsRasterWriteHeader2 instead. [-Wdeprecated-declarations]
 1785 |   if (!cupsRasterWriteHeader(raster, &(doc->header)))
      |        ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./cupsfilters/filter.h:37,
                 from cupsfilters/pdftoraster.cxx:14:
/usr/include/cups/raster.h:379:25: note: declared here
  379 | extern unsigned         cupsRasterWriteHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterWriteHeader2 instead.") _CUPS_PUBLIC;
      |                         ^~~~~~~~~~~~~~~~~~~~~
cupsfilters/pdftoraster.cxx:1785:29: warning: 'unsigned int cupsRasterWriteHeader(cups_raster_t*, cups_page_header_t*)' is deprecated: Use cupsRasterWriteHeader2 instead. [-Wdeprecated-declarations]
 1785 |   if (!cupsRasterWriteHeader(raster, &(doc->header)))
      |        ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/cups/raster.h:379:25: note: declared here
  379 | extern unsigned         cupsRasterWriteHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterWriteHeader2 instead.") _CUPS_PUBLIC;
      |                         ^~~~~~~~~~~~~~~~~~~~~
cupsfilters/pdftoraster.cxx:1785:38: error: cannot convert 'cups_page_header2_t*' {aka 'cups_page_header2_s*'} to 'cups_page_header_t*' {aka 'cups_page_header_s*'}
 1785 |   if (!cupsRasterWriteHeader(raster, &(doc->header)))
      |                                      ^~~~~~~~~~~~~~
      |                                      |
      |                                      cups_page_header2_t* {aka cups_page_header2_s*}
/usr/include/cups/raster.h:379:85: note:   initializing argument 2 of 'unsigned int cupsRasterWriteHeader(cups_raster_t*, cups_page_header_t*)'
  379 | extern unsigned         cupsRasterWriteHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterWriteHeader2 instead.") _CUPS_PUBLIC;
      |                                                                 ~~~~~~~~~~~~~~~~~~~~^
cupsfilters/pdftoraster.cxx: In function 'int cfFilterPDFToRaster(int, int, int, cf_filter_data_t*, void*)':
cupsfilters/pdftoraster.cxx:1991:8: error: 'cupsCreateTempFd' was not declared in this scope; did you mean 'cupsTempFd'?
 1991 |   fd = cupsCreateTempFd(NULL, NULL, name, sizeof(name));
      |        ^~~~~~~~~~~~~~~~
      |        cupsTempFd
make[2]: *** [Makefile:2100: cupsfilters/libcupsfilters_la-pdftoraster.lo] Error 1
/bin/sh ./libtool  --tag=CXX   --mode=compile /usr/bin/g++ -DHAVE_CONFIG_H -I.    -std=c++11 -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS    -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall  -D_GNU_SOURCE -DPOINTERHOLDER_TRANSITION=0 -std=c++17 -c -o cupsfilters/libcupsfilters_la-pwgtopdf.lo `test -f 'cupsfilters/pwgtopdf.cxx' || echo './'`cupsfilters/pwgtopdf.cxx
libtool: compile:  /usr/bin/g++ -DHAVE_CONFIG_H -I. -std=c++11 -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -D_GNU_SOURCE -DPOINTERHOLDER_TRANSITION=0 -std=c++17 -c cupsfilters/pwgtopdf.cxx  -fPIC -DPIC -o cupsfilters/.libs/libcupsfilters_la-pwgtopdf.o
cupsfilters/pwgtopdf.cxx: In function 'int cfFilterPWGToPDF(int, int, int, cf_filter_data_t*, void*)':
cupsfilters/pwgtopdf.cxx:1621:18: error: 'ippGetFirstAttribute' was not declared in this scope; did you mean 'ippFirstAttribute'?
 1621 |       ipp_attr = ippGetFirstAttribute(printer_attrs);
      |                  ^~~~~~~~~~~~~~~~~~~~
      |                  ippFirstAttribute
cupsfilters/pwgtopdf.cxx:1630:25: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
 1630 |           for (i = 0; i < ippGetCount(ipp_attr); i ++)
      |                       ~~^~~~~~~~~~~~~~~~~~~~~~~
cupsfilters/pwgtopdf.cxx:1634:20: error: 'ippGetNextAttribute' was not declared in this scope; did you mean 'ippNextAttribute'?
 1634 |         ipp_attr = ippGetNextAttribute(printer_attrs);
      |                    ^~~~~~~~~~~~~~~~~~~
      |                    ippNextAttribute
cupsfilters/pwgtopdf.cxx:1659:21: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
 1659 |       for (i = 0; i < ippGetCount(ipp_attr); i ++)
      |                   ~~^~~~~~~~~~~~~~~~~~~~~~~
cupsfilters/pwgtopdf.cxx:1745:30: warning: 'unsigned int cupsRasterReadHeader(cups_raster_t*, cups_page_header_t*)' is deprecated: Use cupsRasterReadHeader2 instead. [-Wdeprecated-declarations]
 1745 |   while (cupsRasterReadHeader(ras, &header))
      |          ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from cupsfilters/pwgtopdf.cxx:27:
/usr/include/cups/raster.h:377:25: note: declared here
  377 | extern unsigned         cupsRasterReadHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterReadHeader2 instead.") _CUPS_PUBLIC;
      |                         ^~~~~~~~~~~~~~~~~~~~
cupsfilters/pwgtopdf.cxx:1745:30: warning: 'unsigned int cupsRasterReadHeader(cups_raster_t*, cups_page_header_t*)' is deprecated: Use cupsRasterReadHeader2 instead. [-Wdeprecated-declarations]
 1745 |   while (cupsRasterReadHeader(ras, &header))
      |          ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/cups/raster.h:377:25: note: declared here
  377 | extern unsigned         cupsRasterReadHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterReadHeader2 instead.") _CUPS_PUBLIC;
      |                         ^~~~~~~~~~~~~~~~~~~~
cupsfilters/pwgtopdf.cxx:1745:36: error: cannot convert 'cups_page_header2_t*' {aka 'cups_page_header2_s*'} to 'cups_page_header_t*' {aka 'cups_page_header_s*'}
 1745 |   while (cupsRasterReadHeader(ras, &header))
      |                                    ^~~~~~~
      |                                    |
      |                                    cups_page_header2_t* {aka cups_page_header2_s*}
/usr/include/cups/raster.h:377:84: note:   initializing argument 2 of 'unsigned int cupsRasterReadHeader(cups_raster_t*, cups_page_header_t*)'
  377 | extern unsigned         cupsRasterReadHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterReadHeader2 instead.") _CUPS_PUBLIC;
      |                                                                ~~~~~~~~~~~~~~~~~~~~^
make[2]: *** [Makefile:2107: cupsfilters/libcupsfilters_la-pwgtopdf.lo] Error 1
/bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I.    -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c -o cupsfilters/libcupsfilters_la-pwgtoraster.lo `test -f 'cupsfilters/pwgtoraster.c' || echo './'`cupsfilters/pwgtoraster.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c cupsfilters/pwgtoraster.c  -fPIC -DPIC -o cupsfilters/.libs/libcupsfilters_la-pwgtoraster.o
cupsfilters/pwgtoraster.c: In function 'out_page':
cupsfilters/pwgtoraster.c:1333:3: warning: 'cupsRasterReadHeader' is deprecated: Use cupsRasterReadHeader2 instead. [-Wdeprecated-declarations]
 1333 |   if (!cupsRasterReadHeader(inras, &(doc->inheader)))
      |   ^~
In file included from ./cupsfilters/colormanager.h:20,
                 from cupsfilters/pwgtoraster.c:15:
/usr/include/cups/raster.h:377:25: note: declared here
  377 | extern unsigned         cupsRasterReadHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterReadHeader2 instead.") _CUPS_PUBLIC;
      |                         ^~~~~~~~~~~~~~~~~~~~
cupsfilters/pwgtoraster.c:1333:36: error: passing argument 2 of 'cupsRasterReadHeader' from incompatible pointer type [-Wincompatible-pointer-types]
 1333 |   if (!cupsRasterReadHeader(inras, &(doc->inheader)))
      |                                    ^~~~~~~~~~~~~~~~
      |                                    |
      |                                    cups_page_header2_t * {aka struct cups_page_header2_s *}
/usr/include/cups/raster.h:377:84: note: expected 'cups_page_header_t *' {aka 'struct cups_page_header_s *'} but argument is of type 'cups_page_header2_t *' {aka 'struct cups_page_header2_s *'}
  377 | extern unsigned         cupsRasterReadHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterReadHeader2 instead.") _CUPS_PUBLIC;
      |                                                                ~~~~~~~~~~~~~~~~~~~~^
cupsfilters/pwgtoraster.c:1484:3: warning: 'cupsRasterWriteHeader' is deprecated: Use cupsRasterWriteHeader2 instead. [-Wdeprecated-declarations]
 1484 |   if (!cupsRasterWriteHeader(outras, &(doc->outheader)))
      |   ^~
/usr/include/cups/raster.h:379:25: note: declared here
  379 | extern unsigned         cupsRasterWriteHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterWriteHeader2 instead.") _CUPS_PUBLIC;
      |                         ^~~~~~~~~~~~~~~~~~~~~
cupsfilters/pwgtoraster.c:1484:38: error: passing argument 2 of 'cupsRasterWriteHeader' from incompatible pointer type [-Wincompatible-pointer-types]
 1484 |   if (!cupsRasterWriteHeader(outras, &(doc->outheader)))
      |                                      ^~~~~~~~~~~~~~~~~
      |                                      |
      |                                      cups_page_header2_t * {aka struct cups_page_header2_s *}
/usr/include/cups/raster.h:379:85: note: expected 'cups_page_header_t *' {aka 'struct cups_page_header_s *'} but argument is of type 'cups_page_header2_t *' {aka 'struct cups_page_header2_s *'}
  379 | extern unsigned         cupsRasterWriteHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterWriteHeader2 instead.") _CUPS_PUBLIC;
      |                                                                 ~~~~~~~~~~~~~~~~~~~~^
make[2]: *** [Makefile:1880: cupsfilters/libcupsfilters_la-pwgtoraster.lo] Error 1
/bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I.    -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c -o cupsfilters/libcupsfilters_la-rastertopwg.lo `test -f 'cupsfilters/rastertopwg.c' || echo './'`cupsfilters/rastertopwg.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c cupsfilters/rastertopwg.c  -fPIC -DPIC -o cupsfilters/.libs/libcupsfilters_la-rastertopwg.o
cupsfilters/rastertopwg.c: In function 'cfFilterRasterToPWG':
cupsfilters/rastertopwg.c:101:3: warning: 'cupsRasterReadHeader' is deprecated: Use cupsRasterReadHeader2 instead. [-Wdeprecated-declarations]
  101 |   while (cupsRasterReadHeader(inras, &inheader))
      |   ^~~~~
In file included from ./cupsfilters/filter.h:37,
                 from cupsfilters/rastertopwg.c:14:
/usr/include/cups/raster.h:377:25: note: declared here
  377 | extern unsigned         cupsRasterReadHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterReadHeader2 instead.") _CUPS_PUBLIC;
      |                         ^~~~~~~~~~~~~~~~~~~~
cupsfilters/rastertopwg.c:101:38: error: passing argument 2 of 'cupsRasterReadHeader' from incompatible pointer type [-Wincompatible-pointer-types]
  101 |   while (cupsRasterReadHeader(inras, &inheader))
      |                                      ^~~~~~~~~
      |                                      |
      |                                      cups_page_header2_t * {aka struct cups_page_header2_s *}
/usr/include/cups/raster.h:377:84: note: expected 'cups_page_header_t *' {aka 'struct cups_page_header_s *'} but argument is of type 'cups_page_header2_t *' {aka 'struct cups_page_header2_s *'}
  377 | extern unsigned         cupsRasterReadHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterReadHeader2 instead.") _CUPS_PUBLIC;
      |                                                                ~~~~~~~~~~~~~~~~~~~~^
cupsfilters/rastertopwg.c:518:5: warning: 'cupsRasterWriteHeader' is deprecated: Use cupsRasterWriteHeader2 instead. [-Wdeprecated-declarations]
  518 |     if (!cupsRasterWriteHeader(outras, &outheader))
      |     ^~
/usr/include/cups/raster.h:379:25: note: declared here
  379 | extern unsigned         cupsRasterWriteHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterWriteHeader2 instead.") _CUPS_PUBLIC;
      |                         ^~~~~~~~~~~~~~~~~~~~~
cupsfilters/rastertopwg.c:518:40: error: passing argument 2 of 'cupsRasterWriteHeader' from incompatible pointer type [-Wincompatible-pointer-types]
  518 |     if (!cupsRasterWriteHeader(outras, &outheader))
      |                                        ^~~~~~~~~~
      |                                        |
      |                                        cups_page_header2_t * {aka struct cups_page_header2_s *}
/usr/include/cups/raster.h:379:85: note: expected 'cups_page_header_t *' {aka 'struct cups_page_header_s *'} but argument is of type 'cups_page_header2_t *' {aka 'struct cups_page_header2_s *'}
  379 | extern unsigned         cupsRasterWriteHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterWriteHeader2 instead.") _CUPS_PUBLIC;
      |                                                                 ~~~~~~~~~~~~~~~~~~~~^
make[2]: *** [Makefile:1894: cupsfilters/libcupsfilters_la-rastertopwg.lo] Error 1
/bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I.    -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c -o cupsfilters/libcupsfilters_la-texttopdf.lo `test -f 'cupsfilters/texttopdf.c' || echo './'`cupsfilters/texttopdf.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c cupsfilters/texttopdf.c  -fPIC -DPIC -o cupsfilters/.libs/libcupsfilters_la-texttopdf.o
cupsfilters/texttopdf.c: In function 'cfFilterTextToPDF':
cupsfilters/texttopdf.c:630:29: error: 'CUPS_DATADIR' undeclared (first use in this function); did you mean 'CUPS_STATEDIR'?
  630 |     doc.env_vars.data_dir = CUPS_DATADIR;
      |                             ^~~~~~~~~~~~
      |                             CUPS_STATEDIR
cupsfilters/texttopdf.c:630:29: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [Makefile:1915: cupsfilters/libcupsfilters_la-texttopdf.lo] Error 1
/bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I.    -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c -o cupsfilters/libcupsfilters_la-texttotext.lo `test -f 'cupsfilters/texttotext.c' || echo './'`cupsfilters/texttotext.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c cupsfilters/texttotext.c  -fPIC -DPIC -o cupsfilters/.libs/libcupsfilters_la-texttotext.o
cupsfilters/texttotext.c: In function 'cfFilterTextToText':
cupsfilters/texttotext.c:813:18: error: too many arguments to function 'cupsArrayNew'
  813 |     page_array = cupsArrayNew(NULL, NULL, NULL, 0, NULL, NULL);
      |                  ^~~~~~~~~~~~
In file included from /usr/include/cups/http.h:19,
                 from /usr/include/cups/ipp.h:18,
                 from /usr/include/cups/cups.h:28,
                 from cupsfilters/texttotext.c:21:
/usr/include/cups/array.h:63:26: note: declared here
   63 | extern cups_array_t     *cupsArrayNew(cups_array_func_t f, void *d) _CUPS_API_1_2;
      |                          ^~~~~~~~~~~~
cupsfilters/texttotext.c:1125:21: error: implicit declaration of function 'cupsArrayGetElement'; did you mean 'cupsArrayGetInsert'? [-Wimplicit-function-declaration]
 1125 |         p = (char *)cupsArrayGetElement(page_array, page - 1);
      |                     ^~~~~~~~~~~~~~~~~~~
      |                     cupsArrayGetInsert
cupsfilters/texttotext.c:1125:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 1125 |         p = (char *)cupsArrayGetElement(page_array, page - 1);
      |             ^
cupsfilters/texttotext.c:1132:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 1132 |       p = (char *)cupsArrayGetElement(page_array, page);
      |           ^
make[2]: *** [Makefile:1922: cupsfilters/libcupsfilters_la-texttotext.lo] Error 1
/bin/sh ./libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I.    -I./cupsfilters/fontembed/ -I/usr/include/freetype2      -I/usr/include/libpng16  -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c -o cupsfilters/libcupsfilters_la-universal.lo `test -f 'cupsfilters/universal.c' || echo './'`cupsfilters/universal.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I./cupsfilters/fontembed/ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DHAVE_DBUS -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Wall -std=gnu11 -D_GNU_SOURCE -c cupsfilters/universal.c  -fPIC -DPIC -o cupsfilters/.libs/libcupsfilters_la-universal.o
cupsfilters/universal.c: In function 'cfFilterUniversal':
cupsfilters/universal.c:90:18: error: too many arguments to function 'cupsArrayNew'
   90 |   filter_chain = cupsArrayNew(NULL, NULL, NULL, 0, NULL, NULL);
      |                  ^~~~~~~~~~~~
In file included from /usr/include/cups/http.h:19,
                 from /usr/include/cups/ipp.h:18,
                 from /usr/include/cups/cups.h:28,
                 from ./cupsfilters/filter.h:36,
                 from cupsfilters/universal.c:16:
/usr/include/cups/array.h:63:26: note: declared here
   63 | extern cups_array_t     *cupsArrayNew(cups_array_func_t f, void *d) _CUPS_API_1_2;
      |                          ^~~~~~~~~~~~
cupsfilters/universal.c:345:48: error: implicit declaration of function 'cupsArrayGetFirst'; did you mean 'cupsArrayFirst'? [-Wimplicit-function-declaration]
  345 |   for (filter = (cf_filter_filter_in_chain_t *)cupsArrayGetFirst(filter_chain);
      |                                                ^~~~~~~~~~~~~~~~~
      |                                                cupsArrayFirst
cupsfilters/universal.c:345:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  345 |   for (filter = (cf_filter_filter_in_chain_t *)cupsArrayGetFirst(filter_chain);
      |                 ^
cupsfilters/universal.c:348:43: error: implicit declaration of function 'cupsArrayGetNext'; did you mean 'cupsArrayNext'? [-Wimplicit-function-declaration]
  348 |     next = (cf_filter_filter_in_chain_t *)cupsArrayGetNext(filter_chain);
      |                                           ^~~~~~~~~~~~~~~~
      |                                           cupsArrayNext
cupsfilters/universal.c:348:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  348 |     next = (cf_filter_filter_in_chain_t *)cupsArrayGetNext(filter_chain);
      |            ^
make[2]: *** [Makefile:1929: cupsfilters/libcupsfilters_la-universal.lo] Error 1

@kloczek
Copy link
Author

kloczek commented Feb 21, 2024

cups version: 2.4.7.

@kloczek
Copy link
Author

kloczek commented Apr 24, 2024

gentle ping .. any update? 🤔

@kloczek kloczek changed the title 2.0.0 + maater(48ff575a): build fails 2.0.0 + master(48ff575a): build fails Sep 14, 2024
@kloczek
Copy link
Author

kloczek commented Sep 14, 2024

Any update? 🤔

@kloczek
Copy link
Author

kloczek commented Sep 15, 2024

Closing.
It was my fault in on of my patches.

@kloczek kloczek closed this as completed Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant