google / cloud-print-connector

Google Cloud Print Connector
BSD 3-Clause "New" or "Revised" License
765 stars 185 forks source link

FTBFS with CUPS 2.3.0 #476

Closed rafaeldtinoco closed 3 years ago

rafaeldtinoco commented 4 years ago

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; | ^~

rafaeldtinoco commented 4 years ago

This might happen because, at least from cups README.md file, from CUPS v2.3b4:

rafaeldtinoco commented 4 years ago

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!

rafaeldtinoco commented 4 years ago

I meant:

https://github.com/google/cloud-print-connector/pull/477