Opened 12 months ago

Last modified 12 months ago

#68629 assigned defect

xterm doesn't compile on MacOS 14.1 (23B74)

Reported by: marcopeereboom (Marco Peereboom) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: xterm

Description (last modified by marcopeereboom (Marco Peereboom))

It's an easy fix. Basically it needs --with-pcre2 during configure and remove DarwinMachineDefines from CFLAGS.

I don't know how macports work hence I reported it instead of sending a fix.

Thanks for the great work!

--- Makefile.old        2023-11-03 13:02:36
+++ Makefile    2023-11-03 13:03:24
@@ -66,7 +66,7 @@ CFLAGS                = -g -O2 -Qunused-arguments -Wno-error=implici
 
 PIXMAPDIR_DEF  = -DPIXMAP_ROOTDIR=\"${datadir}/pixmaps/\"
 CPPFLAGS       = -I. -I$(srcdir) -DHAVE_CONFIG_H -D_DARWIN_C_SOURCE -I/opt/local/include -I. -I/opt/local/include/freetype2 -I/opt/local/include/freetype2/config -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED     -DXFREE86_FT2 -DUTMP  -DOSMAJORVERSION=23 -DOSMINORVERSION=1 -I/opt/local/include -DDEFCLASS=\"XTerm\" $(PIXMAPDIR_DEF) $(EXTRA_CPPFLAGS)
-CFLAGS         = -g -O2 -Qunused-arguments -Wno-error=implicit-function-declaration DarwinMachineDefines $(EXTRA_CFLAGS)
+CFLAGS         = -g -O2 -Qunused-arguments -Wno-error=implicit-function-declaration $(EXTRA_CFLAGS)
 LDFLAGS                =  
 LIBS           = -kpcre2-posix -lXext -lutil -lXaw7 -L/opt/local/lib -lXmu -lXinerama -lXpm -L/opt/local/lib -lXt -lX11 -lSM -lICE -ltermcap 

Attachments (2)

config.log (122.3 KB) - added by marcopeereboom (Marco Peereboom) 12 months ago.
config.log
main.log (406.6 KB) - added by marcopeereboom (Marco Peereboom) 12 months ago.
mail.log

Download all attachments as: .zip

Change History (8)

comment:1 Changed 12 months ago by marcopeereboom (Marco Peereboom)

Description: modified (diff)

comment:2 Changed 12 months ago by marcopeereboom (Marco Peereboom)

Description: modified (diff)

comment:3 Changed 12 months ago by marcopeereboom (Marco Peereboom)

Summary: xterm doesn't compilexterm doesn't compile on MacOS 14.1 (23B74)

comment:4 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to jeremyhu
Port: xterm added
Status: newassigned

comment:5 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

Since we've had successful builds of this port without those changes, what are the error messages that you got?

comment:6 Changed 12 months ago by marcopeereboom (Marco Peereboom)

First I tried binary install and xterm does not seem available on the mirrors.

$ sudo port install -b xorg
--->  Computing dependencies for xorg
The following dependencies will be installed: 
 xorg-apps
 xorg-libXTrap
 xorg-libXv
 xterm
 xtrap
 xvinfo
 xwd
 xwininfo
 xwud
Continue? [Y/n]: y
--->  Fetching archive for xterm
--->  Attempting to fetch xterm-383_1.darwin_23.arm64.tbz2 from https://packages.macports.org/xterm
--->  Attempting to fetch xterm-383_1.darwin_23.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/xterm
--->  Attempting to fetch xterm-383_1.darwin_23.arm64.tbz2 from http://mirror.fcix.net/macports/packages/xterm
--->  Attempting to fetch xterm-383_1.darwin_23.arm64.tbz2 from https://mse.uk.packages.macports.org/xterm
--->  Attempting to fetch xterm-383_1.darwin_23.arm64.tbz2 from https://nue.de.packages.macports.org/xterm
--->  Attempting to fetch xterm-383_1.darwin_23.arm64.tbz2 from https://fra.de.packages.macports.org/xterm
--->  Attempting to fetch xterm-383_1.darwin_23.arm64.tbz2 from https://cph.dk.packages.macports.org/xterm
--->  Attempting to fetch xterm-383_1.darwin_23.arm64.tbz2 from http://fco.it.packages.macports.org/xterm
--->  Attempting to fetch xterm-383_1.darwin_23.arm64.tbz2 from https://kmq.jp.packages.macports.org/xterm
--->  Attempting to fetch xterm-383_1.darwin_23.arm64.tbz2 from https://jnb.za.packages.macports.org/packages/xterm
--->  Attempting to fetch xterm-383_1.darwin_23.arm64.tbz2 from https://pek.cn.packages.macports.org/macports/packages/xterm
--->  Attempting to fetch xterm-383_1.darwin_23.arm64.tbz2 from http://jog.id.packages.macports.org/macports/packages/xterm
--->  Attempting to fetch xterm-383_1.darwin_23.arm64.tbz2 from http://atl.us.packages.macports.org/xterm
--->  Attempting to fetch xterm-383_1.darwin_23.arm64.tbz2 from https://ema.uk.packages.macports.org/xterm
Error: Failed to archivefetch xterm: version @383_1: Could not resolve host: ema.uk.packages.macports.org
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_xterm/xterm/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port xorg failed

When doing it as source:

$ sudo port install xterm  
--->  Computing dependencies for xterm
--->  Fetching archive for xterm
--->  Attempting to fetch xterm-383_1.darwin_23.arm64.tbz2 from https://packages.macports.org/xterm
--->  Attempting to fetch xterm-383_1.darwin_23.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/xterm
--->  Attempting to fetch xterm-383_1.darwin_23.arm64.tbz2 from http://mirror.fcix.net/macports/packages/xterm
--->  Configuring xterm
Error: Failed to configure xterm: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_xterm/xterm/work/xterm-383/config.log
Error: Failed to configure xterm: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_xterm/xterm/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port xterm failed

Changed 12 months ago by marcopeereboom (Marco Peereboom)

Attachment: config.log added

config.log

Changed 12 months ago by marcopeereboom (Marco Peereboom)

Attachment: main.log added

mail.log

Note: See TracTickets for help on using tickets.