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

Failing to build libmill (gcc, dns/dns.h) #4

Closed
rezad1393 opened this issue Jul 8, 2019 · 1 comment
Closed

Failing to build libmill (gcc, dns/dns.h) #4

rezad1393 opened this issue Jul 8, 2019 · 1 comment

Comments

@rezad1393
Copy link

rezad1393 commented Jul 8, 2019

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?

@intika intika closed this as completed Jul 27, 2019
@intika 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
@intika
Copy link
Member

intika commented 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...).

Also have a look at sustrik/libdill#191 (comment) apparently this have been fixed on that PR.

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

2 participants