bugGuile - Bugs: bug #34619, Aborted compilation when...

 
 

bug #34619: Aborted compilation when configured with --enable-debug-malloc

Submitted by:  Bake Timmons <bt3>
Submitted on:  Sat 22 Oct 2011 11:24:47 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 22 Oct 2011 11:38:49 AM UTC, comment #1:

Committed, thanks!

Ludovic Courtès <civodul>
Project Administrator
Sat 22 Oct 2011 11:24:47 AM UTC, original submission:

After configuring with --enable-debug-malloc, compiling yielded the
following:

libtool: compile: gcc -DHAVE_CONFIG_H -DBUILDING_LIBGUILE=1 -I.. -I.. -I../lib -I../lib -pthread -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wswitch-enum -fvisibility=hidden -I/usr/local/include -g -ggdb3 --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -march=athlon64 -O2 -fno-omit-frame-pointer -MT libguile_2.2_la-gc-malloc.lo -MD -MP -MF .deps/libguile_2.2_la-gc-malloc.Tpo -c gc-malloc.c -fPIC -DPIC -o .libs/libguile_2.2_la-gc-malloc.o
mv -f .deps/libguile_2.2_la-frames.Tpo .deps/libguile_2.2_la-frames.Plo
gc-malloc.c: In function 'scm_gc_register_collectable_memory':
gc-malloc.c:157:5: error: too few arguments to function 'scm_malloc_register'

Here is a patch:

commit 1f97614e3b42021d4e9c9a3b1550e2401117b5d5
Author: Bake Timmons <b3timmons@speedymail.org>
Date: Sat Oct 22 07:04:05 2011 -0400

* libguile/gc-malloc.c (scm_gc_register_collectable_memory): Add the
missing second argument in the call to scm_malloc_register.

diff --git a/libguile/gc-malloc.c b/libguile/gc-malloc.c
index 839154a..a8a54c7 100644
--- a/libguile/gc-malloc.c
+++ b/libguile/gc-malloc.c
@@ -154,7 +154,7 @@ scm_gc_register_collectable_memory (void mem, size_t size, const char what)
/* Nothing to do. */
#ifdef GUILE_DEBUG_MALLOC
if (mem)
- scm_malloc_register (mem);
+ scm_malloc_register (mem, what);
#endif
}

Bake Timmons <bt3>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by civodul (Posted a comment)
  • -unavailable- added by bt3 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 22 Oct 2011 11:38:49 AM UTCcivodulOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1