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

Re: [Mingw-users] Re: How to build thread-safe postgresql 8.x

From: Matt England <mengland(at)mengland(dot)net>
To: mingw-users(at)lists(dot)sourceforge(dot)net
Cc: mingw-users(at)lists(dot)sourceforge(dot)net, "pgsql-ports(at)postgresql(dot)org" <pgsql-ports(at)postgresql(dot)org>, mengland(at)mengland(dot)net
Subject: Re: [Mingw-users] Re: How to build thread-safe postgresql 8.x
Date: 2006-03-07 01:48:22
Message-ID: 6.1.2.0.2.20060306194603.06570ec0@127.0.0.1 (view raw or flat)
Thread:
Lists: pgsql-ports
At 3/6/2006 05:11 PM, Matt England wrote:
>At 3/6/2006 04:29 PM, Earnie Boyd wrote:
>>Quoting Matt England <mengland(at)mengland(dot)net>:
>>$ make
>>>[...]
>>>dlltool --export-all  --output-def ecpg.def execute.o typename.o 
>>>descriptor.o data.o error.o prepare.o memory.o connect.o misc.o path.o 
>>>exec.o snprintf.o
>>>dllwrap  -o libecpg.dll --dllname libecpg.dll  --def ecpg.def execute.o 
>>>typename.o descriptor.o data.o error.o prepare.o memory.o connect.o 
>>>misc.o path.o exec.o snprintf.o -L../pgtypeslib 
>>>-L../../../../src/interfaces/libpq -L../../../../src/port -lpgtypes -lpq 
>>>-lm -lshfolder
>>
>>Where is -lpthreads?
>
>I don't know.  I'm cross-posting to the pgsql-ports(at)postgresql(dot)org list 
>with these messages, but I haven't seen a message from them yet.
>
>I'm not sure how I get they to insert a -lpthreads besides manually 
>changing their Makefile(s).  Anybody know of a way to do this from 
>postgres' configure line?

It helps if one names the library created by 
<http://sources.redhat.com/pthreads-win32/> as /mingw/lib/libpthreads.a 
...instead of using the native file name created in the pthreads-win32 
build (and for the record, copy the 3 Pre-built/include header files from 
pthreads-win32 into /mingw/include).

So I did that, and the make process now tells me:

"All of PostgreSQL successfully made. Ready to install."

*whew*

-Matt 


In response to

pgsql-ports by date

Next:From: VOGLOZIN W. AmenelDate: 2006-03-11 13:44:58
Subject: 'Undefined reference' error message when linking an object file
Previous:From: Matt EnglandDate: 2006-03-06 23:11:17
Subject: Re: [Mingw-users] Re: How to build thread-safe postgresql 8.x

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