New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #20862 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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

screen-4.0.3-snowleopard.patch Download (11.0 KB) - added by mccune.jeff@… 2 years ago.
Patch to compile screen-4.0.3 in Mac OS X Snow Leopard
patch-screen.diff Download (3.7 KB) - added by raimue@… 2 years ago.
Patch for Snow Leopard

Change History

follow-up: ↓ 2   Changed 2 years ago by 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.

in reply to: ↑ 1 ; follow-up: ↓ 5   Changed 2 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.

  Changed 2 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!

  Changed 2 years ago by ryandesign@…

  • owner changed from macports-tickets@… to digdog@…

in reply to: ↑ 2   Changed 2 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.

follow-up: ↓ 8   Changed 2 years ago by toby@…

Also... where did the giant list of cc'd people come from?

  Changed 2 years ago by xmitchx@…

  • cc xmitchx@… removed

Cc Me!

in reply to: ↑ 6   Changed 2 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.

  Changed 2 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.

  Changed 2 years ago by huahang.liu@…

  • cc huahang.liu@… removed

Cc Me!

  Changed 2 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.

  Changed 2 years ago by toby@…

(on Snow Leopard... not interested in Leopard)

  Changed 2 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).

  Changed 2 years ago by lstoll@…

  • cc lstoll@… removed

Cc Me!

  Changed 2 years ago by hiro.qli+macports@…

  • cc hiro.qli+macports@… added

Cc Me!

  Changed 2 years ago by robin@…

  • cc robin@… removed

Cc Me!

  Changed 2 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 2 years ago by mcamou@…

  • cc mcamou@… added

Cc Me!

  Changed 2 years ago by bgrupe@…

  • cc bgrupe@… added

Cc Me!

Changed 2 years ago by mccune.jeff@…

Patch to compile screen-4.0.3 in Mac OS X Snow Leopard

  Changed 2 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.

  Changed 2 years ago by mccune.jeff@…

  • cc mccune.jeff@… added

Cc Me!

  Changed 2 years ago by arturoc@…

  • cc arturoc@… added

Cc Me!

  Changed 2 years ago by greg@…

  • cc greg@… added

Cc Me!

  Changed 2 years ago by sck@…

  • cc sck@… added

Cc Me!

  Changed 2 years ago by nan.liu@…

  • cc nan.liu@… added

Cc Me!

  Changed 2 years ago by snc@…

  • cc snc@… added

Cc Me!

  Changed 2 years ago by 858wildcat@…

  • cc 858wildcat@… added

Cc Me!

  Changed 2 years ago by arno+macports@…

  • cc arno+macports@… added

Cc Me!

follow-up: ↓ 30   Changed 2 years ago by dports@…

  • cc dports@… added

Cc Me!

Changed 2 years ago by raimue@…

Patch for Snow Leopard

in reply to: ↑ 29   Changed 2 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.

  Changed 2 years ago by ryandesign@…

  • status changed from new to closed
  • cc ryandesign@… added
  • resolution set to fixed

Committed Rainer's patch in r62349. Thanks.

  Changed 2 years ago by ryandesign@…

  • status changed from closed to reopened
  • resolution fixed deleted

This breaks the build on Leopard.

  Changed 2 years ago by ryandesign@…

  • status changed from reopened to closed
  • resolution set to fixed

Fixed Leopard in r62355.

Note: See TracTickets for help on using tickets.