[MacPorts] #70364: texmaker not installing properly

MacPorts noreply at macports.org
Fri Jul 12 19:08:59 UTC 2024


#70364: texmaker not installing properly
------------------------+--------------------
  Reporter:  dzuolo     |      Owner:  (none)
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:  duplicate  |   Keywords:
      Port:  texmaker   |
------------------------+--------------------
Changes (by jmroot):

 * status:  new => closed
 * resolution:   => duplicate
 * port:   => texmaker


Old description:

> Hi! I am trying to install texmaker on MacOS 14.5 and I am getting the
> following error
>
> :info:build
> pdfium/third_party/zlib_v128/gzwrite.c:pdfium/third_party/zlib_v128/gzread.c84:30:15:
> error: call to undeclared function 'read'; ISO C99 and later do not
> support implicit function declarations [-Wimplicit-function-declaration]
> :info:build         ret = read(state->fd, buf + *have, len - *have);
> :info:build               ^
> :info:build :15: error: call to undeclared function 'write'; ISO C99 and
> later do not support implicit function declarations [-Wimplicit-function-
> declaration]
> :info:build         got = write(state->fd, strm->next_in,
> strm->avail_in);
> :info:build               ^
> :info:build
> pdfium/third_party/zlib_v128/gzread.c:30pdfium/third_party/zlib_v128/gzwrite.c::1584::
> 15note: :did you mean 'fread'?
> :info:build note: did you mean 'fwrite'?
> :info:build pdfium/third_party/zlib_v128/gzlib.c:256:24: error: call to
> undeclared function 'lseek'; ISO C99 and later do not support implicit
> function declarations [-Wimplicit-function-declaration]
> :info:build         state->start = LSEEK(state->fd, 0, SEEK_CUR);
> :info:build                        ^
> :info:build pdfium/third_party/zlib_v128/gzlib.c:14:17: note: expanded
> from macro 'LSEEK'
> :info:build #  define LSEEK lseek
> :info:build                 ^
> :info:build pdfium/third_party/zlib_v128/gzlib.c:256:24: note: did you
> mean 'fseek'?
> :info:build pdfium/third_party/zlib_v128/gzlib.c:14:17: note: expanded
> from macro 'LSEEK'
> :info:build #  define LSEEK lseek
> :info:build                 ^
> :info:build
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:150:9:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h
> :note: 'fread' declared here
> :info:build 157:9: note: 'fwrite' declared here
> :info:build size_t   fread(void * __restrict __ptr, size_t __size, size_t
> __nitems, FILE * __restrict __stream);
> :info:build          ^
> :info:build size_t   fwrite(const void * __restrict __ptr, size_t __size,
> size_t __nitems, FILE * __restrict __stream) __DARWIN_ALIAS(fwrite);
> :info:build          ^
> :info:build
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:154:6:
> note: 'fseek' declared here
> :info:build int      fseek(FILE *, long, int);
> :info:build          ^
> :info:build pdfium/third_party/zlib_v128/gzwrite.c:101:33: error: call to
> undeclared function 'write'; ISO C99 and later do not support implicit
> function declarations [-Wimplicit-function-declaration]
> :info:build             if (have && ((got = write(state->fd,
> state->x.next, have)) < 0 ||
> :info:build                                 ^
> :info:build pdfium/third_party/zlib_v128/gzlib.c:355:9: error: call to
> undeclared function 'lseek'; ISO C99 and later do not support implicit
> function declarations [-Wimplicit-function-declaration]
> :info:build     if (LSEEK(state->fd, state->start, SEEK_SET) == -1)
> :info:build         ^
> :info:build pdfium/third_party/zlib_v128/gzlib.c:14:17: note: expanded
> from macro 'LSEEK'
> :info:build #  define LSEEK lseek
> :info:build                 ^
> :info:build pdfium/third_party/zlib_v128/gzlib.c:396:15: error: call to
> undeclared function 'lseek'; ISO C99 and later do not support implicit
> function declarations [-Wimplicit-function-declaration]
> :info:build         ret = LSEEK(state->fd, offset - state->x.have,
> SEEK_CUR);
> :info:build               ^
> :info:build pdfium/third_party/zlib_v128/gzlib.c:14:17: note: expanded
> from macro 'LSEEK'
> :info:build #  define LSEEK lseek
> :info:build                 ^
> :info:build pdfium/third_party/zlib_v128/gzlib.c:492:14: error: call to
> undeclared function 'lseek'; ISO C99 and later do not support implicit
> function declarations [-Wimplicit-function-declaration]
> :info:build     offset = LSEEK(state->fd, 0, SEEK_CUR);
> :info:build              ^
> :info:build pdfium/third_party/zlib_v128/gzlib.c:14:17: note: expanded
> from macro 'LSEEK'
> :info:build #  define LSEEK lseek
> :info:build                 ^
> :info:build 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]
> :info:build     ret = close(state->fd);
> :info:build           ^
> :info:build pdfium/third_party/zlib_v128/gzwrite.c:573:9: error: call to
> undeclared function 'close'; ISO C99 and later do not support implicit
> function declarations [-Wimplicit-function-declaration]
> :info:build     if (close(state->fd) == -1)
> :info:build         ^
>
> I saw an old ticket on this subject but I was wandering if something
> changed.
> Thanks a lot
> Davide Zuolo

New description:

 Hi! I am trying to install texmaker on MacOS 14.5 and I am getting the
 following error
 {{{
 :info:build
 pdfium/third_party/zlib_v128/gzwrite.c:pdfium/third_party/zlib_v128/gzread.c84:30:15:
 error: call to undeclared function 'read'; ISO C99 and later do not
 support implicit function declarations [-Wimplicit-function-declaration]
 :info:build         ret = read(state->fd, buf + *have, len - *have);
 :info:build               ^
 :info:build :15: error: call to undeclared function 'write'; ISO C99 and
 later do not support implicit function declarations [-Wimplicit-function-
 declaration]
 :info:build         got = write(state->fd, strm->next_in, strm->avail_in);
 :info:build               ^
 :info:build
 pdfium/third_party/zlib_v128/gzread.c:30pdfium/third_party/zlib_v128/gzwrite.c::1584::
 15note: :did you mean 'fread'?
 :info:build note: did you mean 'fwrite'?
 :info:build pdfium/third_party/zlib_v128/gzlib.c:256:24: error: call to
 undeclared function 'lseek'; ISO C99 and later do not support implicit
 function declarations [-Wimplicit-function-declaration]
 :info:build         state->start = LSEEK(state->fd, 0, SEEK_CUR);
 :info:build                        ^
 :info:build pdfium/third_party/zlib_v128/gzlib.c:14:17: note: expanded
 from macro 'LSEEK'
 :info:build #  define LSEEK lseek
 :info:build                 ^
 :info:build pdfium/third_party/zlib_v128/gzlib.c:256:24: note: did you
 mean 'fseek'?
 :info:build pdfium/third_party/zlib_v128/gzlib.c:14:17: note: expanded
 from macro 'LSEEK'
 :info:build #  define LSEEK lseek
 :info:build                 ^
 :info:build
 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:150:9:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h
 :note: 'fread' declared here
 :info:build 157:9: note: 'fwrite' declared here
 :info:build size_t   fread(void * __restrict __ptr, size_t __size, size_t
 __nitems, FILE * __restrict __stream);
 :info:build          ^
 :info:build size_t   fwrite(const void * __restrict __ptr, size_t __size,
 size_t __nitems, FILE * __restrict __stream) __DARWIN_ALIAS(fwrite);
 :info:build          ^
 :info:build
 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:154:6:
 note: 'fseek' declared here
 :info:build int      fseek(FILE *, long, int);
 :info:build          ^
 :info:build pdfium/third_party/zlib_v128/gzwrite.c:101:33: error: call to
 undeclared function 'write'; ISO C99 and later do not support implicit
 function declarations [-Wimplicit-function-declaration]
 :info:build             if (have && ((got = write(state->fd,
 state->x.next, have)) < 0 ||
 :info:build                                 ^
 :info:build pdfium/third_party/zlib_v128/gzlib.c:355:9: error: call to
 undeclared function 'lseek'; ISO C99 and later do not support implicit
 function declarations [-Wimplicit-function-declaration]
 :info:build     if (LSEEK(state->fd, state->start, SEEK_SET) == -1)
 :info:build         ^
 :info:build pdfium/third_party/zlib_v128/gzlib.c:14:17: note: expanded
 from macro 'LSEEK'
 :info:build #  define LSEEK lseek
 :info:build                 ^
 :info:build pdfium/third_party/zlib_v128/gzlib.c:396:15: error: call to
 undeclared function 'lseek'; ISO C99 and later do not support implicit
 function declarations [-Wimplicit-function-declaration]
 :info:build         ret = LSEEK(state->fd, offset - state->x.have,
 SEEK_CUR);
 :info:build               ^
 :info:build pdfium/third_party/zlib_v128/gzlib.c:14:17: note: expanded
 from macro 'LSEEK'
 :info:build #  define LSEEK lseek
 :info:build                 ^
 :info:build pdfium/third_party/zlib_v128/gzlib.c:492:14: error: call to
 undeclared function 'lseek'; ISO C99 and later do not support implicit
 function declarations [-Wimplicit-function-declaration]
 :info:build     offset = LSEEK(state->fd, 0, SEEK_CUR);
 :info:build              ^
 :info:build pdfium/third_party/zlib_v128/gzlib.c:14:17: note: expanded
 from macro 'LSEEK'
 :info:build #  define LSEEK lseek
 :info:build                 ^
 :info:build 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]
 :info:build     ret = close(state->fd);
 :info:build           ^
 :info:build pdfium/third_party/zlib_v128/gzwrite.c:573:9: error: call to
 undeclared function 'close'; ISO C99 and later do not support implicit
 function declarations [-Wimplicit-function-declaration]
 :info:build     if (close(state->fd) == -1)
 :info:build         ^
 }}}
 I saw an old ticket on this subject but I was wandering if something
 changed.
 Thanks a lot
 Davide Zuolo

--

Comment:

 The older ticket is still open because it has not been resolved. So,
 closing this as a duplicate of #67599.

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


More information about the macports-tickets mailing list