IgnorantGuru / spacefm

SpaceFM File Manager
http://ignorantguru.github.com/spacefm/
GNU General Public License v3.0
490 stars 72 forks source link

Compile error #769

Open rdd1569 opened 4 years ago

rdd1569 commented 4 years ago

Dist. Linux from Scratch - From tarball spacefm-1.0.6 I'm getting the below compile error: main.c: En la función ‘get_inode_tag’: main.c:189:42: error: declaración implícita de la función ‘major’ [-Werror=implicit-function-declaration] 189 | major( stat_buf.st_dev ), | ^~~~~ main.c:190:42: error: declaración implícita de la función ‘minor’ [-Werror=implicit-function-declaration] 190 | minor( stat_buf.st_dev ), | ^~~~~

bcHelix commented 4 years ago

Getting this as well.

bcHelix commented 4 years ago

Dist. Linux from Scratch - From tarball spacefm-1.0.6 I'm getting the below compile error: main.c: En la función ‘get_inode_tag’: main.c:189:42: error: declaración implícita de la función ‘major’ [-Werror=implicit-function-declaration] 189 | major( stat_buf.st_dev ), | ^~~~~ main.c:190:42: error: declaración implícita de la función ‘minor’ [-Werror=implicit-function-declaration] 190 | minor( stat_buf.st_dev ), | ^~~~~

I found a solution. Replace #include <sys/types.h> with #include <sys/sysmacros.h> in src/main.c

ncmprhnsbl commented 4 years ago

this #727 patch just adds #include <sys/sysmacros.h> rather than replace..