On Wed, Apr 24, 2013 at 6:07 AM, Glenn Fowler <[email protected]> wrote: > On Tue, 23 Apr 2013 23:44:17 +0200 Roland Mainz wrote: >> While trying to trace-down the issues with the ast-open build I >> noticed the following depreciation warnings in the build log: >> -- snip -- >> /home/test001/work/ast_ksh_20130422/build_32bit_plain/src/lib/libast/vmalloc/malloc.c: >> In function 'vm_initialize_hook': >> /home/test001/work/ast_ksh_20130422/build_32bit_plain/src/lib/libast/vmalloc/malloc.c:820:2: >> warning: '__free_hook' is deprecated (declared at >> /usr/include/malloc.h:172) [-Wdeprecated-declarations] >> /home/test001/work/ast_ksh_20130422/build_32bit_plain/src/lib/libast/vmalloc/malloc.c:821:2: >> warning: '__malloc_hook' is deprecated (declared at >> /usr/include/malloc.h:175) [-Wdeprecated-declarations] >> /home/test001/work/ast_ksh_20130422/build_32bit_plain/src/lib/libast/vmalloc/malloc.c:822:2: >> warning: '__memalign_hook' is deprecated (declared at >> /usr/include/malloc.h:182) [-Wdeprecated-declarations] >> /home/test001/work/ast_ksh_20130422/build_32bit_plain/src/lib/libast/vmalloc/malloc.c:823:2: >> warning: '__realloc_hook' is deprecated (declared at >> /usr/include/malloc.h:178) [-Wdeprecated-declarations] >> /home/test001/work/ast_ksh_20130422/build_32bit_plain/src/lib/libast/vmalloc/malloc.c: >> At top level: >> /home/test001/work/ast_ksh_20130422/build_32bit_plain/src/lib/libast/vmalloc/malloc.c:826:1: >> warning: '__malloc_initialize_hook' is deprecated (declared at >> /usr/include/malloc.h:169) [-Wdeprecated-declarations] >> -- snip -- > >> Erm... does anyone know which glibc facility replaced these calls ? > > as far as I can tell > name your function "malloc" > and somehow don't worry about cross pollination between > program startup and the time your malloc() becomes visible
Well... on SuSE 12.3 this doesn't work anymore... AFAIK because the glibc malloc hook API has been depreciated and is now a set of dummy functions and because "valgrind" can't see the AST vmalloc allocator functions by default... I'm looking into a fix from "valgrind"s side (which means: "valgrind" needs to be adjusted, not libast) ... ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) [email protected] \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;) _______________________________________________ ast-developers mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-developers
