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

error: 'mallinfo_time' undeclared #5051

Closed
rohieb opened this issue Jul 9, 2017 · 2 comments
Closed

error: 'mallinfo_time' undeclared #5051

rohieb opened this issue Jul 9, 2017 · 2 comments
Assignees

Comments

@rohieb
Copy link
Contributor

rohieb commented Jul 9, 2017

Building with ./configure --enable-mallinfo currently fails in scheduler/main.c:

main.c: In function 'select_timeout':
main.c:1760:39: error: 'mallinfo_time' undeclared (first use in this function)
   if (LogLevel >= CUPSD_LOG_DEBUG && (mallinfo_time + 60) < timeout)
                                       ^

A short git bisect shows that the corresponding declaration of mallinfo_time was removed or renamed in 5bd77a7 without further comment (probably lost in git-to-svn migration).

@michaelrsweet
Copy link
Collaborator

OK, looks like the implementation was changed to only report this once a minute, but not to wake up for it. Fix is to not set the select timeout based on mallinfo_time anymore...

[master 13be945] Fix a build issue with --enable-mallinfo (Issue #5051)

@rohieb
Copy link
Contributor Author

rohieb commented Jul 19, 2017

Thank you!

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

No branches or pull requests

2 participants