I just checked out the latest XEmacs 21.2 from CVS and am trying to compile
it for Mingw (./configure i586-pc-mingw32) under Win2k.
When I link temacs, I get this error:
gcc -g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes
-Wshadow -Wl,-export-dynamic -I/cygdrive/c/xemacs/xemacs-21.2/src -o
temacs abbrev.o alloc.o blocktype.o buffer.o bytecode.o callint.o
callproc.o casefiddle.o casetab.o chartab.o cmdloop.o cmds.o console.o
console-stream.o data.o device.o dired.o doc.o doprnt.o dynarr.o editfns.o
elhash.o emacs.o eval.o events.o debug.o
tests.o filelock.o ntplay.o nt.o ntheap.o ntproc.o dired-msw.o unexcw.o
crollbar-msw.o menubar-msw.o toolbar-msw.o dialog-msw.o console-msw.o
device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o
redisplay-msw.o glyphs-msw.o gui-msw.o dgif_lib.o gif_io.o menubar.o
scrollbar.o dialog.o toolbar.o file-coding.o realpath.o getloadavg.o
inline.o sysdll.o emodules.o process-nt.o event-stream.o extents.o faces.o
fileio.o filemode.o floatfns.o fns.o font-lock.o frame.o eneral.o glyphs.o
glyphs-eimage.o glyphs-widget.o gui.o gutter.o hash.o imgproc.o indent.o
insdel.o intl.o keymap.o line-number.o lread.o lstream.o macros.o marker.o
md5.o minibuf.o objects.o opaque.o print.o process.o profile.o rangetab.o
redisplay.o redisplay-output.o regex.o search.o select.o sheap.o signal.o
sound.o specifier.o strftime.o symbols.o syntax.o sysdep.o undo.o widget.o
window.o win32.o xemacs_res.o lastfile.o gmalloc.o free-hook.o vm-limit.o
-ltiff -ljpeg -lz -mno-cygwin -mwindows -lwinmm -lwsock32 -lshell32 -lgdi32
-luser32 -lcomdlg32 -lcomctl32 -lwinspool
getloadavg.o: In function `getloadavg':
/cygdrive/c/xemacs/xemacs-21.2/src/getloadavg.c:493: multiple definition of
`getloadavg'
nt.o:/cygdrive/c/xemacs/xemacs-21.2/src/nt.c:75: first defined here
collect2: ld returned 1 exit status
make[1]: *** [temacs] Error 1
make[1]: Leaving directory `/cygdrive/c/xemacs/xemacs-21.2/src'
make: *** [src] Error 2
[16:11:42] /xemacs/xemacs-21.2> xe
Which definition is better? The one in nt.c is quite small, whereas the one
in getloadavg.c seems to be doing quite a bit more.
I commented out the small one in nt.c without seemingly ill effects.
Andrew