Build Error on Solaris 10

62 views
Skip to first unread message

Ihsan Dogan

unread,
Jan 29, 2022, 4:28:46 AM1/29/22
to libuv
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

Ben Noordhuis

unread,
Feb 2, 2022, 3:28:01 AM2/2/22
to li...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages