Ticket #20862 (closed defect: fixed)
screen port fails to compile under Snow Leopard 10.6
| Reported by: | mina.macports@… | Owned by: | digdog@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.8.0 |
| Keywords: | snowleopard | Cc: | tomvons@…, hiro.qli+macports@…, tharant@…, mcamou@…, bgrupe@…, mccune.jeff@…, arturoc@…, greg@…, sck@…, nan.liu@…, snc@…, 858wildcat@…, arno+macports@…, dports@…, ryandesign@… |
| Port: | screen |
Description
This ticket is essentially a resurrection of #13009, except it's for Snow Leopard instead of Leopard this time.
Install attempt output:
t# port install screen
---> Computing dependencies for screen
---> Building screen
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_screen/work/screen-4.0.3" && /usr/bin/make -j2 all " returned error 2
Command output: utmp.c:499: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
utmp.c: At top level:
utmp.c:639: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
utmp.c:668: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
utmp.c:678: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
utmp.c: In function 'getutslot':
utmp.c:682: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
utmp.c: In function 'pututslot':
utmp.c:691: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
utmp.c: In function 'makedead':
utmp.c:710: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
utmp.c: In function 'makeuser':
utmp.c:725: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
/usr/bin/gcc-4.2 -c -I. -I. -O2 -arch x86_64 loadav.c
In file included from screen.h:144,
from loadav.c:41:
display.h:182: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
In file included from screen.h:145,
from loadav.c:41:
window.h:247: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
/usr/bin/gcc-4.2 -c -I. -I. -O2 -arch x86_64 pty.c
In file included from screen.h:144,
from pty.c:30:
display.h:182: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
In file included from screen.h:145,
from pty.c:30:
window.h:247: warning: 'utmp' is deprecated (declared at /usr/include/utmp.h:96)
pty.c:38:26: error: sys/stropts.h: No such file or directory
make: *** [pty.o] Error 1
make: *** Waiting for unfinished jobs....
Error: Status 1 encountered during processing.
Attachments
Change History
comment:2 in reply to: ↑ 1 ; follow-up: ↓ 5 Changed 4 years ago by mina.macports@…
Replying to toby@…:
Just need to pull patches from http://www.opensource.apple.com/source/screen/screen-16/
I'll get around to it eventually, but there isn't really much reason to use screen from MacPorts on Snow Leopard.
Actually there is.
The screen that ships with Leopard, and Snow Leopard, is buggy.
It simply refuses to remember the current directory.
Every new window started within a screen session starts in ~, no matter what the original directory was when screen was started.
Just googled it actually, and people have been coming up with some nasty hacks to work around that problem.
comment:3 Changed 4 years ago by tharant@…
- Cc mcalhoun@…, kentk@…, mike@…, alexguo@…, robin@…, lstoll@…, tamyrvoll@…, john+macports@…, joshua_anderson@…, huahang.liu@…, faisal.moledina@…, tomvons@…, benjaminkreeger@…, m@…, andrius.laikina@…, dizzyd@…, xmitchx@…, treaves@…, shrift@…, tannhaus@… added
Cc Me!
comment:5 in reply to: ↑ 2 Changed 4 years ago by toby@…
Replying to mina.macports@…:
The screen that ships with Leopard, and Snow Leopard, is buggy.
It simply refuses to remember the current directory.
Every new window started within a screen session starts in ~, no matter what the original directory was when screen was started.
Just googled it actually, and people have been coming up with some nasty hacks to work around that problem.
I cannot reproduce this issue.
comment:6 follow-up: ↓ 8 Changed 4 years ago by toby@…
Also... where did the giant list of cc'd people come from?
comment:8 in reply to: ↑ 6 Changed 4 years ago by xmitchx@…
Replying to toby@…:
Also... where did the giant list of cc'd people come from?
I'm not sure, but I was on the python26 ticket (#20284) and it looks like someone copied my email address over to this ticket when, although I use screen and I'm interested, is not nearly blocking to me as the python26 issue is.
I've removed myself. Please don't cherrypick my email and CC me on random tickets.
comment:9 Changed 4 years ago by tomvons@…
Odd, I was on the python26 ticket as well... though I actually have an interest in this ticket, coincidentally enough.
I have the same problem/motivation as mina.macports@, no matter where I start screen, new windows open in ~ and not in the directory I started screen in. This was the same for 10.5 as well, which is my only motivation for installing screen from ports.
comment:11 Changed 4 years ago by toby@…
Someone who can reproduce this, please provide more detailed steps. screen definitely preserves the working directory for me, and there's nothing particularly interesting about my shell setup.
comment:12 Changed 4 years ago by toby@…
(on Snow Leopard... not interested in Leopard)
comment:13 Changed 4 years ago by tomvons@…
Try adding this to your ~/.screenrc:
shell -$SHELL
Without that line, it works as it should (though screen from macports and screen on ubuntu and debian systems don't have a problem with it).
comment:17 Changed 4 years ago by jmr@…
- Cc tharant@… added; mcalhoun@…, kentk@…, mike@…, alexguo@…, tamyrvoll@…, john+macports@…, joshua_anderson@…, faisal.moledina@…, benjaminkreeger@…, m@…, andrius.laikina@…, dizzyd@…, treaves@…, shrift@…, tannhaus@… removed
- Keywords snowleopard added; screen snow leopard 10.6 sys stropts.h removed
Cleaning up after cc malfunction.
Changed 4 years ago by mccune.jeff@…
- Attachment screen-4.0.3-snowleopard.patch added
Patch to compile screen-4.0.3 in Mac OS X Snow Leopard
comment:20 Changed 4 years ago by mccune.jeff@…
I created the patch based on the patches located at http://www.opensource.apple.com/source/screen/screen-16/patches/ and vproc_priv.h from http://launchd.macosforge.org/trac/browser/trunk/launchd/src/vproc_priv.h?rev=23880
Apply the patch using patch -p1 < screen-4.0.3-snowleopard.patch.
Here's how I've compiled screen while MacPorts is updated:
./configure --enable-locale --enable-telnet --enable-colors256 --enable-rxvt_osc --prefix=/usr/local
Enjoy.
comment:30 in reply to: ↑ 29 Changed 3 years ago by dports@…
attachment patch-screen.diff added
Patch for Snow Leopard
In case you missed my message on irc -- I'm using this patch now and screen builds and runs correctly with it.
comment:31 Changed 3 years ago by ryandesign@…
- Status changed from new to closed
- Cc ryandesign@… added
- Resolution set to fixed
Committed Rainer's patch in r62349. Thanks.
comment:32 Changed 3 years ago by ryandesign@…
- Status changed from closed to reopened
- Resolution fixed deleted
This breaks the build on Leopard.
comment:33 Changed 3 years ago by ryandesign@…
- Status changed from reopened to closed
- Resolution set to fixed
Fixed Leopard in r62355.


Just need to pull patches from http://www.opensource.apple.com/source/screen/screen-16/
I'll get around to it eventually, but there isn't really much reason to use screen from MacPorts on Snow Leopard.