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

Hurd build fails: ./src/bootlogd.c:358: undefined reference to `major' #7

Closed
markhindley opened this issue Apr 16, 2022 · 5 comments
Closed

Comments

@markhindley
Copy link

markhindley commented Apr 16, 2022

Build of 3.03 on Hurd fails with undefined references to major and minor.

Debian Hurd i386 build log.

A quick look suggests that src/bootlogd.c #include <sys/sysmacros.h> is only within #ifdef linux, so those macros are not defined on Hurd.

Mark

@slicer69
Copy link
Owner

Thanks for letting me know. Could you check to see if bootlogd compiles on Hurd if sys/sysmarcos.h is included? If so this will be an easy fix. On the other hand, if the macros aren't defined at all on Hurd then we may need to get a more involved compatibility fix.

@markhindley
Copy link
Author

markhindley commented Apr 16, 2022 via email

@slicer69
Copy link
Owner

I've applied the change, using the "if defined linux || GNU" approach. Seems to be working, at least on Linux. Please let me know if the 3.04 branch I just pushed builds on Hurd?

@markhindley
Copy link
Author

markhindley commented Apr 17, 2022 via email

@slicer69
Copy link
Owner

Great, I'm going to mark this as fixed and the change will be in the next version.

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

No branches or pull requests

2 participants