0.49.D001 build failure on Arch Linux
Status: Alpha
Brought to you by:
pmiller
Hi, I'm the maintainer of libexplain on Arch Linux ( AUR > https://aur.archlinux.org/packages.php?ID=52960 ),
unfortunately i cannot build latest release 0.49.D001:
libexplain/buffer/errno/lseek.c: In function 'holes_are_not_supported':
libexplain/buffer/errno/lseek.c:60:32: error: '_PC_MIN_HOLE_SIZE' undeclared (first use in this function)
probably an #if defined(_PC_MIN_HOLE_SIZE) should be added before calling
result = fpathconf(fildes, _PC_MIN_HOLE_SIZE); in libexplain/buffer/errno/lseek.c
linux 3.1.8 - glibc 2.15 - libcap 2.22 - attached is a full build log.
Thanks
configure + make
Fix for this problem is in 0.50, available now on web site.
Peter HI try to compile like ./configure like root privileges and after this i run make and what happend:
libtool: compile: gcc -g -O2 -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/file_inode_flags.c -fPIC -DPIC -o libexplain/buffer/.libs/file_inode_flags.o
libexplain/buffer/file_inode_flags.c: In function ‘explain_buffer_file_inode_flags’:
libexplain/buffer/file_inode_flags.c:47:27: error: ‘FS_ECOMPR_FL’ undeclared (first use in this function)
{ "FS_ECOMPR_FL", FS_ECOMPR_FL },
^~~~~~~~~~~~
libexplain/buffer/file_inode_flags.c:47:27: note: each undeclared identifier is reported only once for each function it appears in
libexplain/buffer/file_inode_flags.c:47:9: warning: missing initializer for field ‘value’ of ‘explain_parse_bits_table_t {aka const struct explain_parse_bits_table_t}’ [-Wmissing-field-init]
{ "FS_ECOMPR_FL", FS_ECOMPR_FL },
^
In file included from libexplain/buffer/file_inode_flags.c:25:0:
./libexplain/parse_bits.h:31:21: note: ‘value’ declared here
int value;
^~~~~
libexplain/buffer/file_inode_flags.c:56:29: error: ‘FS_DIRECTIO_FL’ undeclared (first use in this function)
{ "FS_DIRECTIO_FL", FS_DIRECTIO_FL },
^~~~~~~~~~~~~~
libexplain/buffer/file_inode_flags.c:56:9: warning: missing initializer for field ‘value’ of ‘explain_parse_bits_table_t {aka const struct explain_parse_bits_table_t}’ [-Wmissing-field-init]
{ "FS_DIRECTIO_FL", FS_DIRECTIO_FL },
^
In file included from libexplain/buffer/file_inode_flags.c:25:0:
./libexplain/parse_bits.h:31:21: note: ‘value’ declared here
int value;
^~~~~
make: *** [Makefile:10623: libexplain/buffer/file_inode_flags.lo] Error 1
[aperfeito@alarm libexplain-1.4]$
My linux is :Linux alarm 3.10.18-18-ARCH #5 SMP Mon Feb 20 14:21:15 PST 2017 armv7l GNU/Linux