Mail Archives: djgpp/2009/04/04/04:49:15
> Date: Thu, 02 Apr 2009 06:21:17 +0300
> From: Eli Zaretskii <eliz AT gnu DOT org>
>
> > P.S. It still claims an error when I try building with SYSTEM_MALLOC:
> >
> > msdos.o w16select.o xmenu.o termcap.o tparam.o lastfile.o
> > getloadavg.o
> > -lg -lm
> > dosfns.o:dosfns.c:(.text+0x663): undefined reference to
> > `_ret_lim_data'
> > collect2: ld returned 1 exit status
> > make.exe[1]: *** [temacs.exe] Error 1
> > make.exe[1]: Leaving directory `c:/Armslurp/emacs-23.0.92/src'
> > make.exe: *** [src] Error 2
> >
> > Now this time you have to admit that it isn't my imagination. :-)
>
> I will look into it. Please submit a bug report with
>
> M-x report-emacs-bug RET
I've just fixed this in the Emacs CVS with the following change:
2009-04-04 Eli Zaretskii <eliz AT gnu DOT org>
* dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
ret_lim_data. (Bug#2867)
Index: src/dosfns.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/dosfns.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- src/dosfns.c 3 Jan 2009 15:02:30 -0000 1.53
+++ src/dosfns.c 4 Apr 2009 09:42:12 -0000 1.54
@@ -571,7 +571,9 @@
int i;
Lisp_Object cmd_str, decoded_cmd, tem;
double pmem;
+#ifndef SYSTEM_MALLOC
extern unsigned long ret_lim_data ();
+#endif
uid = getuid ();
attrs = Fcons (Fcons (Qeuid, make_fixnum_or_float (uid)), attrs);
@@ -604,8 +606,12 @@
make_fixnum_or_float ((unsigned long)sbrk(0)/1024)),
attrs);
attrs = Fcons (Fcons (Qetime, tem), attrs);
+#ifndef SYSTEM_MALLOC
+ /* ret_lim_data is on vm-limit.c, which is not compiled in under
+ SYSTEM_MALLOC. */
pmem = (double)((unsigned long) sbrk (0)) / ret_lim_data () * 100.0;
if (pmem > 100)
+#endif
pmem = 100;
attrs = Fcons (Fcons (Qpmem, make_float (pmem)), attrs);
/* Pass 1: Count how much storage we need. */
- Raw text -