Fixed some missing includes. Thanks.
/ Martin Stjernholm, Roxen IS
Previous text:
2004-09-27 00:07: Subject: memory leak in oracle module
thanx. compiled pike 7.4 from cvs, but failed with 7.6 from cvs (see below).
when now running running roxen with valgrind starting of roxen up hangs while starting mysql. but i have to include child processes with valgrind, otherwise it would trace only the start script.
there were also "Broken environment var" messages in the debug log.
/m
compiler error when i tried to compile todays pike 7.6 with-valgrind:
Making Gmp make[3]: Entering directory `/tmp/Pike-v7.6-snapshot/build/linux-2.4.21-243-default-i686/modules/Gmp' Compiling /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c: In function `mpzmod_reduce': /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c:104: error: `gc_external_refs_zapped' undeclared (first use in this function) /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c:104: error: (Each undeclared identifier is reported only once /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c:104: error: for each function it appears in.) /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c:104: warning: implicit declaration of function `gc_check_zapped' /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c: In function `debug_get_mpz': /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c:447: error: `gc_external_refs_zapped' undeclared (first use in this function) /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c: In function `mpzmod_invert': /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c:1377: error: `gc_external_refs_zapped' undeclared (first use in this function) /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c: In function `pike_module_exit': /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c:1919: error: `gc_external_refs_zapped' undeclared (first use in this function) WARNING: Compiler failure! Trying without optimization! cc1: warning: -Wuninitialized is not supported without -O /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c: In function `mpzmod_reduce': /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c:104: error: `gc_external_refs_zapped' undeclared (first use in this function) /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c:104: error: (Each undeclared identifier is reported only once /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c:104: error: for each function it appears in.) /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c:104: warning: implicit declaration of function `gc_check_zapped' /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c: In function `debug_get_mpz': /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c:447: error: `gc_external_refs_zapped' undeclared (first use in this function) /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c: In function `mpzmod_invert': /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c:1377: error: `gc_external_refs_zapped' undeclared (first use in this function) /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c: In function `pike_module_exit': /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c:1919: error: `gc_external_refs_zapped' undeclared (first use in this function) Compilation command was: /tmp/Pike-v7.6-snapshot/build/linux-2.4.21-243-default-i686/smartlink gcc -I. -I/tmp/Pike-v7.6-snapshot/src/modules/Gmp -I/tmp/Pike-v7.6-snapshot/build/linux-2.4.21-243-default-i686 -I/tmp/Pike-v7.6-snapshot/src -I/tmp/Pike-v7.6-snapshot/build/linux-2.4.21-243-default-i686/bundles/include -I/usr/local/include -I/opt/gnome/include -I/usr/X11/include -DHAVE_CONFIG_H -g -Wa,--execstack -mcpu=i686 -I/tmp/Pike-v7.6-snapshot/build/linux-2.4.21-243-default-i686/bundles/include -I/usr/local/include -I/opt/gnome/include -I/usr/X11/include -W -Wall -Wno-unused -Wcomment -Wformat -Wimplicit-function-declaration -Wmultichar -Wswitch -Wuninitialized -Wpointer-arith -Wchar-subscripts -Wno-long-long -c /tmp/Pike-v7.6-snapshot/src/modules/Gmp/mpz_glue.c -o mpz_glue.o make[3]: *** [mpz_glue.o] Error 1 make[3]: Leaving directory `/tmp/Pike-v7.6-snapshot/build/linux-2.4.21-243-default-i686/modules/Gmp' make[2]: *** [Gmp] Error 1 make[2]: Leaving directory `/tmp/Pike-v7.6-snapshot/build/linux-2.4.21-243-default-i686/modules' make[1]: *** [module_objects] Error 1 make[1]: Leaving directory `/tmp/Pike-v7.6-snapshot/build/linux-2.4.21-243-default-i686' make: *** [compile] Error 2
/ Michael J. Stenitzer