Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
Lists: pgsql-novicepgsql-patches
I'm using postgresql 7.1.2 on openbsd 2.8, I have tried to apply
setuid functions
- 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
gmake -C src all
gmake[4]: Entering directory
gcc -c -I. -I../../../../src/include  -O2 -pipe -Wall
-Wmissing-prototypes -Wmissing-declarations -fpic -DPIC -o pl_parse.o
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
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 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.

pgsql-novice by date

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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group