[pgpool-hackers: 518] cassert failure

Tatsuo Ishii ishii at postgresql.org
Thu May 15 22:28:25 JST 2014


Hi Usama,

A user reported that git master head has a problem with assertion enabled.

Making all in parser
make[2]: Entering directory `/home/t-ishii/work/git.postgresql.org/pgpool2/src/parser'
gcc -DHAVE_CONFIG_H -I. -I../../src/include  -D_GNU_SOURCE -I ../../src/include/parser -I /usr/local/pgsql/include   -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -MT copyfuncs.o -MD -MP -MF .deps/copyfuncs.Tpo -c -o copyfuncs.o copyfuncs.c
copyfuncs.c: In function '_copyList':
copyfuncs.c:2660: error: 'assert_enabled' undeclared (first use in this function)
copyfuncs.c:2660: error: (Each undeclared identifier is reported only once
copyfuncs.c:2660: error: for each function it appears in.)
copyfuncs.c:2660: warning: passing argument 1 of 'list_length' discards qualifiers from pointer target type
../../src/include/parser/pg_list.h:100: note: expected 'struct List *' but argument is of type 'const struct List *'
copyfuncs.c:2660: warning: implicit declaration of function 'ExceptionalCondition'
make[2]: *** [copyfuncs.o] Error 1
make[2]: Leaving directory `/home/t-ishii/work/git.postgresql.org/pgpool2/src/parser'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/t-ishii/work/git.postgresql.org/pgpool2/src'
make: *** [all-recursive] Error 1

Besides configure does not accept --enable-cassert, I have seen the
erros above if I manually set

#define USE_ASSERT_CHECKING

in pool_type.h.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp


More information about the pgpool-hackers mailing list