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

Build Failure



Without the attached patch I'm getting the following error:

gcc -c -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -DMODULE -Wall -Wmissing-prototypes -O2 -fPIC -o curses..o /opt/src/zsh-2007-11-11/Src/Modules/curses.c
/opt/src/zsh-2007-11-11/Src/Modules/curses.c: In function 'zccmd_querychar':
/opt/src/zsh-2007-11-11/Src/Modules/curses.c:1383: error: 'attrs' undeclared (first use in this function)
/opt/src/zsh-2007-11-11/Src/Modules/curses.c:1383: error: (Each undeclared identifier is reported only once
/opt/src/zsh-2007-11-11/Src/Modules/curses.c:1383: error: for each function it appears in.)
make[3]: *** [curses..o] Error 1
make[3]: Leaving directory `/opt/build/zsh-2007-11-11/Src/Modules'
make[2]: *** [modules] Error 1
make[2]: Leaving directory `/opt/build/zsh-2007-11-11/Src'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/opt/build/zsh-2007-11-11/Src'
make: *** [all] Error 1

--- Src/Modules/curses.c~	2007-11-11 12:59:05.000000000 -0500
+++ Src/Modules/curses.c	2007-11-11 20:22:55.000000000 -0500
@@ -1331,10 +1331,10 @@
     Colorpairnode cpn;
     const struct zcurses_namenumberpair *zattrp;
     LinkList clist;
+    attr_t attrs;
 #if defined(HAVE_WIN_WCH) && defined(HAVE_GETCCHAR)
     wchar_t c;
     cchar_t cc;
-    attr_t attrs;
     int count;
     VARARR(char, instr, 2*MB_CUR_MAX+1);
 #else
  - Vin


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