troubles with setuid patch

From: yasen <yasen(at)gpc-bg(dot)com>
To: pgsql-novice(at)postgresql(dot)org, pgsql-patches(at)postgresql(dot)org
Subject: troubles with setuid patch
Date: 2001-09-26 08:29:24
Message-ID: 3BB183D4.2AC78BD0@gpc-bg.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice pgsql-patches

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.

Browse pgsql-novice by date

  From Date Subject
Next Message Hawke Robinson 2001-09-26 16:19:19 createlang pltcl mydb fails...
Previous Message Yeo Eng Hee 2001-09-26 07:09:38 Postgresql and OpenSSL 0.9.6x

Browse pgsql-patches by date

  From Date Subject
Next Message Marko Kreen 2001-09-26 10:02:26 Re: pgcrypto Makefile update
Previous Message Michael Meskes 2001-09-25 18:15:06 Re: Problem with setlocale (found in libecpg) [accessing a memory location after freeing it]