#45 macOS High Sierra / gcc-7 : src/lib.h:45:17: error: expected ')' before '?' token
Opened 6 years ago by sebm. Modified 6 years ago

Hi,

I've just downloaded the v0.26 tarball and run :

CC=gcc-7 ./configure && make

Here is what I get at the make step :

Making all in po
source='src/bind-mount.c' object='src/bind-mount.o' libtool=no \
    DEPDIR=.deps depmode=none /bin/sh ./admin/depcomp \
    gcc-7  -I. -I./src  -I./gnulib/lib -I./gnulib/lib   -g -O2  -Wall -W -Wcast-align -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -c -o src/bind-mount.o src/bind-mount.c
In file included from /usr/include/sys/_endian.h:130:0,
                 from /usr/include/i386/endian.h:99,
                 from /usr/include/machine/endian.h:35,
                 from /usr/include/sys/wait.h:186,
                 from /usr/include/stdlib.h:65,
                 from ./gnulib/lib/stdlib.h:31,
                 from src/bind-mount.c:25:
src/lib.h:45:17: error: expected ')' before '?' token
 extern uint64_t htonll (uint64_t val);
                 ^
src/lib.h:48:17: error: expected ')' before '?' token
 extern uint64_t ntohll (uint64_t val);
                 ^
make[1]: *** [src/bind-mount.o] Error 1
make: *** [all-recursive] Error 1

Right. That’s fixable easily enough, but then #15.

Login to comment on this ticket.

Metadata