On Sat, Jan 29, 2022 at 10:28 AM Ihsan Dogan <ihsan.do...@gmail.com> wrote: > > Hello, > > I'm trying to build libuv on Solaris 10 Sparc and I'm running into this error: > > CC src/unix/libuv_la-sunos.lo > src/unix/sunos.c: In function 'uv__io_poll': > src/unix/sunos.c:157:12: warning: unused variable 'idle_poll' > [-Wunused-variable] > uint64_t idle_poll; > ^ > src/unix/sunos.c:367:13: warning: 'timeout' may be used uninitialized in this > function [-Wmaybe-uninitialized] > timeout -= diff; > ^ > src/unix/sunos.c:270:10: warning: 'user_timeout' may be used uninitialized in > this function [-Wmaybe-uninitialized] > if (timeout == -1) > ^ > CCLD libuv.la > Undefined first referenced > symbol in file > utimensat src/unix/.libs/libuv_la-fs.o (symbol > belongs to unavailable version /lib/libc.so (SUNW_1.22.6)) > mkdtemp src/unix/.libs/libuv_la-fs.o (symbol > belongs to unavailable version /lib/libc.so (SUNW_1.23)) > ld: fatal: symbol referencing errors. No output written to > .libs/libuv.so.1.0.0 > collect2: error: ld returned 1 exit status > gmake: *** [Makefile:1768: libuv.la] Error 1 > > I did add -DSUNOS_NO_IFADDRS to CFLAGS, but I'm wondering if I missed > something else for a succesfull build. > > > > Regards > > Ihsan
Possibly src/unix/fs.c or Makefile.am needs some tweaks to build on your system. Pull request welcome. It's currently assumed that mkdtemp() and utimensat() are available. They're specified in the 2008 POSIX revision but it sounds like your system predates that. -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to libuv+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/libuv/CAHQurc9xbjiS%2Bc%3Dj_QYzGx4zTW9zmgcOfBKdWahGMQ%2BonkAB4A%40mail.gmail.com.