Re: [GENERAL] Compilation fails --with-ssl on Solaris 8
Re: [GENERAL] Compilation fails --with-ssl on Solaris 8
От:
Justin Clift <justin@postgresql.org>
Дата:
Hi Arcady,
This problem occurs with some versions of OpenSSL on Solaris and
Unixware.
There's an installation guide for PostgreSQL 7.1.1 on Solaris 7/8, and
includes the fix needed for getting SSL to work in your scenario. The
installation guide is at :
http://techdocs.postgresql.org/installguides.php#solaris
Hope that's helpful.
:-)
Regards and best wishes,
Justin Clift
Arcady Genkin wrote:
>
> System:
>
> SunOS 5.8 Generic_108528-07 sun4u sparc SUNW,Ultra-Enterprise
>
> Configuration options:
>
> env CFLAGS='-O2 -pipe' ./configure --prefix=/opt/pgsql \
> --with-perl --with-python --with-CXX \
> --with-openssl=/local/lib/openssl
>
> Compilation fails with the following error:
>
> In file included from crypt.c:27:
> /usr/include/crypt.h:23: conflicting types for `des_encrypt'
> /local/lib/openssl/include/openssl/des.h:150: previous declaration of `des_encrypt'
> make[3]: *** [crypt.o] Error 1
> make[3]: Leaving directory `/admin/src/postgresql-7.1.1/src/backend/libpq'
> make[2]: *** [libpq-recursive] Error 2
> make[2]: Leaving directory `/admin/src/postgresql-7.1.1/src/backend'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/admin/src/postgresql-7.1.1/src'
> make: *** [all] Error 2
>
> --
> Arcady Genkin
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
--
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi
REPOST: redefining location of the socket file /tmp/.s.PGSQL.5432
От:
Arcady Genkin <a.genkin@utoronto.ca>
Дата:
I asked this in -general about ten days ago, but received no replies. Can I redefine location of the UNIX domain socket file to be other than /tmp/.s.PGSQL.5432? The problem is that there is a /tmp cleaning script on the Solaris system where Postgres is installed, which sweeps away anything older than 24 hours. Right now I'm getting away by having a cron job touch the file periodically, but this is not a nice solution. p.s. I'm sending this also to -bugs, because I think that the location of the socket file should be configurable (at least at compile time). Many thanks, -- Arcady Genkin
Re: [GENERAL] REPOST: redefining location of the socket file /tmp/.s.PGSQL.5432
От:
Martijn van Oosterhout <kleptog@svana.org>
Дата:
On Thu, Jun 07, 2001 at 06:02:53PM -0400, Arcady Genkin wrote: > I asked this in -general about ten days ago, but received no replies. > > Can I redefine location of the UNIX domain socket file to be other > than /tmp/.s.PGSQL.5432? The problem is that there is a /tmp cleaning > script on the Solaris system where Postgres is installed, which sweeps > away anything older than 24 hours. Right now I'm getting away by > having a cron job touch the file periodically, but this is not a nice > solution. Yes, it can be done. For example, the debian package moves it to /var/run iirc. However, to make this work you need to patch the postmaster to put it in a different place and patch the libpq to look for it in the new place. So it will need a recompile at least. > p.s. I'm sending this also to -bugs, because I think that the > location of the socket file should be configurable (at least at > compile time). Maybe it already is a #define. The debian patch should be available from the debian website. -- Martijn van Oosterhout http://svana.org/kleptog/