Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#60963 closed defect (fixed)

texlive-bin @2020.54632_1 -x11 configure fails with: Sorry, you need snprintf and vsnprintf.

Reported by: dubiousjim Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc: dubiousjim, easieste, gallafent
Port: texlive-bin

Description

I can't build texlive-bin with a new install of OS X 10.15.6, Xcode 11.6. Have sudo port deactivate active; sudo port install -Nv texlive-bin build.jobs=1. My /opt/local/etc/macports/variants.conf has +no_x11 -x11 +quartz -universal.

Will attach log of failed install.

Attachments (2)

fourth.log (132.1 KB) - added by dubiousjim 4 years ago.
patch-texk_kpathsea_configure.diff (559 bytes) - added by snowflake (Dave Evans) 4 years ago.
Patch for configure in text/kpathsea

Download all attachments as: .zip

Change History (12)

Changed 4 years ago by dubiousjim

Attachment: fourth.log added

comment:1 Changed 4 years ago by easye

Cc: easieste added

The build fails for me without any variants specified.

comment:2 Changed 4 years ago by ned-deily (Ned Deily)

Build from source failed for me in the same way, i.e. configure tests failing. Solved by following the procedure to update the Command Line Tools (https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt).

comment:3 Changed 4 years ago by dubiousjim

Great, that fixed it for me too.

comment:4 Changed 4 years ago by drkp (Dan Ports)

Yes, seems like this is a problem with the latest Xcode or CLT update -- I'm not sure exactly which

comment:5 Changed 4 years ago by dubiousjim

After a recent update texlive-bin needs to be rebuilt:

$ sudo port -v rev-upgrade
--->  Scanning binaries for linking errors
Could not open /opt/local/lib/libicudata.65.dylib: Error opening or reading file (referenced from /opt/local/libexec/texlive/binaries/bibtexu)
Could not open /opt/local/lib/libicuuc.65.dylib: Error opening or reading file (referenced from /opt/local/libexec/texlive/binaries/bibtexu)
Could not open /opt/local/lib/libicui18n.65.dylib: Error opening or reading file (referenced from /opt/local/libexec/texlive/binaries/bibtexu)
Could not open /opt/local/lib/libicuio.65.dylib: Error opening or reading file (referenced from /opt/local/libexec/texlive/binaries/bibtexu)
--->  Found 11 broken files, matching files to ports     
--->  Found 1 broken port, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt: texlive-bin @2020.54632

But when I try to rebuild I get the "Sorry, you need snprintf and vsnprintf." error again. Now I find that this error persists even after following the linked technique for updating the Command Line Tools.

Changed 4 years ago by snowflake (Dave Evans)

Patch for configure in text/kpathsea

comment:6 Changed 4 years ago by snowflake (Dave Evans)

I had this "Sorry, you need snprintf and vsnprintf.".

I fixed it with a patch added to the Portfile and files

Please see "Patch for configure in texk/kpathsea" in the Attachments.

texlive-bin now builds on Xcode 12 and Big Sur

Last edited 4 years ago by snowflake (Dave Evans) (previous) (diff)

comment:7 Changed 4 years ago by gallafent

Cc: gallafent added

comment:8 Changed 4 years ago by michaelld (Michael Dickens)

comment:9 Changed 4 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: assignedclosed

In 3a458c8ccb22c53be8c2b7f27ae300f8b0dbfe8f/macports-ports (master):

texlive-bin: add patch to fix finding of snprintf and vsnprintf on macOS 11.0

Will not harm older macOS or other OSs

Closes: #60963

comment:10 Changed 4 years ago by mojca (Mojca Miklavec)

Upstream has fixed this problem a while ago (I wasn't aware):

http://tug.org/svn/texlive?view=revision&revision=55760

Further changes are potentially needed in the upstream, but those are about dependencies of TeX Live like fontforge, libpng etc.

Note: See TracTickets for help on using tickets.