Closed rafaeldtinoco closed 3 years ago
This might happen because, at least from cups README.md file, from CUPS v2.3b4:
-D_IPP_PRIVATE_STRUCTURES=1
developer cheat - the IPP accessor functions should be used instead.I just heard this will be EOL soon. I'll probably include this (or similar) patches in Ubuntu until package is removed from the distro. Thank you!
Whenever trying to build latest version in repo with cups 2.3.0 the result is:
github.com/google/cloud-print-connector/cups
github.com/google/cloud-print-connector/cups
cgo-gcc-prolog: In function ‘_cgo_033c9b726dd2_Cfunc_cupsGetPPD3’: cgo-gcc-prolog:95:2: warning: ‘cupsGetPPD3’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] In file included from src/github.com/google/cloud-print-connector/cups/cups.h:15, from src/github.com/google/cloud-print-connector/cups/core.go:14: /usr/include/cups/ppd.h:360:22: note: declared here 360 | extern http_status_t cupsGetPPD3(http_t http, const char name, time_t modtime, char buffer, size_t bufsize) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | ^
~~github.com/google/cloud-print-connector/cups
cups.c: In function ‘getIPPRequestStatusCode’: cups.c:42:12: error: dereferencing pointer to incomplete type ‘ipp_t’ {aka ‘struct _ipp_s’} 42 | return ipp->request.status.status_code; | ^~ cups.c: In function ‘getAttributeDateValue’: cups.c:47:13: error: dereferencing pointer to incomplete type ‘ipp_attribute_t’ {aka ‘struct _ipp_attribute_s’} 47 | return attr->values[i].date; | ^~