* Zsh doesn't compile correctly out of the box for HPUX @ 2003-02-12 1:22 Nathan Peirce 2003-02-12 11:15 ` Peter Stephenson 0 siblings, 1 reply; 4+ messages in thread From: Nathan Peirce @ 2003-02-12 1:22 UTC (permalink / raw) To: zsh-workers; +Cc: Matt Lovell It does compile, but zle doesn't function correctly unless you have the LIBS line in the Makefile look like this: LIBS = -lnsl -lHcurses -lcurses -lm -lc Notice that the Hcurses library has to be used instead of the default curses. What happens is the backspace doesn't work. When you hit backspace nothing happens (and in fact if stty is set to do a backspace-space-backspace it actually just goes forward a space instead of backwards). I've had this problem dating back to HPUX 10.20 (and now on 11.11). It would be nice to have a fix in configure or a note added to MACHINES Thanks zsh-workers -- Nathan Peirce Hewlett Packard System VLSI Technology Division Phone: 970-898-7928 Email: nathan@fc.hp.com ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Zsh doesn't compile correctly out of the box for HPUX 2003-02-12 1:22 Zsh doesn't compile correctly out of the box for HPUX Nathan Peirce @ 2003-02-12 11:15 ` Peter Stephenson 2003-02-12 17:14 ` Nathan Peirce 0 siblings, 1 reply; 4+ messages in thread From: Peter Stephenson @ 2003-02-12 11:15 UTC (permalink / raw) To: Nathan Peirce; +Cc: zsh-workers, Matt Lovell Nathan Peirce wrote: > It does compile, but zle doesn't function correctly unless you have > the LIBS line in the Makefile look like this: > > LIBS = -lnsl -lHcurses -lcurses -lm -lc > > Notice that the Hcurses library has to be used instead of the default > curses. Is that really instead of (not in addition to)? In that case, and assuming Hcurses is HPUX-specific, I would think we can fix this by changing [case "$host_os" in hpux10.*|hpux11.*|solaris*) termcap_curses_order="curses ncurses termcap" ;; *) termcap_curses_order="termcap curses ncurses" ;; esac] to [case "$host_os" in hpux10.*|hpux11.*|solaris*) termcap_curses_order="Hcurses curses ncurses termcap" ;; *) termcap_curses_order="termcap curses ncurses" ;; esac] in the configure test. -- Peter Stephenson <pws@csr.com> Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. ********************************************************************** ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Zsh doesn't compile correctly out of the box for HPUX 2003-02-12 11:15 ` Peter Stephenson @ 2003-02-12 17:14 ` Nathan Peirce 2003-02-13 10:55 ` Peter Stephenson 0 siblings, 1 reply; 4+ messages in thread From: Nathan Peirce @ 2003-02-12 17:14 UTC (permalink / raw) To: Peter Stephenson; +Cc: zsh-workers, Matt Lovell I don't know much about curses libraries. I did see this comment on an HP-UX transition website: "Hcurses library - HP-UX curses was replaced with X/Open curses (NcNs401) These curses interfaces are HP proprietary interfaces. The use of these interfaces is strongly discouraged and may not be portable to future implementations of HP-UX. There will not be a 64-bit version of the curses library." But whoever is compiling the regular X/Open cursese for HPUX is doing it wrong because it has the backspace problem. So as long as Hcurses is available, its use is a good workaround to the backspace problem. On 12 February 2003, Peter Stephenson writes: > Nathan Peirce wrote: > > It does compile, but zle doesn't function correctly unless you have > > the LIBS line in the Makefile look like this: > > > > LIBS = -lnsl -lHcurses -lcurses -lm -lc > > > > Notice that the Hcurses library has to be used instead of the default > > curses. > > Is that really instead of (not in addition to)? In that case, and > assuming Hcurses is HPUX-specific, I would think we can fix this by > changing > > [case "$host_os" in > hpux10.*|hpux11.*|solaris*) > termcap_curses_order="curses ncurses termcap" ;; > *) termcap_curses_order="termcap curses ncurses" ;; > esac] > > to > > [case "$host_os" in > hpux10.*|hpux11.*|solaris*) > termcap_curses_order="Hcurses curses ncurses termcap" ;; > *) termcap_curses_order="termcap curses ncurses" ;; > esac] > > in the configure test. > -- Nathan Peirce Hewlett Packard System VLSI Technology Division Phone: 970-898-7928 Email: nathan@fc.hp.com ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Zsh doesn't compile correctly out of the box for HPUX 2003-02-12 17:14 ` Nathan Peirce @ 2003-02-13 10:55 ` Peter Stephenson 0 siblings, 0 replies; 4+ messages in thread From: Peter Stephenson @ 2003-02-13 10:55 UTC (permalink / raw) To: zsh-workers; +Cc: Nathan Peirce, Matt Lovell Nathan Peirce wrote: > But whoever is compiling the regular X/Open cursese for HPUX is doing it > wrong because it has the backspace problem. So as long as Hcurses is > available, its use is a good workaround to the backspace problem. Here's a patch to the latest source; it's in a different file in 4.0 but the patch itself should be similar. Again, I'm assuming that -lHcurses can replace -lcurses or we need to be cleverer. The MACHINES entry includes some relevant stuff I was already accumulating, I can't remember if I posted it. Index: zshconfig.ac =================================================================== RCS file: /cvsroot/zsh/zsh/zshconfig.ac,v retrieving revision 1.30 diff -u -r1.30 zshconfig.ac --- zshconfig.ac 30 Jan 2003 15:30:52 -0000 1.30 +++ zshconfig.ac 13 Feb 2003 10:53:20 -0000 @@ -563,6 +563,7 @@ dnl Prefer BSD termcap library to SysV curses library, except on certain dnl SYSV-derived systems. +dnl On HPUX, Hcurses is reported to work better than curses. AC_ARG_WITH(curses-terminfo, [ --with-curses-terminfo use terminfo support from curses library], [if test x$withval = xyes; then @@ -573,7 +574,7 @@ fi], [case "$host_os" in hpux10.*|hpux11.*|solaris*) - termcap_curses_order="curses ncurses termcap" ;; + termcap_curses_order="Hcurses curses ncurses termcap" ;; *) termcap_curses_order="termcap curses ncurses" ;; esac])dnl Index: Etc/MACHINES =================================================================== RCS file: /cvsroot/zsh/zsh/Etc/MACHINES,v retrieving revision 1.16 diff -u -r1.16 MACHINES --- Etc/MACHINES 25 Jul 2002 13:27:21 -0000 1.16 +++ Etc/MACHINES 13 Feb 2003 10:53:20 -0000 @@ -69,15 +69,22 @@ does not work, but it does with 3.x and 4.x. HP: HP-UX 9, 10.20, 11.0 - Should build `out-of-the-box'. + Should build `out-of-the-box', although various problems have + been encountered on HP-UX 11.x: - Problems with dynamic loading have been reported under 11, but - this should compile using the standard dlopen() function set - (rather than the 10.20 shl_load() function set). More details of - any difficulties would be appreciated. + Some of the special keys on the keyboard (backspace, delete) + have been found to stop functioning. One suggested fix is + to alter the way the curses library is linked in the Makefile. + This should now be done by default if you do *not* explicitly + specify --with-curses-terminfo. - Compiling with gcc 2.7.1 is known to fail with header file - conflicts on HP-UX 11. Use the HP ANSI C compiler. + Problems with dynamic loading have been reported, but + this should compile using the standard dlopen() function set + (rather than the 10.20 shl_load() function set). More details of + any difficulties would be appreciated. + + Compiling with gcc 2.7.1 is known to fail with header file + conflicts. Use the HP ANSI C compiler. IBM: AIX 3.2, 4.x Should build `out-of-the-box', but --enable-zsh-mem will not work. -- Peter Stephenson <pws@csr.com> Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. ********************************************************************** ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-02-13 10:55 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2003-02-12 1:22 Zsh doesn't compile correctly out of the box for HPUX Nathan Peirce 2003-02-12 11:15 ` Peter Stephenson 2003-02-12 17:14 ` Nathan Peirce 2003-02-13 10:55 ` Peter Stephenson
Code repositories for project(s) associated with this public inbox https://git.vuxu.org/mirror/zsh/ This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).