Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] 4.3.5 build fails on SunOS 4.1.4



On Mon, 3 Mar 2008 04:58:15 +0000
River Tarnell <river@xxxxxxxxxxxxx> wrote:
> this platform doesn't provide strtoul(), and zsh has no compat.c
> replacement.  the patch (attached) provides one from NetBSD sources
> (which i believe has a liberal enough license to be included in zsh).

Right, and you've even included the licence, so I've committed it as it is.
Thanks.

> there are two remaining problems, but i have no idea where to start
> on either of them:
> 
>  + unless compiled with --disable-dynamic, any attempt to use
>    completion-related features crashes the shell with 'Undefined
>    symbol: _incompfunc'

I think the answer here is probably --disable-dynamic.  It's going back a
while, but I have a suspicion dynamic linking has always been problematic
on SunOS 4.  It might be fixable if anyone thought it worth while and had
the time and facilities.

For the specific problem, on some older systems an underscore needed to be
added by hand to entry points when fetching them with dlsym().  It looks
like this is some variant of that problem (although dlsym() isn't directly
involved).  Again, it's going back a bit and I'm not sure how this was
supposed to pan out.

>  + job control doesn't work properly.  while typing ^Z in 'vi'
>    works fine, in 'vim', the program immediately resumes, rather
>    than returning to the shell.  both work fine with the system
>    'csh'.

Job control definitely worked once on 4.1.x because I used to use it all
the time about 15(!) years ago, although I think that was in the age before
vim.  It's likely to need some poking around with a suitable system, unless
it awakes some memory of Bart's.

It might be worth trying "ttyctl -f" before calling vim the first time in
case it's monkeying with terminal settings.  I don't hold out much hope,
but it's at least a very quick test.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author