[MacPorts] #67599: texmaker @5.1.2_1 build failure: call to undeclared function 'lseek'

MacPorts noreply at macports.org
Sun Jun 11 22:39:04 UTC 2023


#67599: texmaker @5.1.2_1 build failure: call to undeclared function 'lseek'
-----------------------+----------------------
  Reporter:  NewBBpy   |      Owner:  harens
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.8.1
Resolution:            |   Keywords:
      Port:  texmaker  |
-----------------------+----------------------

Comment (by ryandesign):

 The errors in your new log are:
 {{{
 pdfium/third_party/zlib_v128/gzread.c:30:15: error: call to undeclared
 function 'read'; ISO C99 and later do not support implicit function
 declarations [-Wimplicit-function-declaration]
         ret = read(state->fd, buf + *have, len - *have);
               ^
 }}}
 {{{
 pdfium/third_party/zlib_v128/gzread.c:590:11: error: call to undeclared
 function 'close'; ISO C99 and later do not support implicit function
 declarations [-Wimplicit-function-declaration]
     ret = close(state->fd);
           ^
 }}}
 {{{
 pdfium/third_party/zlib_v128/gzwrite.c:84:15: error: call to undeclared
 function 'write'; ISO C99 and later do not support implicit function
 declarations [-Wimplicit-function-declaration]
         got = write(state->fd, strm->next_in, strm->avail_in);
               ^
 }}}
 According to `man 2 read`, `man 2 close`, and `man 2 write`, <unistd.h> is
 also where those are declared, so that include would need to be added to
 those files as well, or, as in the fix for the other port, that might
 happen automatically if `-DHAVE_UNISTD_H` were set. My advice to have
 texmaker switch to using MacPorts zlib instead stands.

-- 
Ticket URL: <https://trac.macports.org/ticket/67599#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list