sustrik/libmill

FTBFS: dns/dns.h:1009:24: error: lvalue required as unary '&' operand

onlyjob opened this issue · 2 comments

Encountered the following FTBFS on Debian "unstable" x86_64:

In file included from ip.c:44:
ip.c: In function 'mill_ipremote_':
dns/dns.h:1009:24: error: lvalue required as unary '&' operand
 1009 | #define dns_opts(...) (&dns_quietinit((struct dns_options)DNS_OPTS_INIT(__VA_ARGS__)))
      |                        ^
ip.c:268:31: note: in expansion of macro 'dns_opts'
  268 |         mill_dns_hints, NULL, dns_opts(), &rc);
      |                               ^~~~~~~~

For what it's worth, I also get this error when attempting to build this inside an Alpine docker container.

For example:

FROM alpine:latest
RUN apk add git make
RUN git clone https://github.com/cloudflare/mmproxy.git
WORKDIR mmproxy
RUN git submodule update --init
RUN apk add autoconf automake libtool gcc build-base
RUN make

Looks like this was fixed in a515de2