adamyg/grief

Can't build build-25 on Linux

Closed this issue · 2 comments

# git checkout build-25
# ./configure
bash: ./configure: Permission denied
# chmod 755 configure
# ./configure
[...]
# make release
[...]
gcc --param max-inline-insns-single=1200 -pthread -O1 -DNDEBUG  -I/home/blake/Backup/grief.git/include  -DHAVE_CONFIG_H  -o /home/blake/Backup/grief.git/obj.gcc/release/libvfs/vfs_curl.o -c vfs_curl.c
gcc --param max-inline-insns-single=1200 -pthread -O1 -DNDEBUG  -I/home/blake/Backup/grief.git/include  -DHAVE_CONFIG_H  -o /home/blake/Backup/grief.git/obj.gcc/release/libvfs/vfs_handle.o -c vfs_handle.c
gcc --param max-inline-insns-single=1200 -pthread -O1 -DNDEBUG  -I/home/blake/Backup/grief.git/include  -DHAVE_CONFIG_H  -o /home/blake/Backup/grief.git/obj.gcc/release/libvfs/vfs_lookup.o -c vfs_lookup.c
gcc --param max-inline-insns-single=1200 -pthread -O1 -DNDEBUG  -I/home/blake/Backup/grief.git/include  -DHAVE_CONFIG_H  -o /home/blake/Backup/grief.git/obj.gcc/release/libvfs/vfs_mount.o -c vfs_mount.c
gcc --param max-inline-insns-single=1200 -pthread -O1 -DNDEBUG  -I/home/blake/Backup/grief.git/include  -DHAVE_CONFIG_H  -o /home/blake/Backup/grief.git/obj.gcc/release/libvfs/vfs_node.o -c vfs_node.c
vfs_node.c: In function ‘vfs_node_new’:
vfs_node.c:46:18: error: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
   46 |     time_t now = time(NULL);
      |                  ^~~~
vfs_node.c:40:1: note: ‘time’ is defined in header ‘<time.h>’; this is probably fixable by adding ‘#include <time.h>’
   39 | #include "vfs_node.h"
  +++ |+#include <time.h>
   40 | 
make[2]: *** [Makefile:149: /home/blake/Backup/grief.git/obj.gcc/release/libvfs/vfs_node.o] Error 1
make[2]: Leaving directory '/home/blake/Backup/grief.git/libvfs'
make[1]: *** [Makefile:532: lib.gcc/release/libvfs] Error 2
make[1]: Leaving directory '/home/blake/Backup/grief.git'
make: *** [Makefile:197: release] Error 2
# 

I fixed the problem but had several other issues. You should probably test on a Linux box. 😄

aware of ./configure attributes, git removed during rename.
built on several Linux dist, shall patch related to autoconf changes

build-26/7389e67