Jerry James wrote:
1) Replacing Ichar with int in sysfile.h;
2) Including lisp.h in gnuclient.c prior to including sysfile.h (and
removing the include of compiler.h, which gets pulled in by lisp.h);
or
3) Doing a "typedef int Ichar;" in gnuclient.c prior to including
sysfile.h.
I favor #2.
#2 leads to problems for make-docstring and movemail with duplicate definitions for
"fatal" and "malloc". So this need some deeper thought. #3 works of
course but is more
of a hack. Patch below.
-----------------------------------------------------------------------------------
Index: lib-src/gnuclient.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lib-src/gnuclient.c,v
retrieving revision 1.27
diff -r1.27 gnuclient.c
61a62
typedef int Ichar;
Index: lib-src/make-docfile.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lib-src/make-docfile.c,v
retrieving revision 1.18
diff -r1.18 make-docfile.c
44a45
typedef int Ichar;
Index: lib-src/movemail.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lib-src/movemail.c,v
retrieving revision 1.21
diff -r1.21 movemail.c
68a69
typedef int Ichar;
-----------------------------------------------------------------------------------
And when I'm at it. This brings the build process up to the same lever as before, e.g
this error:
[...]
if true ; then \
./temacs.exe -nd -no-packages -batch -l
/usr/src/xemacs/working/src/../lisp/make-docfile.el --
\ -o ../lib-src/DOC -d /usr/src/xemacs/working/src -i
../lib-src/../site-packages \ abbrev.c alloc.c alloca.c blocktype.c buffer.c
bytecode.c callint.c casefiddle.c casetab.c chartab.c filelock.c cmdloop.c cmds.c
console.c console-stream.c data.c debug.c tests.c device.c dired.c doc.c doprnt.c
dynarr.c editfns.c elhash.c emacs.c emodules.c eval.c events.c event-stream.c
event-unixoid.c dumper.c dragdrop.c getloadavg.c inline.c ntplay.c terminfo.c extents.c
faces.c file-coding.c fileio.c filemode.c floatfns.c fns.c font-lock.c frame.c gc.c
general.c dgif_lib.c gif_io.c glyphs.c glyphs-eimage.c glyphs-shared.c glyphs-widget.c
gui.c menubar.c scrollbar.c dialog.c toolbar.c gutter.c hash.c imgproc.c indent.c
insdel.c intl.c keymap.c line-number.c lread.c lstream.c macros.c marker.c md5.c
minibuf.c console-msw.c device-msw.c event-msw.c frame-msw.c objects-msw.c select-msw.c
redisplay-msw.c glyphs-msw.c gui-msw.c menubar-msw.c scrollbar-msw.c dialog-msw.c
toolbar-msw.c mule-ccl.c mule-charset.c mule-coding.c objects.c opaque.c print.c
process.c process-unix.c profile.c rangetab.c realpath.c redisplay.c redisplay-output.c
regex.c search.c select.c sysdll.c signal.c sound.c specifier.c strftime.c symbols.c
syntax.c sysdep.c text.c console-tty.c device-tty.c event-tty.c frame-tty.c
objects-tty.c redisplay-tty.c cm.c undo.c unicode.c widget.c window.c win32.c
intl-win32.c intl-auto-encap-win32.c intl-encap-win32.c xemacs_res.c free-hook.c \
; fi
Loading /usr/src/xemacs/working/src/../lisp/make-docfile.el...
Loading find-paths.el...
Loading packages.el...
Loading setup-paths.el...
Loading raw-process.el...
Requiring custom...
Requiring widget...
Loading process...
Loading /usr/src/xemacs/working/lisp/dumped-lisp.el...
./xemacs -no-packages -batch -no-autoloads -l update-elc-2.el -f batch-update-elc-2
/usr/src/xemacs/working/src/../lisp
File error: Cannot open load file, "update-elc-2.el"
Building finder database ...
rm -f /usr/src/xemacs/working/src/../lisp/finder-inf.el
./xemacs -no-packages -batch -eval "(setq finder-compile-keywords-quiet t)"
\
-l finder -f finder-compile-keywords
temacs can only be run in -batch mode.
make[1]: *** [/usr/src/xemacs/working/src/../lisp/finder-inf.el] Error 255
make[1]: Leaving directory `/usr/src/xemacs/working/src'
make: *** [src] Error 2
Yours
--
%% Mats