Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error with Ubuntu 16.04 #30

Closed
hudongcheng opened this issue Mar 31, 2017 · 3 comments
Closed

Build error with Ubuntu 16.04 #30

hudongcheng opened this issue Mar 31, 2017 · 3 comments
Assignees
Labels

Comments

@hudongcheng
Copy link

When build in Ubuntu 16.04, it ends up with errors:

Making all in cups...
Making all in server...
Compiling client.c...
client.c: In function ‘show_media’:
client.c:1675:36: error: conversion to ‘size_t {aka long unsigned int}’ from ‘int’ may change the sign of the result [-Werror=sign-conversion]
       memcpy(tray_str, readysystem_tray, tray_len);
                                    ^
client.c: In function ‘show_supplies’:
client.c:1951:39: error: convsystemersion to ‘size_t {aka long unsigned int}’ from ‘int’ may change the sign of the result [-Werror=sign-conversion]
     memcpy(supply_text, supply_value, supply_len);
                                       ^
client.c: At top level:
cc1: error: unrecognized command line option ‘-Wno-tautological-compare’ [-Werror]
cc1: all warnings being treated as errors
../Makedefs:141: recipe for target 'client.o' failed
make[1]: *** [client.o] Error 1
Makefile:29: recipe for target 'all' failed
make: *** [all] Error 1
@michaelrsweet
Copy link
Contributor

Please do a pull and/or fresh clone. I am unable to reproduce.

@michaelrsweet michaelrsweet self-assigned this Apr 5, 2017
@hudongcheng
Copy link
Author

hudongcheng commented Apr 10, 2017

I build on a fresh clone. It has the same issue.

@michaelrsweet
Copy link
Contributor

OK, I was thrown off by the code fragment which does not exist in TOT; fixes committed in:

[master d9ffd18] Eliminate compiler warning (which got promoted to an error) on Linux (Issue #30)

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

No branches or pull requests

2 participants