Project

General

Profile

Bug #12403

Upgrading `libcups` breaks compilation.

Added by Stefan Klinger 4 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
11/12/2018
Due date:
% Done:

0%

Affected Version:
git master branch
System:
other GNU/Linux
bitness:
64-bit
hardware architecture:
amd64/x86

Description

Upgrading `libcups` from 2.2.8-3 to 2.2.9-1 on Arch Linux breaks compilation. During the build, a lot of deprecation warnings are produced

[...]
[ 45%] Building C object src/CMakeFiles/lib_darktable.dir/lua/widget/widget.c.o
[ 45%] Building C object src/CMakeFiles/lib_darktable.dir/common/cups_print.c.o
[ 45%] Building C object src/CMakeFiles/lib_darktable.dir/common/printprof.c.o
/usr/local/nobackup/sk/source/dt/src/common/cups_print.c: In function ‘dt_get_printer_info’:
/usr/local/nobackup/sk/source/dt/src/common/cups_print.c:56:5: error: ‘cupsGetPPD’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Werror=deprecated-declarations]
     const char *PPDFile = cupsGetPPD (printer_name);
     ^~~~~
In file included from /usr/local/nobackup/sk/source/dt/src/common/cups_print.c:20:
/usr/include/cups/ppd.h:366:20: note: declared here
 extern const char *cupsGetPPD(const char *name) _PPD_DEPRECATED;
                    ^~~~~~~~~~
/usr/local/nobackup/sk/source/dt/src/common/cups_print.c:58:5: error: ‘ppdOpenFile’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Werror=deprecated-declarations]
     ppd_file_t *ppd = ppdOpenFile(PPDFile);
     ^~~~~~~~~~
In file included from /usr/local/nobackup/sk/source/dt/src/common/cups_print.c:20:
/usr/include/cups/ppd.h:397:20: note: declared here
 extern ppd_file_t *ppdOpenFile(const char *filename) _PPD_DEPRECATED;
[...]

before the built ultimately fails

[...]
cc1: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/lib_darktable.dir/build.make:2027: src/CMakeFiles/lib_darktable.dir/common/cups_print.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1474: src/CMakeFiles/lib_darktable.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

As a workaround, downgrade `libcups`.

Also available in: Atom PDF