I'm using postgresql 7.1.2 on openbsd 2.8, I have tried to apply
setuid functions
patch(http://volpe.home.mindspring.com/pgsql/set_auth.patch
- i read about it in postgresql mailing list) to postgresql source,
and I get the following error at the compile time (gmake):
================================================================================
gmake[3]: Entering directory
`/usr/src/postgresql-7.1.2/src/pl/plpgsql'
gmake -C src all
gmake[4]: Entering directory
`/usr/src/postgresql-7.1.2/src/pl/plpgsql/src'
gcc -c -I. -I../../../../src/include -O2 -pipe -Wall
-Wmissing-prototypes -Wmissing-declarations -fpic -DPIC -o pl_parse.o
pl_gram.c
In file included from gram.y:43:
scan.l: In function `plpgsql_yylex':
scan.l:119: `K_SET' undeclared (first use in this function)
scan.l:119: (Each undeclared identifier is reported only once
scan.l:119: for each function it appears in.)
scan.l:120: `K_AUTHORIZATION' undeclared (first use in this function)
scan.l:121: `K_INVOKER' undeclared (first use in this function)
scan.l:122: `K_DEFINER' undeclared (first use in this function)
lex.plpgsql_yy.c:1019: warning: label `find_rule' defined but not used
gram.y: At top level:
lex.plpgsql_yy.c:2315: warning: `plpgsql_yy_flex_realloc' defined but
not used
gmake[4]: *** [pl_parse.o] Error 1
gmake[4]: Leaving directory
`/usr/src/postgresql-7.1.2/src/pl/plpgsql/src'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory `/usr/src/postgresql-7.1.2/src/pl/plpgsql'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/src/postgresql-7.1.2/src/pl'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/src/postgresql-7.1.2/src'
gmake: *** [all] Error 2
===============================================================================
I think that author of the patch missed to modify pl.tab.h with his
definitions, but after I add missing definitions the setuid functions
still doesn't work despite succeful compilation.
Can you help me?
PS sry for my bad English.