[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] Cannot compile with -DWITH_DMALLOC

(Resend, I sent this to Jörg privately instead to the list what I
originally wanted to do.)

On Sat, 09 Feb 2002, Joerg Dietrich wrote:

> I tried to compile ma10pre2 with -DWITH_DMALLOC and get the
> following:
> b_sortnl.o: In function `main':
> /home/joerg/src/leafnode-2.0b8_ma10pre2/b_sortnl.c:31: undefined
> reference to `_malloc_leap'
> /home/joerg/src/leafnode-2.0b8_ma10pre2/b_sortnl.c:49: undefined
> reference to `_malloc_leap'
> and so on. This is probably a dmalloc problem here and offtopic
> for this list, but a pointer to what went wrong would be
> appreciated. dmalloc version is 4.8.2.

Note that -DWITH_DMALLOC in $CPPFLAGS is only the optional part of the
dmalloc game, the mandatory part is -ldmalloc in $LIBS.

I cannot reproduce your problem here with "./configure --with-dmalloc",
that mostly works, except configparam.c. To make configparam.c compile
with dmalloc, apply this patch:

Index: configparam.c
RCS file: /home/emma/mycvsroot/leafnode/configparam.c,v
retrieving revision 1.5
diff -u -r1.5 configparam.c
--- configparam.c	2002/01/19 02:12:02	1.5
+++ configparam.c	2002/02/09 23:37:57
@@ -1,12 +1,11 @@
 #include "config_defs.h"
 #include "configparam.h"
 #include <stdlib.h>
+#include <string.h>
 #include <dmalloc.h>
-#include <string.h>
 static int
 comp(const void *a, const void *b)

leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list