Re: [Printing-architecture] PAPPL 1.2rc1 (Supply levels)

Michael Sweet <[email protected]>
Newsgroups dev.linux.lists.printing-architecture
Message-ID <[email protected]>
James,

What version of CUPS do you have on that system?  The change from HTTP_STATUS_REDIRECT_TEMPORARILY to HTTP_STATUS_FOUND happened back in 2017 (so CUPS 2.2/2.3 timeframe), so I might need to add some conditional code to still support the old name since I'm using the new name to avoid future breakage (current CUPS has a define from the old name to the new one...)  The hunan readable name changed when they updated the HTTP RFCs, and we *do* try to keep those in sync for sanity's sake... :(

A Github issue would be appreciated so that I don't forget this... :)

	https://github.com/michaelrsweet/pappl/issues

Thanks!


> On May 16, 2022, at 10:35 AM, James Cloos <[email protected]> wrote:
> ...
> it worked well for socket: on one of my boxen, but on my main
> workstation i got:
> 
> Compiling printer-webif.c...
> printer-webif.c: In function '_papplPrinterWebCancelAllJobs':
> printer-webif.c:64:42: error: 'HTTP_STATUS_FOUND' undeclared (first use in this function); did you mean 'HTTP_STATUS_GONE'?
>   64 |       papplClientRespondRedirect(client, HTTP_STATUS_FOUND, path);
>      |                                          ^~~~~~~~~~~~~~~~~
>      |                                          HTTP_STATUS_GONE
> printer-webif.c:64:42: note: each undeclared identifier is reported only once for each function it appears in
> printer-webif.c: In function '_papplPrinterWebCancelJob':
> printer-webif.c:169:44: error: 'HTTP_STATUS_FOUND' undeclared (first use in this function); did you mean 'HTTP_STATUS_GONE'?
>  169 |         papplClientRespondRedirect(client, HTTP_STATUS_FOUND, path);
>      |                                            ^~~~~~~~~~~~~~~~~
>      |                                            HTTP_STATUS_GONE
> printer-webif.c: In function '_papplPrinterWebDelete':
> printer-webif.c:784:42: error: 'HTTP_STATUS_FOUND' undeclared (first use in this function); did you mean 'HTTP_STATUS_GONE'?
>  784 |       papplClientRespondRedirect(client, HTTP_STATUS_FOUND, "/");
>      |                                          ^~~~~~~~~~~~~~~~~
>      |                                          HTTP_STATUS_GONE
> printer-webif.c: In function '_papplPrinterWebReprintJob':
> printer-webif.c:1414:50: error: 'HTTP_STATUS_FOUND' undeclared (first use in this function); did you mean 'HTTP_STATUS_GONE'?
> 1414 |               papplClientRespondRedirect(client, HTTP_STATUS_FOUND, path);
>      |                                                  ^~~~~~~~~~~~~~~~~
>      |                                                  HTTP_STATUS_GONE
> make[1]: *** [../Makedefs:75: printer-webif.o] Error 1
> make: *** [Makefile:28: all] Error 1
> 
> 
> make -k showed a number of similar issues in other files.
> 
> obviously some dependency is too old; where does HTTP_STATUS_FOUND come
> from?
> 
> in any case it looks like configure fail to notice that said dep is too
> old.
> 
> -JimC
> --
> James Cloos <[email protected]>         OpenPGP: 0x997A9F17ED7DAEA6
> 
> 

________________________
Michael Sweet
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEkIbDzcZsP1Y8+PQFvmfHXsgfMkQFAmKCY7oACgkQvmfHXsgf
MkTX3RAAqFDvG7U6icGI3wDwlrxlGvfVzTwXi7WBgF5hZBLtUdYw6LaE1dHCiOQh
KKsbKh5T8ysFHaGTsYexSmq/OJ2o/VhjX2WsAEpMSXSE1wMVJ0ZgPmU7YqPkwUsp
PGAVu06WA6GYIRWbP5/jPgcoRyWNvwdZTMhkUU+QMrKI8zehf8lfnRJN5RXZr4/E
Oculvrb20XZDULmw1VuJVs/vDjwwHFYANo104vTSgGnjmrma1+IQ53vXXP6f8DXZ
i4TQnnCMrGGtyn50M1Ds+7uWeC0B+2H6YxRH63HKtq2EM+uyP2//+ZWAzroBqMgS
nSLUtClLzi4LgC3CfqJQum+BzeIv06v0SBZx9z5Eu8s/z0JRHB/qQYhQUZw+EW4w
a1YoAQ5zVEP70kEM6MyyfIjtwGS0MNqDwIXuZQJU5gt8Y+7ISQ6Q2RKf1/cF9k9/
cpiaklfqIlWe0lsaeBr/rq78BJ2H2Z9WVVi7s+3LR+sSiFbssbtNuusXaH6rV9HV
5HvcZ0G2ha2ce+kpzoS7IK9x1TmaSDyxVv3OJ6quFe7U3oEUhzhR61DnzA2Vjog9
PbSULS1ZBZK6Xzbd8YqP6K0LlLvlULnA71sCyZBYVzK9iJ8mLDZnh3iF+EV4OIoi
WU//JWURKwfo80Pe3WrT2ZhHKTmWNFnDaBT+PqLLz5kr3tN9DMk=
=3LSm
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.