Bug 15904

Summary: squashfs compilation error
Product: buildroot Reporter: Volodymyr <volodymyr.makhitko>
Component: OtherAssignee: unassigned
Status: RESOLVED MOVED    
Severity: blocker CC: buildroot, yann.morin.1998
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

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!