cups-filters: cups-filter/head built fails with latest qpdf/head; OK with last qpdf release, v8.4.2. qpdf API change?
Building cups-filters/head,
cd cups-filters/
git log | head
commit 56d8afe49592ced660d83b5d126a5a1cc0f4cbe7
Author: Till Kamppeter <till.kamppeter@gmail.com>
Date: Fri Jul 5 16:27:10 2019 +0200
cups-filters 1.25.1 Release
commit d6d86bee0171e9eb6e4051b63a531e161e955dd9
Author: Till Kamppeter <till.kamppeter@gmail.com>
Date: Fri Jul 5 16:12:52 2019 +0200
against qpdf/release-qpdf-8.4.2, works as intended. cups-filter pkgs build, install & exec – alongside cups/head – fine.
OTOH, switching dep to newest qpdf
- qpdf/release-qpdf-8.4.2
+ qpdf/master
with latest qpdf src, apparently after an API change,
cd qpdf/
git log | head
commit 8f06da75343a5e970ff7a6f275c319172e6292d0
Author: Thorsten Schöning <6223655+ams-tschoening@users.noreply.github.com>
Date: Wed Jul 3 19:34:02 2019 +0200
Change list to vector for outline helpers (fixes #297)
This change works around STL problems with Embarcadero C++ Builder
version 10.2, but std::vector is more common than std::list in qpdf,
and this is a relatively new API, so an API change is tolerable.
Thanks to Thorsten Schöning <6223655+ams-tschoening@users.noreply.github.com>
for the fix.
cups-filter build FAILs, after a bunch of deprecation warnings, at
...
[ 126s] filter/pdf.cxx:118:3: error: 'memcpy' was not declared in this scope
[ 126s] 118 | memcpy(stream_data->getBuffer(), buf, len);
[ 126s] | ^~~~~~
[ 126s] filter/pdf.cxx:28:1: note: 'memcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
The build log tail, pulled from the onling OBS builds at
https://build.opensuse.org/project/show/home:pgnd:PrintingNEXT
includes,
...
Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 1849 | fprintf(stderr, "DEBUG: %s on line %d.\n", ppdErrorString(status), linenum);
[ 124s] | ^~~~~~~
[ 124s] In file included from ./cupsfilters/colormanager.h:41,
[ 124s] from filter/rastertopclx.c:29:
[ 124s] /usr/include/cups/ppd.h:397:20: note: declared here
[ 124s] 397 | extern const char *ppdErrorString(ppd_status_t status) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 124s] | ^~~~~~~~~~~~~~
[ 124s] filter/common.c: In function 'SetCommonOptions':
[ 124s] filter/common.c:67:3: warning: 'ppdOpenFile' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 67 | ppd = ppdOpenFile(getenv("PPD"));
[ 124s] | ^~~
[ 124s] In file included from filter/common.h:19,
[ 124s] from filter/common.c:28:
[ 124s] /usr/include/cups/ppd.h:388:20: note: declared here
[ 124s] 388 | extern ppd_file_t *ppdOpenFile(const char *filename) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 124s] | ^~~~~~~~~~~
[ 124s] filter/common.c:69:3: warning: 'ppdMarkDefaults' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 69 | ppdMarkDefaults(ppd);
[ 124s] | ^~~~~~~~~~~~~~~
[ 124s] In file included from filter/common.h:19,
[ 124s] from filter/common.c:28:
[ 124s] /usr/include/cups/ppd.h:383:14: note: declared here
[ 124s] 383 | extern void ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 124s] | ^~~~~~~~~~~~~~~
[ 124s] filter/common.c:70:3: warning: 'cupsMarkOptions' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 70 | cupsMarkOptions(ppd, num_options, options);
[ 124s] | ^~~~~~~~~~~~~~~
[ 124s] In file included from filter/common.h:19,
[ 124s] from filter/common.c:28:
[ 124s] /usr/include/cups/ppd.h:361:13: note: declared here
[ 124s] 361 | extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 124s] | ^~~~~~~~~~~~~~~
[ 124s] filter/common.c:72:3: warning: 'ppdPageSize' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 72 | if ((pagesize = ppdPageSize(ppd, NULL)) != NULL)
[ 124s] | ^~
[ 124s] In file included from filter/common.h:19,
[ 124s] from filter/common.c:28:
[ 124s] /usr/include/cups/ppd.h:391:20: note: declared here
[ 124s] 391 | extern ppd_size_t *ppdPageSize(ppd_file_t *ppd, const char *name)
[ 124s] | ^~~~~~~~~~~
[ 124s] filter/common.c:303:3: warning: 'ppdIsMarked' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 303 | if (ppdIsMarked(ppd, "Duplex", "DuplexNoTumble") ||
[ 124s] | ^~
[ 124s] In file included from filter/common.h:19,
[ 124s] from filter/common.c:28:
[ 124s] /usr/include/cups/ppd.h:381:13: note: declared here
[ 124s] 381 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword,
[ 124s] | ^~~~~~~~~~~
[ 124s] filter/common.c:304:7: warning: 'ppdIsMarked' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 304 | ppdIsMarked(ppd, "Duplex", "DuplexTumble") ||
[ 124s] | ^~~~~~~~~~~
[ 124s] In file included from filter/common.h:19,
[ 124s] from filter/common.c:28:
[ 124s] /usr/include/cups/ppd.h:381:13: note: declared here
[ 124s] 381 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword,
[ 124s] | ^~~~~~~~~~~
[ 124s] filter/common.c:305:7: warning: 'ppdIsMarked' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 305 | ppdIsMarked(ppd, "JCLDuplex", "DuplexNoTumble") ||
[ 124s] | ^~~~~~~~~~~
[ 124s] In file included from filter/common.h:19,
[ 124s] from filter/common.c:28:
[ 124s] /usr/include/cups/ppd.h:381:13: note: declared here
[ 124s] 381 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword,
[ 124s] | ^~~~~~~~~~~
[ 124s] filter/common.c:306:7: warning: 'ppdIsMarked' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 306 | ppdIsMarked(ppd, "JCLDuplex", "DuplexTumble") ||
[ 124s] | ^~~~~~~~~~~
[ 124s] In file included from filter/common.h:19,
[ 124s] from filter/common.c:28:
[ 124s] /usr/include/cups/ppd.h:381:13: note: declared here
[ 124s] 381 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword,
[ 124s] | ^~~~~~~~~~~
[ 124s] filter/common.c:307:7: warning: 'ppdIsMarked' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 307 | ppdIsMarked(ppd, "EFDuplex", "DuplexNoTumble") ||
[ 124s] | ^~~~~~~~~~~
[ 124s] In file included from filter/common.h:19,
[ 124s] from filter/common.c:28:
[ 124s] /usr/include/cups/ppd.h:381:13: note: declared here
[ 124s] 381 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword,
[ 124s] | ^~~~~~~~~~~
[ 124s] filter/common.c:308:7: warning: 'ppdIsMarked' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 308 | ppdIsMarked(ppd, "EFDuplex", "DuplexTumble") ||
[ 124s] | ^~~~~~~~~~~
[ 124s] In file included from filter/common.h:19,
[ 124s] from filter/common.c:28:
[ 124s] /usr/include/cups/ppd.h:381:13: note: declared here
[ 124s] 381 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword,
[ 124s] | ^~~~~~~~~~~
[ 124s] filter/common.c:309:7: warning: 'ppdIsMarked' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 309 | ppdIsMarked(ppd, "KD03Duplex", "DuplexNoTumble") ||
[ 124s] | ^~~~~~~~~~~
[ 124s] In file included from filter/common.h:19,
[ 124s] from filter/common.c:28:
[ 124s] /usr/include/cups/ppd.h:381:13: note: declared here
[ 124s] 381 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword,
[ 124s] | ^~~~~~~~~~~
[ 124s] filter/common.c:310:7: warning: 'ppdIsMarked' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 310 | ppdIsMarked(ppd, "KD03Duplex", "DuplexTumble"))
[ 124s] | ^~~~~~~~~~~
[ 124s] In file included from filter/common.h:19,
[ 124s] from filter/common.c:28:
[ 124s] /usr/include/cups/ppd.h:381:13: note: declared here
[ 124s] 381 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword,
[ 124s] | ^~~~~~~~~~~
[ 124s] gcc -DHAVE_CONFIG_H -I. -D_PPD_DEPRECATED="" -I/usr/include/freetype2 -I./fontembed/ -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Wall -std=gnu11 -D_GNU_SOURCE -c -o texttopdf-pdfutils.o `test -f 'filter/pdfutils.c' || echo './'`filter/pdfutils.c
[ 124s] gcc -DHAVE_CONFIG_H -I. -D_PPD_DEPRECATED="" -I/usr/include/freetype2 -I./fontembed/ -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Wall -std=gnu11 -D_GNU_SOURCE -c -o texttopdf-textcommon.o `test -f 'filter/textcommon.c' || echo './'`filter/textcommon.c
[ 124s] gcc -DHAVE_CONFIG_H -I. -D_PPD_DEPRECATED="" -I/usr/include/freetype2 -I./fontembed/ -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Wall -std=gnu11 -D_GNU_SOURCE -c -o texttopdf-texttopdf.o `test -f 'filter/texttopdf.c' || echo './'`filter/texttopdf.c
[ 124s] filter/textcommon.c: In function 'TextMain':
[ 124s] filter/textcommon.c:1178:5: warning: 'ppdClose' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 1178 | ppdClose(ppd);
[ 124s] | ^~~~~~~~
[ 124s] In file included from filter/common.h:19,
[ 124s] from filter/textcommon.h:17,
[ 124s] from filter/textcommon.c:23:
[ 124s] /usr/include/cups/ppd.h:363:14: note: declared here
[ 124s] 363 | extern void ppdClose(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 124s] | ^~~~~~~~
[ 124s] g++ -DHAVE_CONFIG_H -I. -D_PPD_DEPRECATED="" -I./cupsfilters/ -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Wall -D_GNU_SOURCE -c -o rastertopdf-rastertopdf.o `test -f 'filter/rastertopdf.cpp' || echo './'`filter/rastertopdf.cpp
[ 124s] gcc -DHAVE_CONFIG_H -I. -D_PPD_DEPRECATED="" -I/usr/include/libpng16 -I/usr/include/freetype2 -I./fontembed/ -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Wall -std=gnu11 -D_GNU_SOURCE -c -o bannertopdf-banner.o `test -f 'filter/banner.c' || echo './'`filter/banner.c
[ 124s] gcc -DHAVE_CONFIG_H -I. -D_PPD_DEPRECATED="" -I/usr/include/libpng16 -I/usr/include/freetype2 -I./fontembed/ -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Wall -std=gnu11 -D_GNU_SOURCE -c -o bannertopdf-bannertopdf.o `test -f 'filter/bannertopdf.c' || echo './'`filter/bannertopdf.c
[ 124s] filter/bannertopdf.c: In function 'get_pagesize':
[ 124s] filter/bannertopdf.c:89:5: warning: 'ppdPageSize' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 89 | if (!ppd || !(pagesize = ppdPageSize(ppd, NULL)))
[ 124s] | ^~
[ 124s] In file included from filter/bannertopdf.c:32:
[ 124s] /usr/include/cups/ppd.h:391:20: note: declared here
[ 124s] 391 | extern ppd_size_t *ppdPageSize(ppd_file_t *ppd, const char *name)
[ 124s] | ^~~~~~~~~~~
[ 124s] filter/bannertopdf.c: In function 'duplex_marked':
[ 124s] filter/bannertopdf.c:157:8: warning: 'ppdIsMarked' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 157 | (ppdIsMarked(ppd, "Duplex", "DuplexNoTumble") ||
[ 124s] | ^
[ 124s] In file included from filter/bannertopdf.c:32:
[ 124s] /usr/include/cups/ppd.h:381:13: note: declared here
[ 124s] 381 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword,
[ 124s] | ^~~~~~~~~~~
[ 124s] filter/bannertopdf.c:158:9: warning: 'ppdIsMarked' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 158 | ppdIsMarked(ppd, "Duplex", "DuplexTumble") ||
[ 124s] | ^~~~~~~~~~~
[ 124s] In file included from filter/bannertopdf.c:32:
[ 124s] /usr/include/cups/ppd.h:381:13: note: declared here
[ 124s] 381 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword,
[ 124s] | ^~~~~~~~~~~
[ 124s] filter/bannertopdf.c:159:9: warning: 'ppdIsMarked' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 159 | ppdIsMarked(ppd, "JCLDuplex", "DuplexNoTumble") ||
[ 124s] | ^~~~~~~~~~~
[ 124s] In file included from filter/bannertopdf.c:32:
[ 124s] /usr/include/cups/ppd.h:381:13: note: declared here
[ 124s] 381 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword,
[ 124s] | ^~~~~~~~~~~
[ 124s] filter/bannertopdf.c:160:9: warning: 'ppdIsMarked' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 160 | ppdIsMarked(ppd, "JCLDuplex", "DuplexTumble") ||
[ 124s] | ^~~~~~~~~~~
[ 124s] In file included from filter/bannertopdf.c:32:
[ 124s] /usr/include/cups/ppd.h:381:13: note: declared here
[ 124s] 381 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword,
[ 124s] | ^~~~~~~~~~~
[ 124s] filter/bannertopdf.c:161:9: warning: 'ppdIsMarked' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 124s] 161 | ppdIsMarked(ppd, "EFDuplex", "DuplexNoTumble") ||
[ 124s] | ^~~~~~~~~~~
[ 124s] In file included from filter/bannertopdf.c:32:
[ 125s] /usr/include/cups/ppd.h:381:13: note: declared here
[ 125s] 381 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword,
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/bannertopdf.c:162:9: warning: 'ppdIsMarked' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 162 | ppdIsMarked(ppd, "EFDuplex", "DuplexTumble") ||
[ 125s] | ^~~~~~~~~~~
[ 125s] In file included from filter/bannertopdf.c:32:
[ 125s] /usr/include/cups/ppd.h:381:13: note: declared here
[ 125s] 381 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword,
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/bannertopdf.c:163:9: warning: 'ppdIsMarked' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 163 | ppdIsMarked(ppd, "KD03Duplex", "DuplexNoTumble") ||
[ 125s] | ^~~~~~~~~~~
[ 125s] In file included from filter/bannertopdf.c:32:
[ 125s] /usr/include/cups/ppd.h:381:13: note: declared here
[ 125s] 381 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword,
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/bannertopdf.c:164:9: warning: 'ppdIsMarked' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 164 | ppdIsMarked(ppd, "KD03Duplex", "DuplexTumble"))) ||
[ 125s] | ^~~~~~~~~~~
[ 125s] In file included from filter/bannertopdf.c:32:
[ 125s] /usr/include/cups/ppd.h:381:13: note: declared here
[ 125s] 381 | extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword,
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/bannertopdf.c: In function 'get_known_opts':
[ 125s] filter/bannertopdf.c:347:7: warning: 'ppdFindAttr' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 347 | (attr = ppdFindAttr(ppd, "FileVersion", NULL)) ?
[ 125s] | ^
[ 125s] In file included from filter/bannertopdf.c:32:
[ 125s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 125s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/bannertopdf.c: In function 'generate_banner_pdf':
[ 125s] filter/bannertopdf.c:450:19: warning: 'ppdFindAttr' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 450 | (attr = ppdFindAttr(ppd, "FileVersion", NULL)) ? attr->value : "");
[ 125s] | ^
[ 125s] In file included from filter/bannertopdf.c:32:
[ 125s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 125s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/bannertopdf.c: In function 'main':
[ 125s] filter/bannertopdf.c:547:5: warning: 'ppdOpenFile' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 547 | ppd = ppdOpenFile(getenv("PPD"));
[ 125s] | ^~~
[ 125s] In file included from filter/bannertopdf.c:32:
[ 125s] /usr/include/cups/ppd.h:388:20: note: declared here
[ 125s] 388 | extern ppd_file_t *ppdOpenFile(const char *filename) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/bannertopdf.c:553:7: warning: 'ppdMarkDefaults' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 553 | ppdMarkDefaults(ppd);
[ 125s] | ^~~~~~~~~~~~~~~
[ 125s] In file included from filter/bannertopdf.c:32:
[ 125s] /usr/include/cups/ppd.h:383:14: note: declared here
[ 125s] 383 | extern void ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~~~~~
[ 125s] filter/bannertopdf.c:554:7: warning: 'cupsMarkOptions' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 554 | cupsMarkOptions(ppd, noptions, options);
[ 125s] | ^~~~~~~~~~~~~~~
[ 125s] In file included from filter/bannertopdf.c:32:
[ 125s] /usr/include/cups/ppd.h:361:13: note: declared here
[ 125s] 361 | extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~~~~~
[ 125s] g++ -DHAVE_CONFIG_H -I. -D_PPD_DEPRECATED="" -I/usr/include/libpng16 -I/usr/include/freetype2 -I./fontembed/ -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Wall -D_GNU_SOURCE -c -o bannertopdf-pdf.o `test -f 'filter/pdf.cxx' || echo './'`filter/pdf.cxx
[ 125s] gcc -DHAVE_CONFIG_H -I. -D_PPD_DEPRECATED="" -I./cupsfilters/ -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Wall -std=gnu11 -D_GNU_SOURCE -c -o rastertops-rastertops.o `test -f 'filter/rastertops.c' || echo './'`filter/rastertops.c
[ 125s] filter/rastertops.c: In function 'main':
[ 125s] filter/rastertops.c:398:3: warning: 'ppdOpenFile' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 398 | ppd = ppdOpenFile(getenv("PPD"));
[ 125s] | ^~~
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertops.c:37:
[ 125s] /usr/include/cups/ppd.h:388:20: note: declared here
[ 125s] 388 | extern ppd_file_t *ppdOpenFile(const char *filename) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/rastertops.c:402:5: warning: 'ppdMarkDefaults' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 402 | ppdMarkDefaults(ppd);
[ 125s] | ^~~~~~~~~~~~~~~
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertops.c:37:
[ 125s] /usr/include/cups/ppd.h:383:14: note: declared here
[ 125s] 383 | extern void ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~~~~~
[ 125s] filter/rastertops.c:403:5: warning: 'cupsMarkOptions' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 403 | cupsMarkOptions(ppd, num_options, options);
[ 125s] | ^~~~~~~~~~~~~~~
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertops.c:37:
[ 125s] /usr/include/cups/ppd.h:361:13: note: declared here
[ 125s] 361 | extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~~~~~
[ 125s] filter/rastertops.c:411:5: warning: 'ppdLastError' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 411 | status = ppdLastError(&linenum);
[ 125s] | ^~~~~~
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertops.c:37:
[ 125s] /usr/include/cups/ppd.h:402:21: note: declared here
[ 125s] 402 | extern ppd_status_t ppdLastError(int *line) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~~
[ 125s] filter/rastertops.c:412:5: warning: 'ppdErrorString' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 412 | fprintf(stderr, "DEBUG: %s on line %d.\n", ppdErrorString(status), linenum);
[ 125s] | ^~~~~~~
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertops.c:37:
[ 125s] /usr/include/cups/ppd.h:397:20: note: declared here
[ 125s] 397 | extern const char *ppdErrorString(ppd_status_t status) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~~~~
[ 125s] g++ -DHAVE_CONFIG_H -I. -D_PPD_DEPRECATED="" -I/usr/include/libpng16 -I/usr/include/poppler/cpp -I/usr/include/poppler -I./cupsfilters/ -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Wall -D_GNU_SOURCE -c -o pdftoraster-pdftoraster.o `test -f 'filter/pdftoraster.cxx' || echo './'`filter/pdftoraster.cxx
[ 125s] filter/rastertopdf.cpp: In function 'int main(int, char**)':
[ 125s] filter/rastertopdf.cpp:1360:36: warning: 'ppd_file_t* ppdOpenFile(const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1360 | ppd = ppdOpenFile(getenv("PPD"));
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:388:20: note: declared here
[ 125s] 388 | extern ppd_file_t *ppdOpenFile(const char *filename) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1360:36: warning: 'ppd_file_t* ppdOpenFile(const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1360 | ppd = ppdOpenFile(getenv("PPD"));
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:388:20: note: declared here
[ 125s] 388 | extern ppd_file_t *ppdOpenFile(const char *filename) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1364:26: warning: 'void ppdMarkDefaults(ppd_file_t*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1364 | ppdMarkDefaults(ppd);
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:383:14: note: declared here
[ 125s] 383 | extern void ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1364:26: warning: 'void ppdMarkDefaults(ppd_file_t*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1364 | ppdMarkDefaults(ppd);
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:383:14: note: declared here
[ 125s] 383 | extern void ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1365:48: warning: 'int cupsMarkOptions(ppd_file_t*, int, cups_option_t*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1365 | cupsMarkOptions(ppd, num_options, options);
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:361:13: note: declared here
[ 125s] 361 | extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1365:48: warning: 'int cupsMarkOptions(ppd_file_t*, int, cups_option_t*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1365 | cupsMarkOptions(ppd, num_options, options);
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:361:13: note: declared here
[ 125s] 361 | extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1374:37: warning: 'ppd_status_t ppdLastError(int*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1374 | status = ppdLastError(&linenum);
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:402:21: note: declared here
[ 125s] 402 | extern ppd_status_t ppdLastError(int *line) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1374:37: warning: 'ppd_status_t ppdLastError(int*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1374 | status = ppdLastError(&linenum);
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:402:21: note: declared here
[ 125s] 402 | extern ppd_status_t ppdLastError(int *line) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1376:71: warning: 'const char* ppdErrorString(ppd_status_t)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1376 | fprintf(stderr, "DEBUG: %s on line %d.\n", ppdErrorString(status), linenum);
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:397:20: note: declared here
[ 125s] 397 | extern const char *ppdErrorString(ppd_status_t status) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1376:71: warning: 'const char* ppdErrorString(ppd_status_t)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1376 | fprintf(stderr, "DEBUG: %s on line %d.\n", ppdErrorString(status), linenum);
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:397:20: note: declared here
[ 125s] 397 | extern const char *ppdErrorString(ppd_status_t status) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 125s] | ^~~~~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1411:51: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1411 | if ((attr = ppdFindAttr(ppd, attr_name, NULL)) != NULL)
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 125s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1411:51: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1411 | if ((attr = ppdFindAttr(ppd, attr_name, NULL)) != NULL)
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 125s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1421:51: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1421 | if ((attr = ppdFindAttr(ppd, attr_name, NULL)) != NULL)
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 125s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1421:51: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1421 | if ((attr = ppdF[ 99.175874] serial8250: too much work for irq4
[ 125s] indAttr(ppd, attr_name, NULL)) != NULL)
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 125s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1433:51: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1433 | if ((attr = ppdFindAttr(ppd, attr_name, NULL)) != NULL)
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 125s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1433:51: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1433 | if ((attr = ppdFindAttr(ppd, attr_name, NULL)) != NULL)
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 125s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1441:51: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1441 | if ((attr = ppdFindAttr(ppd, attr_name, NULL)) != NULL)
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 125s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1441:51: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1441 | if ((attr = ppdFindAttr(ppd, attr_name, NULL)) != NULL)
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 125s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1449:51: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1449 | if ((attr = ppdFindAttr(ppd, attr_name, NULL)) != NULL)
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 125s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1449:51: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1449 | if ((attr = ppdFindAttr(ppd, attr_name, NULL)) != NULL)
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 125s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1457:51: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1457 | if ((attr = ppdFindAttr(ppd, attr_name, NULL)) != NULL)
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 125s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 125s] | ^~~~~~~~~~~
[ 125s] filter/rastertopdf.cpp:1457:51: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 125s] 1457 | if ((attr = ppdFindAttr(ppd, attr_name, NULL)) != NULL)
[ 125s] | ^
[ 125s] In file included from ./cupsfilters/colormanager.h:41,
[ 125s] from filter/rastertopdf.cpp:36:
[ 125s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 125s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 125s] | ^~~~~~~~~~~
[ 125s] gcc -DHAVE_CONFIG_H -I. -D_PPD_DEPRECATED="" -I./cupsfilters/ -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Wall -std=gnu11 -D_GNU_SOURCE -c -o gstoraster-gstoraster.o `test -f 'filter/gstoraster.c' || echo './'`filter/gstoraster.c
[ 126s] filter/pdf.cxx: In function 'void pdf_prepend_stream(pdf_t*, unsigned int, const char*, size_t)':
[ 126s] filter/pdf.cxx:118:3: error: 'memcpy' was not declared in this scope
[ 126s] 118 | memcpy(stream_data->getBuffer(), buf, len);
[ 126s] | ^~~~~~
[ 126s] filter/pdf.cxx:28:1: note: 'memcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
[ 126s] 27 | #include <qpdf/QPDFPageDocumentHelper.hh>
[ 126s] +++ |+#include <cstring>
[ 126s] 28 |
[ 126s] filter/pdf.cxx: In function 'std::string lookup_opt(opt_t*, const string&)':
[ 126s] filter/pdf.cxx:336:18: error: 'strcmp' was not declared in this scope
[ 126s] 336 | if ( strcmp(opt->key, key.c_str()) == 0 ) {
[ 126s] | ^~~~~~
[ 126s] filter/pdf.cxx:336:18: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
[ 126s] filter/gstoraster.c: In function 'main':
[ 126s] filter/gstoraster.c:649:5: warning: 'ppdOpenFile' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 649 | if ((ppd = ppdOpenFile(t)) == NULL) {
[ 126s] | ^~
[ 126s] In file included from ./cupsfilters/colormanager.h:41,
[ 126s] from filter/gstoraster.c:45:
[ 126s] /usr/include/cups/ppd.h:388:20: note: declared here
[ 126s] 388 | extern ppd_file_t *ppdOpenFile(const char *filename) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/gstoraster.c:654:5: warning: 'ppdMarkDefaults' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 654 | ppdMarkDefaults (ppd);
[ 126s] | ^~~~~~~~~~~~~~~
[ 126s] In file included from ./cupsfilters/colormanager.h:41,
[ 126s] from filter/gstoraster.c:45:
[ 126s] /usr/include/cups/ppd.h:383:14: note: declared here
[ 126s] 383 | extern void ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 126s] | ^~~~~~~~~~~~~~~
[ 126s] filter/gstoraster.c:655:5: warning: 'cupsMarkOptions' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 655 | cupsMarkOptions (ppd, num_options, options);
[ 126s] | ^~~~~~~~~~~~~~~
[ 126s] In file included from ./cupsfilters/colormanager.h:41,
[ 126s] from filter/gstoraster.c:45:
[ 126s] /usr/include/cups/ppd.h:361:13: note: declared here
[ 126s] 361 | extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 126s] | ^~~~~~~~~~~~~~~
[ 126s] filter/gstoraster.c:770:5: warning: 'cupsRasterInterpretPPD' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 770 | cupsRasterInterpretPPD(&h,ppd,num_options,options,0);
[ 126s] | ^~~~~~~~~~~~~~~~~~~~~~
[ 126s] In file included from ./cupsfilters/colormanager.h:41,
[ 126s] from filter/gstoraster.c:45:
[ 126s] /usr/include/cups/ppd.h:408:13: note: declared here
[ 126s] 408 | extern int cupsRasterInterpretPPD(cups_page_header2_t *h,
[ 126s] | ^~~~~~~~~~~~~~~~~~~~~~
[ 126s] filter/gstoraster.c:774:7: warning: 'ppdFindAttr' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 774 | if ((attr = ppdFindAttr(ppd,"PWGRaster",0)) != 0 &&
[ 126s] | ^~
[ 126s] In file included from ./cupsfilters/colormanager.h:41,
[ 126s] from filter/gstoraster.c:45:
[ 126s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 126s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/gstoraster.c:785:7: warning: 'ppdFindAttr' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 785 | if ((attr = ppdFindAttr(ppd,"ColorDevice",0)) != 0 &&
[ 126s] | ^~
[ 126s] In file included from ./cupsfilters/colormanager.h:41,
[ 126s] from filter/gstoraster.c:45:
[ 126s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 126s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/gstoraster.c:819:5: warning: 'ppdFindAttr' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 819 | if (ppd && (attr = ppdFindAttr(ppd, "DefaultResolution", 0)) != NULL) {
[ 126s] | ^~
[ 126s] In file included from ./cupsfilters/colormanager.h:41,
[ 126s] from filter/gstoraster.c:45:
[ 126s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 126s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/gstoraster.c:891:8: warning: 'ppdFindAttr' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 891 | ppd && (attr = ppdFindAttr(ppd,"DefaultCenterOfPixel", NULL)) != NULL &&
[ 126s] | ^~~
[ 126s] In file included from ./cupsfilters/colormanager.h:41,
[ 126s] from filter/gstoraster.c:45:
[ 126s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 126s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/gstoraster.c:928:5: warning: 'ppdClose' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 928 | ppdClose(ppd);
[ 126s] | ^~~~~~~~
[ 126s] In file included from ./cupsfilters/colormanager.h:41,
[ 126s] from filter/gstoraster.c:45:
[ 126s] /usr/include/cups/ppd.h:363:14: note: declared here
[ 126s] 363 | extern void ppdClose(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 126s] | ^~~~~~~~
[ 126s] make[1]: *** [Makefile:3818: bannertopdf-pdf.o] Error 1
[ 126s] make[1]: *** Waiting for unfinished jobs....
[ 126s] filter/pdftoraster.cxx: In function 'void handleRqeuiresPageRegion()':
[ 126s] filter/pdftoraster.cxx:303:35: warning: 'ppd_size_t* ppdPageSize(ppd_file_t*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 303 | if ((size = ppdPageSize(ppd,NULL)) == NULL) return;
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:391:20: note: declared here
[ 126s] 391 | extern ppd_size_t *ppdPageSize(ppd_file_t *ppd, const char *name)
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:303:35: warning: 'ppd_size_t* ppdPageSize(ppd_file_t*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 303 | if ((size = ppdPageSize(ppd,NULL)) == NULL) return;
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:391:20: note: declared here
[ 126s] 391 | extern ppd_size_t *ppdPageSize(ppd_file_t *ppd, const char *name)
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:304:44: warning: 'ppd_choice_t* ppdFindMarkedChoice(ppd_file_t*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 304 | mf = ppdFindMarkedChoice(ppd,"ManualFeed");
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:376:22: note: declared here
[ 126s] 376 | extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd,
[ 126s] | ^~~~~~~~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:304:44: warning: 'ppd_choice_t* ppdFindMarkedChoice(ppd_file_t*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 304 | mf = ppdFindMarkedChoice(ppd,"ManualFeed");
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:376:22: note: declared here
[ 126s] 376 | extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd,
[ 126s] | ^~~~~~~~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:305:48: warning: 'ppd_choice_t* ppdFindMarkedChoice(ppd_file_t*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 305 | if ((is = ppdFindMarkedChoice(ppd,"InputSlot")) != NULL) {
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:376:22: note: declared here
[ 126s] 376 | extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd,
[ 126s] | ^~~~~~~~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:305:48: warning: 'ppd_choice_t* ppdFindMarkedChoice(ppd_file_t*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 305 | if ((is = ppdFindMarkedChoice(ppd,"InputSlot")) != NULL) {
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:376:22: note: declared here
[ 126s] 376 | extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd,
[ 126s] | ^~~~~~~~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:306:63: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 306 | rregions = ppdFindAttr(ppd,"RequiresPageRegion",is->choice);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 126s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:306:63: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 306 | rregions = ppdFindAttr(ppd,"RequiresPageRegion",is->choice);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 126s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:309:58: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 309 | rregions = ppdFindAttr(ppd,"RequiresPageRegion","All");
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 126s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:309:58: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 309 | rregions = ppdFindAttr(ppd,"RequiresPageRegion","All");
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 126s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:315:44: warning: 'int ppdMarkOption(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 315 | ppdMarkOption(ppd,"PageSize",size->name);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:384:13: note: declared here
[ 126s] 384 | extern int ppdMarkOption(ppd_file_t *ppd, const char *keyword,
[ 126s] | ^~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:315:44: warning: 'int ppdMarkOption(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 315 | ppdMarkOption(ppd,"PageSize",size->name);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:384:13: note: declared here
[ 126s] 384 | extern int ppdMarkOption(ppd_file_t *ppd, const char *keyword,
[ 126s] | ^~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:318:46: warning: 'int ppdMarkOption(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 318 | ppdMarkOption(ppd,"PageRegion",size->name);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:384:13: note: declared here
[ 126s] 384 | extern int ppdMarkOption(ppd_file_t *ppd, const char *keyword,
[ 126s] | ^~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:318:46: warning: 'int ppdMarkOption(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 318 | ppdMarkOption(ppd,"PageRegion",size->name);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:384:13: note: declared here
[ 126s] 384 | extern int ppdMarkOption(ppd_file_t *ppd, const char *keyword,
[ 126s] | ^~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:322:51: warning: 'ppd_choice_t* ppdFindMarkedChoice(ppd_file_t*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 322 | if ((page = ppdFindMarkedChoice(ppd,"PageSize")) != NULL) {
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:376:22: note: declared here
[ 126s] 376 | extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd,
[ 126s] | ^~~~~~~~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:322:51: warning: 'ppd_choice_t* ppdFindMarkedChoice(ppd_file_t*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 322 | if ((page = ppdFindMarkedChoice(ppd,"PageSize")) != NULL) {
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:376:22: note: declared here
[ 126s] 376 | extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd,
[ 126s] | ^~~~~~~~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:326:53: warning: 'ppd_choice_t* ppdFindMarkedChoice(ppd_file_t*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 326 | if ((page = ppdFindMarkedChoice(ppd,"PageRegion")) != NULL) {
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:376:22: note: declared here
[ 126s] 376 | extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd,
[ 126s] | ^~~~~~~~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:326:53: warning: 'ppd_choice_t* ppdFindMarkedChoice(ppd_file_t*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 326 | if ((page = ppdFindMarkedChoice(ppd,"PageRegion")) != NULL) {
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:376:22: note: declared here
[ 126s] 376 | extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd,
[ 126s] | ^~~~~~~~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx: In function 'void parseOpts(int, char**)':
[ 126s] filter/pdftoraster.cxx:353:34: warning: 'ppd_file_t* ppdOpenFile(const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 353 | ppd = ppdOpenFile(getenv("PPD"));
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:388:20: note: declared here
[ 126s] 388 | extern ppd_file_t *ppdOpenFile(const char *filename) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:353:34: warning: 'ppd_file_t* ppdOpenFile(const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 353 | ppd = ppdOpenFile(getenv("PPD"));
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:388:20: note: declared here
[ 126s] 388 | extern ppd_file_t *ppdOpenFile(const char *filename) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:357:24: warning: 'void ppdMarkDefaults(ppd_file_t*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 357 | ppdMarkDefaults(ppd);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:383:14: note: declared here
[ 126s] 383 | extern void ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 126s] | ^~~~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:357:24: warning: 'void ppdMarkDefaults(ppd_file_t*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 357 | ppdMarkDefaults(ppd);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:383:14: note: declared here
[ 126s] 383 | extern void ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 126s] | ^~~~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:361:44: warning: 'int cupsMarkOptions(ppd_file_t*, int, cups_option_t*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 361 | cupsMarkOptions(ppd,num_options,options);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:361:13: note: declared here
[ 126s] 361 | extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 126s] | ^~~~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:361:44: warning: 'int cupsMarkOptions(ppd_file_t*, int, cups_option_t*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 361 | cupsMarkOptions(ppd,num_options,options);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:361:13: note: declared here
[ 126s] 361 | extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 126s] | ^~~~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:363:61: warning: 'int cupsRasterInterpretPPD(cups_page_header2_t*, ppd_file_t*, int, cups_option_t*, cups_interpret_cb_t)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 363 | cupsRasterInterpretPPD(&header,ppd,num_options,options,0);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:408:13: note: declared here
[ 126s] 408 | extern int cupsRasterInterpretPPD(cups_page_header2_t *h,
[ 126s] | ^~~~~~~~~~~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:363:61: warning: 'int cupsRasterInterpretPPD(cups_page_header2_t*, ppd_file_t*, int, cups_option_t*, cups_interpret_cb_t)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 363 | cupsRasterInterpretPPD(&header,ppd,num_options,options,0);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:408:13: note: declared here
[ 126s] 408 | extern int cupsRasterInterpretPPD(cups_page_header2_t *h,
[ 126s] | ^~~~~~~~~~~~~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:364:61: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 364 | attr = ppdFindAttr(ppd,"pdftorasterRenderingIntent",NULL);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 126s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:364:61: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 364 | attr = ppdFindAttr(ppd,"pdftorasterRenderingIntent",NULL);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 126s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:384:49: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 384 | attr = ppdFindAttr(ppd,"cupsBackSide",NULL);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 126s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:384:49: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 384 | attr = ppdFindAttr(ppd,"cupsBackSide",NULL);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 126s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:392:66: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 392 | attr = ppdFindAttr(ppd,"APDuplexRequiresFlippedMargin",NULL);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 126s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:392:66: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 392 | attr = ppdFindAttr(ppd,"APDuplexRequiresFlippedMargin",NULL);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 126s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:442:46: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 442 | if ((attr = ppdFindAttr(ppd,"PWGRaster",0)) != 0 &&
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 126s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx:442:46: warning: 'ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 442 | if ((attr = ppdFindAttr(ppd,"PWGRaster",0)) != 0 &&
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:398:20: note: declared here
[ 126s] 398 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name,
[ 126s] | ^~~~~~~~~~~
[ 126s] filter/pdftoraster.cxx: In function 'int main(int, char**)':
[ 126s] filter/pdftoraster.cxx:2082:17: warning: 'void ppdClose(ppd_file_t*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 2082 | ppdClose(ppd);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:363:14: note: declared here
[ 126s] 363 | extern void ppdClose(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 126s] | ^~~~~~~~
[ 126s] filter/pdftoraster.cxx:2082:17: warning: 'void ppdClose(ppd_file_t*)' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
[ 126s] 2082 | ppdClose(ppd);
[ 126s] | ^
[ 126s] In file included from filter/pdftoraster.cxx:44:
[ 126s] /usr/include/cups/ppd.h:363:14: note: declared here
[ 126s] 363 | extern void ppdClose(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
[ 126s] | ^~~~~~~~
[ 129s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/cups-filters-999.git.20190705.56d8afe4'
[ 129s] make: *** [Makefile:1867: all] Error 2
[ 129s] error: Bad exit status from /var/tmp/rpm-tmp.dURztg (%build)
[ 129s]
[ 129s]
[ 129s] RPM build errors:
[ 129s] Bad exit status from /var/tmp/rpm-tmp.dURztg (%build)
[ 129s]
[ 129s] cloud122 failed "build cups-filters.spec" at Sun Jul 14 00:39:17 UTC 2019.
[ 129s]
[ 129s] ### VM INTERACTION START ###
[ 132s] [ 105.468930] sysrq: SysRq : Power Off
[ 132s] [ 105.472207] reboot: Power down
[ 140s] ### VM INTERACTION END ###
[ 140s]
[ 140s] cloud122 failed "build cups-filters.spec" at Sun Jul 14 00:39:29 UTC 2019.
[ 140s]
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (9 by maintainers)
@jberkenbilt, thank you very much. I have added the missing
#include <cstring>line to the pdf.cxx file, commit 1878ecd2e.Literally all you need to do is to add
#include <cstring>to pdf.cxx. More likely than not, you were inadvertently relying on some qpdf header file to include it for you. This kind of problem comes along for the ride when you use C++ since it lacks any kind of modern dependency system. The compiler error should have told you this, but apparently there’s some issue with the compiler because the error message actually fails to tell you which header to include. Anyway, this change would be safe with any version of qpdf. There is no qpdf issue here.As this is caused by a not yet completed version of QPDF and not by the currently released QPDF I am closing this bug report. Please re-open when it still happens with released QPDF 9.0.0.