osdep-darwin.c on MacOSX 10.4.11 (Darwin 8.11.0)

2013-09-05 Thread Jan Stary
Being a happy user of tmux on many other systems (thank you!)
I tried to compile tmux on this MacOSX 10.4.11, and have failed.

The problem is that osdep-darwin.c does not compile on 10.4.11
- it uses libproc which (people tell me) has only been introduced
in MacOSX 10.5 (Darwin 9) with DTrace.

Looking at the history of osdep-darwin.c, e.g.
http://sourceforge.net/p/tmux/tmux-code/ci/7360ff4496bfd159ac5935a18de675f067c375db/
http://sourceforge.net/p/tmux/tmux-code/ci/ad2cc63412d563f31b33df3204bb2070cb12f320/
I see that the "lowlevel" sysctl()'s have been
gradually replaced by libproc features.
This breaks osdep-darwin.c on older Macs
(such as my 10.4.11)

Temporarily, I have reverted to an older version of osdep-darwin.c
http://sourceforge.net/mailarchive/forum.php?thread_name=51A035A8.6090504%40gmail.com&forum_name=tmux-users
and live without the cwd functionality.

I tried to rewrite osdep_get_name() and osdep_get_cwd()
in the sysctl(CTL_KERN, KERN_PROC, ...) way
but I don't know the Darwin internals much;
I also tried to mimic osdep-openbsd.c
but Darwin lacks things such as KERN_PROC_CWD,
the daysaver of osdep-openbsd's osdep_get_cwd().

I am no expert on the nuanced differences between
the internals of various BSD-derived systems,
but I do believe that getting the cwd and comm
of a running process is something very fundamental
on all of them; not something that would require
DTrace's libproc.

So, before I start on a path I don't really know,
is there a way to change osdep-darwin to do it
the old primitive way, without proc_bsdshortinfo
and proc_vnodepathinfo and proc_pidinfo etc?

Thank you for your time

Jan


PS:

I am also using macports (www.macports.org) on this Mac,
and there is a sysutils/tmux port; it has a patch to osdep-darwin.c
that replaces proc_bsdshortinfo with proc_bsdinfo,
https://trac.macports.org/browser/trunk/dports/sysutils/tmux/files/osdep-darwin.c.diff?rev=105099
which makes tmux compile (and run fine) on "older" Macs.

The tmux repo itself has this:
http://sourceforge.net/p/tmux/tmux-code/ci/46b3c1a02564268ab810d0f54190f1e8fc1f4f6d/

But "older" here means "older that the latest Apple release"
(as usual in the Apple circles); it still does not work on 10.4.11.
https://trac.macports.org/ticket/38506


--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: tmux on Cygwin

2013-09-05 Thread J Raynor
If you run it normally, does it work now?

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Fwd: tmux on Cygwin

2013-09-05 Thread Mark Volkmann
On Wed, Sep 4, 2013 at 5:54 PM, J Raynor  wrote:

> Most of these just look like warnings.  But for this:
>
> > configure.ac:111: error: possibly undefined macro: AC_SEARCH_LIBS
> >   If this token and others are legitimate, please use
> m4_pattern_allow.
> >   See the Autoconf documentation.
>
>
> I believe you need to have pkg-config installed.  You can install this
> via cygwin's setup.exe utility.
>

After installing pkg-config in Cygwin I was able to complete the install.
When I run "tmux < /dev/null" I get "open terminal failed: not a terminal".

-- 
R. Mark Volkmann
Object Computing, Inc.



-- 
R. Mark Volkmann
Object Computing, Inc.
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users