<div dir="ltr">Hi<div><br></div><div>Please see the attached patch which adds the --enable-cassert option to the pgpool-II configure and once compiled with cassert enabled the assertion checking can be enabled or disabled from command line option (--debug-assertions or -x)</div>
<div><br></div><div>--usama</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 15, 2014 at 6:28 PM, Tatsuo Ishii <span dir="ltr">&lt;<a href="mailto:ishii@postgresql.org" target="_blank">ishii@postgresql.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Usama,<br>
<br>
A user reported that git master head has a problem with assertion enabled.<br>
<br>
Making all in parser<br>
make[2]: Entering directory `/home/t-ishii/work/<a href="http://git.postgresql.org/pgpool2/src/parser" target="_blank">git.postgresql.org/pgpool2/src/parser</a>&#39;<br>
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<br>

copyfuncs.c: In function &#39;_copyList&#39;:<br>
copyfuncs.c:2660: error: &#39;assert_enabled&#39; undeclared (first use in this function)<br>
copyfuncs.c:2660: error: (Each undeclared identifier is reported only once<br>
copyfuncs.c:2660: error: for each function it appears in.)<br>
copyfuncs.c:2660: warning: passing argument 1 of &#39;list_length&#39; discards qualifiers from pointer target type<br>
../../src/include/parser/pg_list.h:100: note: expected &#39;struct List *&#39; but argument is of type &#39;const struct List *&#39;<br>
copyfuncs.c:2660: warning: implicit declaration of function &#39;ExceptionalCondition&#39;<br>
make[2]: *** [copyfuncs.o] Error 1<br>
make[2]: Leaving directory `/home/t-ishii/work/<a href="http://git.postgresql.org/pgpool2/src/parser" target="_blank">git.postgresql.org/pgpool2/src/parser</a>&#39;<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory `/home/t-ishii/work/<a href="http://git.postgresql.org/pgpool2/src" target="_blank">git.postgresql.org/pgpool2/src</a>&#39;<br>
make: *** [all-recursive] Error 1<br>
<br>
Besides configure does not accept --enable-cassert, I have seen the<br>
erros above if I manually set<br>
<br>
#define USE_ASSERT_CHECKING<br>
<br>
in pool_type.h.<br>
<br>
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese: <a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
_______________________________________________<br>
pgpool-hackers mailing list<br>
<a href="mailto:pgpool-hackers@pgpool.net">pgpool-hackers@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-hackers" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-hackers</a><br>
</blockquote></div><br></div>