Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

FTBFS with CUPS 2.3.0 #476

Closed
rafaeldtinoco opened this issue Jan 14, 2020 · 3 comments
Closed

FTBFS with CUPS 2.3.0 #476

rafaeldtinoco opened this issue Jan 14, 2020 · 3 comments

Comments

@rafaeldtinoco
Copy link

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
Copy link
Author

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

  • Removed support for -D_IPP_PRIVATE_STRUCTURES=1 developer cheat - the IPP accessor functions should be used instead.

@rafaeldtinoco
Copy link
Author

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
Copy link
Author

I meant:

#477

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant