tags:

views:

93

answers:

1

Hi, While trying to compile lynx, I used the 'with-dmalloc' configure option. But compilation aborted, producing this error:

 /usr/include/dmalloc.h:460: error: expected identifier or '(' before '__extension__'
> /usr/include/dmalloc.h:484: error: expected identifier or '(' before '__extension__'
> make[1]: *** [HTParse.o] Error 1
> make[1]: Leaving directory `/tmp/lynx2-8-8/WWW/Library/Implementation'
> make: *** [all] Error 2

This is what the errant lines in dmalloc.h hold:


> Line 460: char *strdup(const char *string);
> Linu 484: char *strndup(const char *string, const DMALLOC_SIZE len);

The file can also be viewed at http://www.filewatcher.com/p/dmalloc-5.5.2.tbz.467309/include/dmalloc.h.html

Development on dmalloc has pretty much stopped, so not really expecting a fix from upstream. Any help?

A: 

I encountered something like this and found that this was caused by the dmalloc.h was included before e.g. et. al so that the macro identifiers from dmalloc.h mangled the declarations for the real valloc/realloc/memdup etc.

Could this be what you are seeing?

Thomas Nilsson