xerub / img4lib

image4 vfs
336 stars 99 forks source link

Build fail on Centos with glibc-headers-2.17-292.el7.x86_64 #9

Open timonline opened 4 years ago

timonline commented 4 years ago
~/Downloads/playground/img4lib$ make
gcc -o img4.o -Wall -W -pedantic -Wno-variadic-macros -Wno-multichar -Wno-four-char-constants -Wno-unused-parameter -O2 -I. -g -DiOS10 -DDER_MULTIBYTE_TAGS=1 -DDER_TAG_SIZE=8 -D__unused="__attribute__((unused))" -Ilzfse/src -Wno-deprecated-declarations -c img4.c
In file included from /usr/include/fcntl.h:77:0,
                 from img4.c:4:
/usr/include/bits/stat.h:106:31: error: expected identifier or ‘(’ before ‘[’ token
     __syscall_slong_t __unused[3];
                               ^
xerub commented 4 years ago

try removing -D__unused lines from the Makefiles. iirc, those defines were added to avoid editing some files (oids.c) as my compiler didnt' have it back then.