Patch pgsql-7.2 AuthBlockSig

From: Heiko Lehmann <hlehmann(at)fh-lausitz(dot)de>
To: pgsql-bugs(at)postgresql(dot)org
Cc: Iris Ladusch <iladusch(at)fh-lausitz(dot)de>, Thomas Scholze <tscholze(at)fh-lausitz(dot)de>, Heiko Lehmann <hlehmann(at)fh-lausitz(dot)de>
Subject: Patch pgsql-7.2 AuthBlockSig
Date: 2002-02-22 10:45:36
Message-ID: Pine.LNX.4.21.0202221131420.13849-100000@lukas.fh-lausitz.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

HAllo!

We had a problem with to compile pgsql-7.2 under SW-8.0.
In the mailing lists I found no informations.
See note for further informations.

regards Heiko

(part of 020221.postgresql-7.2)
## ----------------------------------------------------------------------
## Problem AuthBlockSig
## - linux-2.4.14, sw-8.0, gcc-2.95.3
# make
...
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../src/include
-c -o pqsignal.o pqsignal.c
pqsignal.c: In function `pqinitmask':
pqsignal.c:122: `AuthBlockSig' undeclared (first use in this function)
pqsignal.c:122: (Each undeclared identifier is reported only once
pqsignal.c:122: for each function it appears in.)
make[3]: *** [pqsignal.o] Error 1
make[3]: Leaving directory `/var/tmp/postgresql-7.2/src/backend/libpq'
make[2]: *** [libpq-recursive] Error 2
make[2]: Leaving directory `/var/tmp/postgresql-7.2/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/postgresql-7.2/src'
make: *** [all] Error 2
## Define fuer AuthBlockSig scheint zu fehlen. Bug?!
## in pqsignal.h existieren 2 verschiedene Definitionen
## folgenden Patch einspielen:
## ---%<---
*** ./src/include/libpq/pqsignal.h.org Mon Nov 5 18:46:33 2001
--- ./src/include/libpq/pqsignal.h Thu Feb 21 18:51:39 2002
***************
*** 28,34 ****
#define PG_SETMASK(mask) sigprocmask(SIG_SETMASK, mask, NULL)
#else
extern int UnBlockSig,
! BlockSig;

#define PG_SETMASK(mask) sigsetmask(*((int*)(mask)))
#endif
--- 28,35 ----
#define PG_SETMASK(mask) sigprocmask(SIG_SETMASK, mask, NULL)
#else
extern int UnBlockSig,
! BlockSig,
! AuthBlockSig;

#define PG_SETMASK(mask) sigsetmask(*((int*)(mask)))
#endif
## ---%<---
## nun ist der Fehler weg. OK.
## --> mailto:pgsql-bugs(at)postgresql(dot)org
## ----------------------------------------------------------------------

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andy Marden 2002-02-22 12:17:59 Re: Full bug list
Previous Message pgsql-bugs 2002-02-22 08:24:04 Bug #600: how to run the Postgres postmaster with -i flag