AppImage / AppImageKit

Package desktop applications as AppImages that run on common Linux-based operating systems, such as RHEL, CentOS, openSUSE, SLED, Ubuntu, Fedora, debian and derivatives. Join #AppImage on irc.libera.chat
http://appimage.org
Other
8.79k stars 563 forks source link

error in make #900

Open lexasub opened 5 years ago

lexasub commented 5 years ago
[ 16%] Performing build step for 'mksquashfs'
mksquashfs.c: В функции «create_inode»:
mksquashfs.c:996:24: ошибка: вызываемый объект «major» не является функцией или указателем на функцию
   unsigned int major = major(buf->st_rdev);
                        ^~~~~
mksquashfs.c:996:16: замечание: объявлено здесь
   unsigned int major = major(buf->st_rdev);
                ^~~~~
mksquashfs.c:997:24: ошибка: вызываемый объект «minor» не является функцией или указателем на функцию
   unsigned int minor = minor(buf->st_rdev);
                        ^~~~~
mksquashfs.c:997:16: замечание: объявлено здесь
   unsigned int minor = minor(buf->st_rdev);
                ^~~~~
mksquashfs.c:1020:24: ошибка: вызываемый объект «major» не является функцией или указателем на функцию
   unsigned int major = major(buf->st_rdev);
                        ^~~~~
mksquashfs.c:1020:16: замечание: объявлено здесь
   unsigned int major = major(buf->st_rdev);
                ^~~~~
mksquashfs.c:1021:24: ошибка: вызываемый объект «minor» не является функцией или указателем на функцию
   unsigned int minor = minor(buf->st_rdev);
                        ^~~~~
mksquashfs.c:1021:16: замечание: объявлено здесь
   unsigned int minor = minor(buf->st_rdev);
                ^~~~~
mksquashfs.c: В функции «dir_scan2»:
mksquashfs.c:3559:17: предупреждение: неявная декларация функции «makedev» [-Wimplicit-function-declaration]
   buf.st_rdev = makedev(pseudo_ent->dev->major,
                 ^~~~~~~
make[3]: *** [<встроенное>: mksquashfs.o] Ошибка 1
make[2]: *** [CMakeFiles/mksquashfs.dir/build.make:115: mksquashfs-prefix/src/mksquashfs-stamp/mksquashfs-build] Ошибка 2
make[1]: *** [CMakeFiles/Makefile2:937: CMakeFiles/mksquashfs.dir/all] Ошибка 2
make: *** [Makefile:163: all] Ошибка 2
TheAssassin commented 5 years ago

Please export LC_ALL=C LANGUAGE=C, then re-run and post the new log. None of us speaks the language in the log, and the command I posted will generate an English log.

probonopd commented 5 years ago

Which distribution and version did you get this error on @lexasub?

lexasub commented 5 years ago

Which distribution and version did you get this error on @lexasub?

arch

probonopd commented 5 years ago

Do you really need to build AppImageKit yourself @lexasub? The only recommended system to build AppImageKit on currently is CentOS 6, this is to maximize binary compatibility with older systems.

We are providing pre-built binaries of appimagetool, and most users are better off using those rather than trying to re-build from source. Are those not sufficient for your use case?

TheAssassin commented 5 years ago

If I can't get a log which I can't read, @lexasub, I can't help you. Please post an English log, or we'll have to close the issue.

lexasub commented 5 years ago

[ 16%] Performing configure step for 'mksquashfs' mksquashfs.c: In function ‘create_inode’: mksquashfs.c:996:24: error: called object ‘major’ is not a function or function pointer unsigned int major = major(buf->st_rdev); ^~~~~ mksquashfs.c:996:16: note: declared here unsigned int major = major(buf->st_rdev); ^~~~~ mksquashfs.c:997:24: error: called object ‘minor’ is not a function or function pointer unsigned int minor = minor(buf->st_rdev); ^~~~~ mksquashfs.c:997:16: note: declared here unsigned int minor = minor(buf->st_rdev); ^~~~~ mksquashfs.c:1020:24: error: called object ‘major’ is not a function or function pointer unsigned int major = major(buf->st_rdev); ^~~~~ mksquashfs.c:1020:16: note: declared here unsigned int major = major(buf->st_rdev); ^~~~~ mksquashfs.c:1021:24: error: called object ‘minor’ is not a function or function pointer unsigned int minor = minor(buf->st_rdev); ^~~~~ mksquashfs.c:1021:16: note: declared here unsigned int minor = minor(buf->st_rdev); ^~~~~ mksquashfs.c: In function ‘dir_scan2’: mksquashfs.c:3559:17: warning: implicit declaration of function ‘makedev’ [-Wimplicit-function-declaration] buf.st_rdev = makedev(pseudo_ent->dev->major, ^~~ make[3]: [: mksquashfs.o] Error 1 make[2]: [CMakeFiles/mksquashfs.dir/build.make:115: mksquashfs-prefix/src/mksquashfs-stamp/mksquashfs-build] Error 2 make[1]: [CMakeFiles/Makefile2:937: CMakeFiles/mksquashfs.dir/all] Error 2 make: [Makefile:163: all] Error 2

TheAssassin commented 5 years ago

Interesting log. I wonder if that is what we compile currently for our own builds... the code doesn't make sense at all (naming variables like methods...). Not sure how to fix this. Perhaps we need to force some certain C language level?

gpahlevanzadeh commented 5 years ago

I think if user uses squshfs-tool on OS as native, And maintainer of AppImage delete it from source, it will be solved. I have this problem on debian unstable.

probonopd commented 5 years ago

Have our patches been upstreamed @TheAssassin?