Opened 15 years ago

Closed 14 years ago

#19208 closed defect (fixed)

xterm failed to install

Reported by: trog24 (Frank J. R. Hanstick) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), niel.drummond@…, ctempleton3@…
Port: xterm

Description

The following error occurs when trying to install xorg:

--->  Building xterm
Error: Target org.macports.build returned: shell command "  cd "/opt/local/var/macports/build _opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xterm/work/xterm-238" && make all " returned error 2
Command output: /usr/bin/gcc-4.0 -I. -I. -DHAVE_CONFIG_H  -I/opt/local/include -I/opt/local/include/freetype2  -I. -I. -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -D__powerpc__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED     -DXFREE86_FT2 -DUTMP  -DOSMAJORVERSION=8 -DOSMINORVERSION=11  -I/usr/X11R6/include -I/opt/local/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 -DSIGWINCH=28 -DPROJECTROOT='"/usr/X11R6"' -D__vendorversion__='"Version 4.7.0 XFree86"'  -O2  -c ./charproc.c
./charproc.c: In function 'in_put':
./charproc.c:3301: error: 'fd_mask' undeclared (first use in this function)
./charproc.c:3301: error: (Each undeclared identifier is reported only once
./charproc.c:3301: error: for each function it appears in.)
make: *** [charproc.o] Error 1
Error: The following dependencies failed to build: xorg-apps xterm xtrap xvinfo xwd xwininfo xwud xorg-server xorg-fonts font-adobe-100dpi xorg-font-util font-adobe-75dpi font-adobe-utopia-100dpi font-adobe-utopia-75dpi font-adobe-utopia-type1 font-alias font-arabic-misc font-bh-100dpi font-bh-75dpi font-bh-lucidatypewriter-100dpi font-bh-lucidatypewriter-75dpi font-bh-ttf font-bh-type1 font-bitstream-100dpi font-bitstream-75dpi font-bitstream-speedo font-bitstream-type1 font-cronyx-cyrillic font-cursor-misc font-daewoo-misc font-dec-misc font-ibm-type1 font-isas-misc font-jis-misc font-micro-misc font-misc-cyrillic font-misc-ethiopic font-misc-meltho font-misc-misc font-mutt-misc font-schumacher-misc font-screen-cyrillic font-sony-misc font-sun-misc font-winitzki-cyrillic font-xfree86-type1 xorg-encodings
Error: Status 1 encountered during processing.

The platform is a PowerPC G4 running MacOS 10.4.11

Attachments (2)

Portfile.diff (588 bytes) - added by ctempleton3@… 15 years ago.
xterm-darwin_8.diff (387 bytes) - added by jmroot (Joshua Root) 14 years ago.
possible fix

Download all attachments as: .zip

Change History (19)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to jeremyhu@…
Port: xterm added
Summary: xorg failed to installxterm failed to install

This is actually an issue with the xterm port.

comment:2 Changed 15 years ago by trog24 (Frank J. R. Hanstick)

Please explain further.

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

Cc: ryandesign@… added

The failing port is not "xorg" but "xterm", as evidenced by the fact that the failure occurred after the line "---> Building xterm"

I just experienced the issue as well on Mac OS X 10.4.11 Intel, Xcode 2.5, MacPorts 1.7.1. I too was trying to install "xorg" originally.

comment:4 Changed 15 years ago by trog24 (Frank J. R. Hanstick)

Apparently something that got fixed is now broke again. See ticket #12991 which supposedly pushed it back up to xorg.

comment:5 Changed 15 years ago by niel.drummond@…

same problem here. managed to workaround by hand-editing /usr/include/X11/Xpoll.h according to the patch in #12991 . 'port' also states this file is not owned by a macport, so I am supposing the standard Apple X11 package supplies it. not sure how this is normally dealt with...

comment:6 Changed 15 years ago by niel.drummond@…

Cc: niel.drummond@… added

Cc Me!

comment:7 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

niel, are you using +system_x11? If so, you're on your own. xterm is building from MacPorts and shouldn't touch anything in /usr/include/X11

comment:8 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Try with r49869

comment:9 Changed 15 years ago by niel.drummond@…

not managed to get that far with port as this is a fresh install, but it compiles with the latest update.

comment:10 Changed 15 years ago by trog24 (Frank J. R. Hanstick)

Apple's Xpoll.h is in /usr/X11R6/include/X11 if anyone is interested.

comment:11 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:12 Changed 15 years ago by ctempleton3@…

Cc: ctempleton3@… added

Cc Me!

Changed 15 years ago by ctempleton3@…

Attachment: Portfile.diff added

comment:13 Changed 15 years ago by ctempleton3@…

I was able to build xterm with the attached portfile and the patches submitted at Ticket #19760. Can you please apply the patches?

comment:14 Changed 14 years ago by jmroot (Joshua Root)

The real problem is that xterm.h includes <X11/Xos.h> which includes <string.h> which includes <sys/cdefs.h>, which in response to _XOPEN_SOURCE being defined defines _POSIX_C_SOURCE, which prevents <sys/types.h> from defining fd_mask.

comment:15 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from jeremyhu@… to jeremyhu@…

Changed 14 years ago by jmroot (Joshua Root)

Attachment: xterm-darwin_8.diff added

possible fix

comment:16 Changed 14 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Owner: changed from jeremyhu@… to jmr@…

jmr: If that works for you, go ahead and push it. I still haven't gotten a Tiger box up.

comment:17 Changed 14 years ago by tobypeterson

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.