Error building OpenWRT in function create_inode

The following are the errors I got with option V=s

mksquashfs.c: In function 'create_inode':
mksquashfs.c:1372:24: error: called object 'major' is not a function or function pointer
 1372 |   unsigned int major = major(buf->st_rdev);
      |                        ^~~~~
mksquashfs.c:1372:16: note: declared here
 1372 |   unsigned int major = major(buf->st_rdev);
      |                ^~~~~
mksquashfs.c:1373:24: error: called object 'minor' is not a function or function pointer
 1373 |   unsigned int minor = minor(buf->st_rdev);
      |                        ^~~~~
mksquashfs.c:1373:16: note: declared here
 1373 |   unsigned int minor = minor(buf->st_rdev);
      |                ^~~~~
mksquashfs.c:1396:24: error: called object 'major' is not a function or function pointer
 1396 |   unsigned int major = major(buf->st_rdev);
      |                        ^~~~~
mksquashfs.c:1396:16: note: declared here
 1396 |   unsigned int major = major(buf->st_rdev);
      |                ^~~~~
mksquashfs.c:1397:24: error: called object 'minor' is not a function or function pointer
 1397 |   unsigned int minor = minor(buf->st_rdev);
      |                        ^~~~~
mksquashfs.c:1397:16: note: declared here
 1397 |   unsigned int minor = minor(buf->st_rdev);
      |                ^~~~~

patch the squashfs/sysmacros.patch file

Hello Zhanwwan,

long time since you gave feedback to this case. I am noop within this world of compiling and I droppted in this errors.
I need an old 14 openwrt version because is the latests supporting and old chipset and after several fixes and changes on several lib files I got finally in this error... But not sure how to patch sysmacros.patch file :frowning:
I saw I suggestion to install glibc-dev (build-essential) but I have already installed,
Any hint to do this patch? thank you in advance.

Me again, few hours later I found this link that helps to solve this problem
.
https://patchwork.ozlabs.org/project/buildroot/patch/20180825200751.28097-1-richard.kunze@web.de/

I found later some other similar ones.

Now I got new errors but... step by step. I wont give up :slight_smile: .