Closed npsoni88 closed 6 years ago
Jail-shell is compiled with -Werror CFLAGS, All compiler warnings will be treated as errors, so you can temporarily avoid this build error by remove -Werror flag in Makefile
JAIL_COMMON_OBJS=jail-common.o
JAIL_CMD_OBJS=jail-cmd.o $(JAIL_COMMON_OBJS)
JAIL_CMDD_OBJS=jail-cmdd.o $(JAIL_COMMON_OBJS)
JAIL_CMD=jail-cmd
JAIL_CMDD=jail-cmdd
JAIL_CMDD_LIB = -lutil
CFLAGS +=-g -O2 -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing
CXXFLAGS +=-Wall -fno-omit-frame-pointer -Wstrict-aliasing
.PHONY: all
all: $(JAIL_CMD) $(JAIL_CMDD)
$(JAIL_CMD) : $(JAIL_CMD_OBJS)
$(CC) $(CFLAGS) $^ -o $@
$(JAIL_CMDD) : $(JAIL_CMDD_OBJS)
$(CC) $(CFLAGS) $^ -o $@ $(JAIL_CMDD_LIB)
clean:
$(RM) $(JAIL_CMD) $(JAIL_CMD_OBJS) $(JAIL_CMDD) $(JAIL_CMDD_OBJS)
Anyway, I'll fix this issue.
Compile issuse has been resolved.
This tool has only been verified on redhat, suse, debian, not verified on ubuntu.
If there is still a problem with installation, please feedback.
Environment - Ubuntu 16.04 in a Vagrant machine Immediate error after cloning the repo.