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

Re: Make Failure on SunOS-4.1

On Apr 24,  3:43pm, Vin Shelton wrote:
} Using the latest CVS sources, I can build fine against SunOS-5.5, but
} building under 4.1 gives me the following errors:

First, just to cover all the bases:  Did you remove config.cache and re-run
Util/preconfig before running configure?

} gcc -c -I.  -DHAVE_CONFIG_H -Wall -Wno-implicit -Wmissing-prototypes -O2  -o termcap.o /u/shelton/new/src/zsh-2001-04-24/Src/Modules/termcap.c
} In file included from /usr/include/sgtty.h:6,
}                  from /u/shelton/new/SunOS-4.1/gcc-2.95.3-test5/lib/gcc-lib/sparc-sun-sunos4.1.4/2.95.3/include/curses.h:20,
}                  from /u/shelton/new/src/zsh-2001-04-24/Src/Modules/termcap.c:51:
} /usr/include/sys/ioctl.h:23: warning: `ECHO' redefined
} /u/shelton/new/SunOS-4.1/gcc-2.95.3-test5/lib/gcc-lib/sparc-sun-sunos4.1.4/2.95.3/include/termios.h:169: warning: this is the location of the previous definition

If you did the configure cleanly and still are getting those errors, try

# if defined(HAVE_CURSES_H) && defined(HAVE_TERM_H)
#  ifdef HAVE_TERMIO_H
#   include <termio.h>
#  endif


# if defined(HAVE_CURSES_H) && defined(HAVE_TERM_H)
#  ifdef VINTR
#   undef VINTR
#  endif
#  ifdef offsetof
#   undef offsetof
#  endif

in Src/Modules/termcap.c.  However, this part worries me:

} /u/shelton/new/src/zsh-2001-04-24/Src/Modules/termcap.c: In function `bin_echotc':
} /u/shelton/new/src/zsh-2001-04-24/Src/Modules/termcap.c:100: warning: assignment makes pointer from integer without a cast

That's tgetstr(), which should have been declared somewhere.  I suspect
perhaps that the `defined(HAVE_CURSES_H) && defined(HAVE_TERM_H)' test
is inadequate.

Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   

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