Opened 6 months ago

Last modified 6 months ago

#61194 assigned defect

xterm @359_0 fails to build on macOS 10.15.6 / Xcode 12.0: undefined symbol "_tgetent" in resize.o

Reported by: ned-deily (Ned Deily) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: xterm

Description

My MacPorts installation uses a non-default installation prefix so all ports have to be built from source. Trying to upgrade to the current xterm @359_0 (on macOS 10.15.6 with Xcode and CLT 12.0) fails with:

[...]
:info:build /usr/bin/clang -I. -I. -DHAVE_CONFIG_H -I/opt/macports/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -D_DARWIN_C_SOURCE -DFUNCPROTO=15 -DOSMAJORVERSION=19 -DOSMINORVERSION=6 -I/opt/macports/include/ossp -I/opt/macports/include/freetype2 -I/opt/macports/include/libpng16 -I/opt/macports/include/ossp -I/opt/macports/include/freetype2 -I/opt/macports/include/ossp -I/opt/macports/include/libpng16 -DDEFCLASS=\"XTerm\"  -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 -Qunused-arguments  -c ./Tekproc.c
:info:build /bin/sh ./plink.sh /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 -Qunused-arguments  -L/opt/macports/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64  -o resize resize.o version.o xstrings.o -lXft -L/opt/macports/lib -lfontconfig -lfreetype -lXext -lutil -lXaw7 -L/opt/macports/lib -lXmu -lXinerama -lXpm -L/opt/macports/lib -lXt -lX11 -lSM -lICE
:info:build testing if -lXft is needed
:info:build ...yes
:info:build testing if -lfontconfig is needed
:info:build ...yes
:info:build testing if -lfreetype is needed
:info:build ...yes
:info:build testing if -lXext is needed
:info:build ...yes
:info:build testing if -lutil is needed
:info:build ...yes
:info:build testing if -lXaw7 is needed
:info:build ...yes
:info:build testing if -lXmu is needed
:info:build ...yes
:info:build testing if -lXinerama is needed
:info:build ...yes
:info:build testing if -lXpm is needed
:info:build ...yes
:info:build testing if -lXt is needed
:info:build ...yes
:info:build testing if -lX11 is needed
:info:build ...yes
:info:build testing if -lSM is needed
:info:build ...yes
:info:build testing if -lICE is needed
:info:build ...yes
:info:build Undefined symbols for architecture x86_64:
:info:build   "_tgetent", referenced from:
:info:build       _main in resize.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make: *** [resize] Error 1

Attachments (2)

xterm_log.txt (50.4 KB) - added by ned-deily (Ned Deily) 6 months ago.
xterm/main.log
xterm_config_log.txt (119.9 KB) - added by ned-deily (Ned Deily) 6 months ago.
xterm/work/xterm-359/config.log

Download all attachments as: .zip

Change History (3)

comment:1 Changed 6 months ago by ryandesign (Ryan Schmidt)

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

As always, please attach the main.log so that we can see what happened. Attaching the config.log may be helpful as well.

Changed 6 months ago by ned-deily (Ned Deily)

Attachment: xterm_log.txt added

xterm/main.log

Changed 6 months ago by ned-deily (Ned Deily)

Attachment: xterm_config_log.txt added

xterm/work/xterm-359/config.log

Note: See TracTickets for help on using tickets.