Opened 16 months ago

Last modified 2 months ago

#67599 closed defect

texmaker @5.1.2_1 build failure: call to undeclared function 'lseek' — at Version 2

Reported by: NewBBpy Owned by: harens (Haren S)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: texmaker

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hello,

The port texmaker failed to build on my MacOs Ventura 13.3.1 (22E261) even after cleaning and computer restart.

--->  Building texmaker
Error: Failed to build texmaker: command execution failed

I don't know what is the problem.
Many Thanks for your help.
NewBBpy

Change History (3)

Changed 16 months ago by NewBBpy

Attachment: main.log added

comment:1 Changed 16 months ago by jmroot (Joshua Root)

Keywords: Failed to build texmaker removed
Owner: set to harens
Port: @5.1.2_1 (tex editors) removed
Status: newassigned
Summary: Failed to build texmaker: command execution failedtexmaker @5.1.2_1 build failure: call to undeclared function 'lseek'

comment:2 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

Well lseek is defined in unistd.h so the simplest solution would be to add #include <unistd.h> in pdfium/third_party/zlib_v128/gzlib.c or the gzguts.h header it includes however the developer of zlib states that's not the correct fix; see rejected pull requests https://github.com/madler/zlib/pull/509 and https://github.com/madler/zlib/pull/560.

We have dealt with the same problem in other ports that bundle zlib, like freeimage in #61790.

If there is any option for texmaker to use MacPorts zlib instead of its bundled copy, one would think that would solve this problem, and also confer all of the usual benefits of depending on other MacPorts ports (e.g. getting an up-to-date version: MacPorts has zlib 1.2.13 vs 1.2.8 bundled in texmaker).

Note: See TracTickets for help on using tickets.