Re: Error compiling sepgsql in PG9.1

From: Emanuel Calvo <postgres(dot)arg(at)gmail(dot)com>
To: Kohei Kaigai <Kohei(dot)Kaigai(at)emea(dot)nec(dot)com>
Cc: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>, postgresql Forums <pgsql-general(at)postgresql(dot)org>, KaiGai Kohei <kaigai(at)ak(dot)jp(dot)nec(dot)com>
Subject: Re: Error compiling sepgsql in PG9.1
Date: 2011-05-24 14:38:04
Message-ID: BANLkTik5pVcpe=QgHiU5+oOBnDv6sy8i4g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

2011/5/24 Kohei Kaigai <Kohei(dot)Kaigai(at)emea(dot)nec(dot)com>:
> I noticed that selinux_sepgsql_context_path(3) was also got merged at libselinux-2.0.83.
> So, we could check correctness of library versions using existence of this function.
>
> Does this patch expectedly abort the configure script on older libselinux installation?
> I'm not available to setup Ubuntu environment immediately.
>

I tried to apply your patch, and reject some lines:

ecalvo-laptop(at)dell-desktop:~/postgresql-9.1beta1$ cat configure.rej
--- configure.in
+++ configure.in
@@ -960,7 +960,7 @@

# for contrib/sepgsql
if test "$with_selinux" = yes; then
- AC_CHECK_LIB(selinux, getpeercon_raw, [],
+ AC_CHECK_LIB(selinux, selinux_sepgsql_context_path, [],
[AC_MSG_ERROR([library 'libselinux' is required for
SELinux support])])
fi

I'm not with CVS version, I'm using beta download. I need to update my CVS
version. at least I will apply these lines manually to test now.

--
--
              Emanuel Calvo
              Helpame.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2011-05-24 14:38:28 Re: Postgresql CBT
Previous Message Vick Khera 2011-05-24 14:36:43 Re: Postgresql CBT

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2011-05-24 14:53:49 Re: Adding an example for replication configuration to pg_hba.conf
Previous Message Robert Haas 2011-05-24 14:35:23 Re: Reducing overhead of frequent table locks