[MacPorts] #13359: BUG: zsh-devel is built against /usr/include/curses.h and linked with MacPorts ncurses

MacPorts trac at macosforge.org
Wed Nov 21 02:07:51 PST 2007


#13359: BUG: zsh-devel is built against /usr/include/curses.h and linked with
MacPorts ncurses
---------------------------------+------------------------------------------
 Reporter:  vinc17 at macports.org  |       Owner:  nox at macports.org
     Type:  defect               |      Status:  new             
 Priority:  Normal               |   Milestone:  Port Bugs       
Component:  ports                |     Version:  1.5.2           
 Keywords:                       |  
---------------------------------+------------------------------------------
 "otool -L =zsh" shows that zsh-devel is dynamically linked against the
 MacPorts ncurses library: /opt/local/lib/libncurses.5.dylib

 But it is built using "/usr/include/curses.h"! This can be shown by cd'ing
 to Src/Modules and using the line output by "make" after replacing "-o
 ..." by "-E":
 {{{
 prunille:...4.3.4/Src/Modules> /usr/bin/gcc-4.0 -c -I.
 -I/opt/local/include -DHAVE_CONFIG_H -DMODULE -O2 -fno-common terminfo.c
 -E | grep 'include.*curses'
 # 1 "/usr/include/curses.h" 1 3 4
 # 58 "/usr/include/curses.h" 3 4
 # 1 "/usr/include/ncurses_dll.h" 1 3 4
 # 59 "/usr/include/curses.h" 2 3 4
 # 99 "/usr/include/curses.h" 3 4
 # 1 "/usr/include/curses.h" 1 3 4
 # 103 "/usr/include/curses.h" 2 3 4
 # 126 "/usr/include/curses.h" 3 4
 # 136 "/usr/include/curses.h" 3 4
 # 137 "/usr/include/curses.h" 2 3 4
 # 174 "/usr/include/curses.h" 3 4
 # 192 "/usr/include/curses.h" 3 4
 # 282 "/usr/include/curses.h" 3 4
 # 318 "/usr/include/curses.h" 3 4
 # 501 "/usr/include/curses.h" 3 4
 # 1398 "/usr/include/curses.h" 3 4
 # 1442 "/usr/include/curses.h" 3 4
 }}}
 The problem is that the current zsh version only uses #include <curses.h>
 lines and that the ncurses port doesn't install curses compatibility
 symlinks. I mentioned the problem a year ago in the macports-dev list
 (subject: "compatibility symbolic links for ncurses and ncursesw"), but
 no-one replied (see also bug #12605 reported by someone else).

 I sometimes get zsh crashes under Mac OS X when it has been sleeping for a
 long time (e.g. after a long ssh session to some other machine), just
 before the prompt is displayed (I do not have this problem under Debian).
 I wonder if the cause can be this build problem.

 FYI, this bug will be fixed upstream in the next zsh version (see zsh-
 workers mailing-list, subject "zsh-4.3.4-dev-2.tar.gz").

-- 
Ticket URL: <https://trac.macosforge.org/projects/macports/ticket/13359>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list