Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
onlyjob opened this issue Jan 9, 2020 · 2 comments
Open

Comments

@onlyjob
Copy link

onlyjob commented Jan 9, 2020

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);
      |                               ^~~~~~~~
andrewmichaelsmith added a commit to andrewmichaelsmith/mmproxy that referenced this issue Feb 23, 2020
not using alpine because of sustrik/libmill#188
@andrewmichaelsmith
Copy link

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

@davide125
Copy link

Looks like this was fixed in a515de2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants