Opened 3 years ago

Closed 3 years ago

#64807 closed defect (fixed)

xterm @371 has on PPC Tiger, Mac OS X 10.4.11, problerm with plink.sh script

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: tiger Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: xterm

Description

/opt/local/bin/gcc-apple-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include -D_APPLE_C_SOURCE -DFUNCPROTO=15 -DOSMAJORVERSION=8 -DOSMINORVERSION=11 -DPROJECTROOT=\"/usr/X11R6\" -I/opt/local/include/ossp -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/ossp -I/opt/local/include/freetype2 -I/opt/local/include/ossp -I/opt/local/include/libpng16 -DDEFCLASS=\"XTerm\" -DPIXMAP_ROOTDIR=\"/opt/local/share/pixmaps/\"  -pipe -Os -arch ppc  -c ./graphics.c
/bin/sh ./plink.sh /opt/local/bin/gcc-apple-4.2 -pipe -Os -arch ppc  -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc  -o xterm button.o cachedGCs.o charproc.o charsets.o cursor.o data.o doublechr.o fontutils.o input.o linedata.o main.o menu.o misc.o print.o ptydata.o scrollback.o screen.o scrollbar.o tabs.o util.o version.o xstrings.o xtermcap.o VTPrsTbl.o TekPrsTbl.o Tekproc.o charclass.o precompose.o wcwidth.o html.o svg.o graphics_sixel.o graphics.o -lXft -L/opt/local/lib -lfontconfig -lfreetype -lXext -lXaw7 -L/opt/local/lib -lXmu -lXinerama -lXpm -L/opt/local/lib -lXt -lX11 -lSM -lICE -lncurses  
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
       mktemp [-d] [-q] [-u] -t prefix 
./plink.sh: line 56: : No such file or directory
testing if -lXft is needed
...yes
testing if -lfontconfig is needed
...yes
testing if -lfreetype is needed
...yes
testing if -lXext is needed
...yes
testing if -lXaw7 is needed
...yes
testing if -lXmu is needed
...yes
testing if -lXinerama is needed
...yes
testing if -lXpm is needed
...yes
testing if -lXt is needed
...yes
testing if -lX11 is needed
...yes
testing if -lSM is needed
testing if -lICE is needed
...yes
testing if -lncurses is needed
...yes
/opt/local/bin/gcc-apple-4.2 -I. -I. -DHAVE_CONFIG_H -I/opt/local/include -D_APPLE_C_SOURCE -DFUNCPROTO=15 -DOSMAJORVERSION=8 -DOSMINORVERSION=11 -DPROJECTROOT=\"/usr/X11R6\" -I/opt/local/include/ossp -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/ossp -I/opt/local/include/freetype2 -I/opt/local/include/ossp -I/opt/local/include/libpng16 -DDEFCLASS=\"XTerm\" -DPIXMAP_ROOTDIR=\"/opt/local/share/pixmaps/\"  -pipe -Os -arch ppc  -c ./resize.c
/bin/sh ./plink.sh /opt/local/bin/gcc-apple-4.2 -pipe -Os -arch ppc  -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc  -o resize resize.o version.o xstrings.o -lXft -L/opt/local/lib -lfontconfig -lfreetype -lXext -lXaw7 -L/opt/local/lib -lXmu -lXinerama -lXpm -L/opt/local/lib -lXt -lX11 -lSM -lICE -lncurses 
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
       mktemp [-d] [-q] [-u] -t prefix 
./plink.sh: line 56: : No such file or directory
testing if -lXft is needed
testing if -lfontconfig is needed
testing if -lfreetype is needed
testing if -lXext is needed
testing if -lXaw7 is needed
testing if -lXmu is needed
testing if -lXinerama is needed
testing if -lXpm is needed
testing if -lXt is needed
testing if -lX11 is needed
testing if -lSM is needed
testing if -lICE is needed
testing if -lncurses is needed
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_x11_xterm/xterm/work/xterm-371'
106.847u 35.483s 5:29.06 43.2%	0+0k 0+490io 0pf+0w

Compilation finished at Sat Mar 12 19:31:47

The shell script is in the top level directory and has

   47	while [ $# != 0 ]
   48	do
   49		if [ $ASNEED = no ] && [ -n "$LINKIT" ]
   50		then
   51			ASNEED=yes
   52			OPT=-Wl,-as-needed
   53			warned=`mktemp`
   54			trap "rm -f $warned; exit 1" 1 2 3 15
   55			trap "rm -f $warned" 0
   56			if ( eval $LINKIT $OPT $NO_LTO "$@" >"$warned" 2>&1 )
   57			then
   58				WARNED=`cat "$warned"`
   59				rm -f "$warned"
   60				case ".$WARNED" in
   61				*Warning*|*nsupported*|*nrecognized*|*nknown*)
   62					;;
   63				*)
   64					LINKIT="$LINKIT $OPT $*"
   65					break
   66					;;
   67				esac
   68			else
   69				rm -f "$warned"
   70			fi
   71		fi

The script uses /usr/bin/mktemp instead of /opt/local/bin/gmktemp. The latter produces /tmp/tmp.<some nonsense> while the system's BSD mktemp needs a template. /opt/local/bin/gmktemp is part of package coreutils.

Attachments (1)

main.log (217.6 KB) - added by ballapete (Peter "Pete" Dyballa) 3 years ago.
Main.log from PPC Tiger

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Tiger

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jeremyhu added; jeremyhu@… removed
Owner: set to ryandesign
Status: newaccepted

I'll patch the script to fix this and send the patch to the developer of xterm.

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In 6a58738e13189efa31d5b4fef76a3dcc77628f1a/macports-ports (master):

xterm: Specify template for mktemp

Closes: #64807

Note: See TracTickets for help on using tickets.