sustrik / libdill

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

failed to build 2.14 release #218

Closed laoshaw closed 2 years ago

laoshaw commented 2 years ago
Making all in man
make[1]: Entering directory '/home/xxiao/tmp/c++/libdill-2.14/man'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/xxiao/tmp/c++/libdill-2.14/man'
make[1]: Entering directory '/home/xxiao/tmp/c++/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/xxiao/tmp/c++/libdill-2.14'
make: *** [Makefile:1926: all-recursive] Error 1
wwhai commented 2 years ago
make clean
mkdir build
cd build
cmake ..
make
sudo make install