This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
RE: configure with --enable-malloc-debugging fails to compile
On 13 February 2008 22:41, Dave Korn wrote:
> On 13 February 2008 21:20, Christopher Faylor wrote:
>
>> On Wed, Feb 13, 2008 at 12:16:44PM -0800, Jim Kleckner wrote:
>>> FYI, the --enable-malloc-debugging option fails to compile with current
>>> CVS sources.
>>>
>>> (/oss/src/configure --prefix=/oss/mdebug.install --enable-debugging
>>> --enable-malloc-debugging -v; make) >& make.out
>>
>> And your proposal for fixing this is...?
>>
>> cgf
> I don't interpret "FYI" as indicating a proposal, just a heads-up. I
> often find them useful even without patches attached because they direct my
> attention to things I might not have been conscious of myself.
... or amusing, as it turns out! :)
Here's the context, from cygmalloc.h:
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 void dlfree (void *p) __attribute__ ((regparm (1)));
15 void *dlmalloc (unsigned size) __attribute__ ((regparm (1)));
Here's what I see in the .ii file I got from --save-temps:
# 12 "/usr/build/src-winsup/winsup/cygwin/cygmalloc.h"
extern "C" {
void free_dbg(void *p, "/usr/build/src-winsup/winsup/cygwin/cygmalloc.h", 14)
__attribute__ ((regparm (1)));
void *malloc_dbg(unsigned size,
"/usr/build/src-winsup/winsup/cygwin/cygmalloc.h", 15) __attribute__ ((regparm
(1)));
I'm guessing that a macro substitution that is supposed only to be applied
to calls to dlfree has been applied to the declaration. More later.
cheers,
DaveK
--
Can't think of a witty .sigline today....