Did you try tmux from git?
-------- Original message --------
From: Jan Stary <h...@stare.cz>
Date: 05/09/2013 13:19 (GMT+00:00)
To: tmux-users@lists.sourceforge.net
Subject: osdep-darwin.c on MacOSX 10.4.11 (Darwin 8.11.0)
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
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users