You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make libmill.la
CC libmill_la-ip.lo
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);
| ^~~~~~~~
make: *** [Makefile:1236: libmill_la-ip.lo] Error 1
intika
changed the title
make libmill.la fails with "dns/dns.h:1009:24: error: lvalue required as unary ‘&’ operand"
Failing to build libmill (gcc, dns/dns.h)
Jul 27, 2019
Just tried with master release and it's working, i guess this error depend on your system and the
version of gcc that you are using, you can try to use an other version of gcc (v5.5 is working...).
make libmill.la
CC libmill_la-ip.lo
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);
| ^~~~~~~~
make: *** [Makefile:1236: libmill_la-ip.lo] Error 1
sustrik/libdill#191
how do you even use this if you cant compile it?
The text was updated successfully, but these errors were encountered: