Bug 15904 - squashfs compilation error
Summary: squashfs compilation error
Status: RESOLVED MOVED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 blocker
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-26 16:45 UTC by Volodymyr
Modified: 2024-06-15 15:24 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volodymyr 2023-12-26 16:45:50 UTC
Hi, 

Compilation error on the latest buildroot https://fossies.org/linux/privat/buildroot-2023.11.tar.xz/index_ap.html

Error: 

2023-12-26T17:40:55 mksquashfs.c: In function 'create_inode':
2023-12-26T17:40:55 mksquashfs.c:993:38: error: called object 'major' is not a function or function pointer
2023-12-26T17:40:55 993 |                 unsigned int major = major(buf->st_rdev);
2023-12-26T17:40:55 |                                      ^~~
2023-12-26T17:40:55 mksquashfs.c:993:30: note: declared here
2023-12-26T17:40:55 993 |                 unsigned int major = major(buf->st_rdev);
2023-12-26T17:40:55 |                              ^
2023-12-26T17:40:55 mksquashfs.c:994:38: error: called object 'minor' is not a function or function pointer
2023-12-26T17:40:55 994 |                 unsigned int minor = minor(buf->st_rdev);
2023-12-26T17:40:55 |                                      ^
2023-12-26T17:40:55 mksquashfs.c:994:30: note: declared here
2023-12-26T17:40:55 994 |                 unsigned int minor = minor(buf->st_rdev);
2023-12-26T17:40:55 |                              ^
2023-12-26T17:40:55 mksquashfs.c:1017:38: error: called object 'major' is not a function or function pointer
2023-12-26T17:40:55 1017 |                 unsigned int major = major(buf->st_rdev);
2023-12-26T17:40:55 |                                      ^
2023-12-26T17:40:55 mksquashfs.c:1017:30: note: declared here
2023-12-26T17:40:55 1017 |                 unsigned int major = major(buf->st_rdev);
2023-12-26T17:40:55 |                              ^
2023-12-26T17:40:55 mksquashfs.c:1018:38: error: called object 'minor' is not a function or function pointer
2023-12-26T17:40:55 1018 |                 unsigned int minor = minor(buf->st_rdev);
2023-12-26T17:40:55 |                                      ^~~
2023-12-26T17:40:55 mksquashfs.c:1018:30: note: declared here
2023-12-26T17:40:55 1018 |                 unsigned int minor = minor(buf->st_rdev);
2023-12-26T17:40:55 |
Comment 1 Peter Korsgaard 2024-01-10 09:50:53 UTC
Can you provide some more details, please? E.G. what is your .config, what Linux distribution are you compiling on, any local modifications, ..?
Comment 2 Yann E. MORIN 2024-06-15 15:24:53 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!