sustrik / libdill

Structured concurrency in C
MIT License
1.69k stars 155 forks source link

Build fail on Fedora 31 #206

Open jerryd opened 4 years ago

jerryd commented 4 years ago

make[1]: Entering directory '/home/jerry/dev/tcp/libdill-2.14' CC libdill_la-chan.lo CC libdill_la-cr.lo CC libdill_la-handle.lo CC libdill_la-libdill.lo CC libdill_la-now.lo CC libdill_la-pollset.lo CC libdill_la-rbtree.lo CC libdill_la-stack.lo CC libdill_la-ctx.lo CC libdill_la-utils.lo CC libdill_la-bsock.lo CC libdill_la-fd.lo CC libdill_la-happyeyeballs.lo CC libdill_la-http.lo CC libdill_la-iol.lo CC libdill_la-ipc.lo CC libdill_la-ipaddr.lo In file included from ipaddr.c:44: ipaddr.c: In function ‘dill_ipaddr_remotes’: 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__)))) | ^ ipaddr.c:335:47: note: in expansion of macro ‘dns_opts’ 335 | dill_dns_hosts, dill_dns_hints, NULL, dns_opts(), &rc); | ^~~~ make[1]: [Makefile:1785: libdill_la-ipaddr.lo] Error 1 make[1]: Leaving directory '/home/jerry/dev/tcp/libdill-2.14' make: [Makefile:1926: all-recursive] Error 1 [jerry@amdr libdill-2.14]$ uname -a Linux amdr 5.6.13-200.fc31.x86_64 #1 SMP Thu May 14 23:26:14 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

jerryd commented 4 years ago

gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC)

vincent-legoll commented 4 years ago

duplicate of #191 ?