Re: Howto build libpq.dll using VC2003 and ENABLE_THREAD_SAFETY=1

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Pit M(dot)" <fmi-soft(at)gmx(dot)de>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Howto build libpq.dll using VC2003 and ENABLE_THREAD_SAFETY=1
Date: 2005-08-10 16:02:01
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE6C7877@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Building without ENABLE_THREAD_SAFETY=1 works fine, but when
> i add this option to the win32.mak some compiler error occur.
>
> d:\postgresql-8.0.3\src\interfaces\libpq\libpq-int.h(481) : error
> C2143: syntax error : missing ')' before '*'
> d:\postgresql-8.0.3\src\interfaces\libpq\libpq-int.h(481) : error
> C2143: syntax error : missing '{' before '*'
> d:\\postgresql-8.0.3\src\interfaces\libpq\libpq-int.h(481) : error
> C2371: 'bool' : redefinition; different basic types
> d:\postgresql-8.0.3\src\include\c.h(174) : see
> declaration of 'bool'
> d:\postgresql-8.0.3\src\interfaces\libpq\libpq-int.h(481) : error
> C2143: syntax error : missing ';' before '*'
> d:\postgresql-8.0.3\src\interfaces\libpq\libpq-int.h(481) : error
> C2059: syntax error : ')'
> ...
>
> It looks like sigset_t is not defined.
> Please help.
>
> Pit :-)

I beleive there is a patch floating around for
libpq-threadsafe-on-win32, but it hasn't been applied yet. Check the
archives, IIRC it was by Dave Page.

//Magnus

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2005-08-10 16:09:53 Re: pgsql and php with windows.
Previous Message Magnus Hagander 2005-08-10 16:01:24 Re: libpy and ENABLE_THREAD_SAFETY=1