error: redefinition of typedef 'check_function_callback'
esabol opened this issue · 1 comments
esabol commented
Version: plpgsql_check-2.1.8
Platform: RHEL/CentOS 6.9, gcc 4.4.7, PostgreSQL 10.21
Yeah, I know RHEL/CentOS 6.9 and gcc 4.4.7 are ancient, but I routinely compile PostgreSQL and other extensions (q3c, pgsphere) from source without any issues. If they don't meet the minimum requirements you support, however, I understand.
Otherwise, am I doing something wrong? Thanks!
> make
gcc -Wextra -g -fPIC -I/local/postgres/install/10.21/lib/pgxs/src/makefiles/../../src/pl/plpgsql/src -Wall -I. -I./ -I/local/postgres/install/10.21/include/server -I/local/postgres/install/10.21/include/internal -D_GNU_SOURCE -c -o src/assign.o src/assign.c
In file included from /local/postgres/install/10.21/include/server/access/heapam.h:21,
from /local/postgres/install/10.21/include/server/nodes/execnodes.h:18,
from /local/postgres/install/10.21/include/server/commands/trigger.h:17,
from /local/postgres/install/10.21/include/server/plpgsql.h:21,
from src/plpgsql_check.h:3,
from src/assign.c:12:
/local/postgres/install/10.21/include/server/storage/bufpage.h: In function 'PageValidateSpecialPointer':
/local/postgres/install/10.21/include/server/storage/bufpage.h:309: warning: unused parameter 'page'
In file included from /local/postgres/install/10.21/include/server/executor/spi.h:17,
from /local/postgres/install/10.21/include/server/plpgsql.h:22,
from src/plpgsql_check.h:3,
from src/assign.c:12:
/local/postgres/install/10.21/include/server/lib/ilist.h: In function 'dlist_next_node':
/local/postgres/install/10.21/include/server/lib/ilist.h:421: warning: unused parameter 'head'
/local/postgres/install/10.21/include/server/lib/ilist.h: In function 'dlist_prev_node':
/local/postgres/install/10.21/include/server/lib/ilist.h:431: warning: unused parameter 'head'
/local/postgres/install/10.21/include/server/lib/ilist.h: In function 'slist_next_node':
/local/postgres/install/10.21/include/server/lib/ilist.h:622: warning: unused parameter 'head'
gcc -Wextra -g -fPIC -I/local/postgres/install/10.21/lib/pgxs/src/makefiles/../../src/pl/plpgsql/src -Wall -I. -I./ -I/local/postgres/install/10.21/include/server -I/local/postgres/install/10.21/include/internal -D_GNU_SOURCE -c -o src/catalog.o src/catalog.c
In file included from /local/postgres/install/10.21/include/server/access/heapam.h:21,
from /local/postgres/install/10.21/include/server/nodes/execnodes.h:18,
from /local/postgres/install/10.21/include/server/commands/trigger.h:17,
from /local/postgres/install/10.21/include/server/plpgsql.h:21,
from src/plpgsql_check.h:3,
from src/catalog.c:12:
/local/postgres/install/10.21/include/server/storage/bufpage.h: In function 'PageValidateSpecialPointer':
/local/postgres/install/10.21/include/server/storage/bufpage.h:309: warning: unused parameter 'page'
In file included from /local/postgres/install/10.21/include/server/executor/spi.h:17,
from /local/postgres/install/10.21/include/server/plpgsql.h:22,
from src/plpgsql_check.h:3,
from src/catalog.c:12:
/local/postgres/install/10.21/include/server/lib/ilist.h: In function 'dlist_next_node':
/local/postgres/install/10.21/include/server/lib/ilist.h:421: warning: unused parameter 'head'
/local/postgres/install/10.21/include/server/lib/ilist.h: In function 'dlist_prev_node':
/local/postgres/install/10.21/include/server/lib/ilist.h:431: warning: unused parameter 'head'
/local/postgres/install/10.21/include/server/lib/ilist.h: In function 'slist_next_node':
/local/postgres/install/10.21/include/server/lib/ilist.h:622: warning: unused parameter 'head'
gcc -Wextra -g -fPIC -I/local/postgres/install/10.21/lib/pgxs/src/makefiles/../../src/pl/plpgsql/src -Wall -I. -I./ -I/local/postgres/install/10.21/include/server -I/local/postgres/install/10.21/include/internal -D_GNU_SOURCE -c -o src/check_expr.o src/check_expr.c
In file included from /local/postgres/install/10.21/include/server/access/heapam.h:21,
from /local/postgres/install/10.21/include/server/nodes/execnodes.h:18,
from /local/postgres/install/10.21/include/server/commands/trigger.h:17,
from /local/postgres/install/10.21/include/server/plpgsql.h:21,
from src/plpgsql_check.h:3,
from src/check_expr.c:13:
/local/postgres/install/10.21/include/server/storage/bufpage.h: In function 'PageValidateSpecialPointer':
/local/postgres/install/10.21/include/server/storage/bufpage.h:309: warning: unused parameter 'page'
In file included from /local/postgres/install/10.21/include/server/executor/spi.h:17,
from /local/postgres/install/10.21/include/server/plpgsql.h:22,
from src/plpgsql_check.h:3,
from src/check_expr.c:13:
/local/postgres/install/10.21/include/server/lib/ilist.h: In function 'dlist_next_node':
/local/postgres/install/10.21/include/server/lib/ilist.h:421: warning: unused parameter 'head'
/local/postgres/install/10.21/include/server/lib/ilist.h: In function 'dlist_prev_node':
/local/postgres/install/10.21/include/server/lib/ilist.h:431: warning: unused parameter 'head'
/local/postgres/install/10.21/include/server/lib/ilist.h: In function 'slist_next_node':
/local/postgres/install/10.21/include/server/lib/ilist.h:622: warning: unused parameter 'head'
gcc -Wextra -g -fPIC -I/local/postgres/install/10.21/lib/pgxs/src/makefiles/../../src/pl/plpgsql/src -Wall -I. -I./ -I/local/postgres/install/10.21/include/server -I/local/postgres/install/10.21/include/internal -D_GNU_SOURCE -c -o src/check_function.o src/check_function.c
In file included from /local/postgres/install/10.21/include/server/access/heapam.h:21,
from /local/postgres/install/10.21/include/server/nodes/execnodes.h:18,
from /local/postgres/install/10.21/include/server/commands/trigger.h:17,
from /local/postgres/install/10.21/include/server/plpgsql.h:21,
from src/plpgsql_check.h:3,
from src/check_function.c:13:
/local/postgres/install/10.21/include/server/storage/bufpage.h: In function 'PageValidateSpecialPointer':
/local/postgres/install/10.21/include/server/storage/bufpage.h:309: warning: unused parameter 'page'
In file included from /local/postgres/install/10.21/include/server/executor/spi.h:17,
from /local/postgres/install/10.21/include/server/plpgsql.h:22,
from src/plpgsql_check.h:3,
from src/check_function.c:13:
/local/postgres/install/10.21/include/server/lib/ilist.h: In function 'dlist_next_node':
/local/postgres/install/10.21/include/server/lib/ilist.h:421: warning: unused parameter 'head'
/local/postgres/install/10.21/include/server/lib/ilist.h: In function 'dlist_prev_node':
/local/postgres/install/10.21/include/server/lib/ilist.h:431: warning: unused parameter 'head'
/local/postgres/install/10.21/include/server/lib/ilist.h: In function 'slist_next_node':
/local/postgres/install/10.21/include/server/lib/ilist.h:622: warning: unused parameter 'head'
gcc -Wextra -g -fPIC -I/local/postgres/install/10.21/lib/pgxs/src/makefiles/../../src/pl/plpgsql/src -Wall -I. -I./ -I/local/postgres/install/10.21/include/server -I/local/postgres/install/10.21/include/internal -D_GNU_SOURCE -c -o src/expr_walk.o src/expr_walk.c
In file included from /local/postgres/install/10.21/include/server/access/heapam.h:21,
from /local/postgres/install/10.21/include/server/nodes/execnodes.h:18,
from /local/postgres/install/10.21/include/server/commands/trigger.h:17,
from /local/postgres/install/10.21/include/server/plpgsql.h:21,
from src/plpgsql_check.h:3,
from src/expr_walk.c:12:
/local/postgres/install/10.21/include/server/storage/bufpage.h: In function 'PageValidateSpecialPointer':
/local/postgres/install/10.21/include/server/storage/bufpage.h:309: warning: unused parameter 'page'
In file included from /local/postgres/install/10.21/include/server/executor/spi.h:17,
from /local/postgres/install/10.21/include/server/plpgsql.h:22,
from src/plpgsql_check.h:3,
from src/expr_walk.c:12:
/local/postgres/install/10.21/include/server/lib/ilist.h: In function 'dlist_next_node':
/local/postgres/install/10.21/include/server/lib/ilist.h:421: warning: unused parameter 'head'
/local/postgres/install/10.21/include/server/lib/ilist.h: In function 'dlist_prev_node':
/local/postgres/install/10.21/include/server/lib/ilist.h:431: warning: unused parameter 'head'
/local/postgres/install/10.21/include/server/lib/ilist.h: In function 'slist_next_node':
/local/postgres/install/10.21/include/server/lib/ilist.h:622: warning: unused parameter 'head'
src/expr_walk.c: At top level:
src/expr_walk.c:31: error: redefinition of typedef 'check_function_callback'
/local/postgres/install/10.21/include/server/nodes/nodeFuncs.h:30: note: previous declaration of 'check_function_callback' was here
make: *** [src/expr_walk.o] Error 1
okbob commented
It was dead code, and on some modern compilers it is ignored. I removed it, so please, test again.