Intika-Linux-Proxy/SNI-SSL-Proxy

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

rezad1393 opened this issue · 1 comments

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?

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.