Opened 11 months ago

Last modified 11 months ago

#68629 assigned defect

xterm doesn't compile — at Version 2

Reported by: marcopeereboom (Marco Peereboom) Owned by:
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 

Change History (2)

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

Description: modified (diff)

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

Description: modified (diff)
Note: See TracTickets for help on using tickets.