libpq with SSL on VC 2010

From: "Ka55i0peia" <ka55i0peia(at)arcor(dot)de>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: libpq with SSL on VC 2010
Date: 2012-12-13 13:51:05
Message-ID: 003a01cdd938$e60ed4a0$b22c7de0$@arcor.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hey libpq-fans,

i have question compiling libpq on windows (VS2010 32 and 64bit) with SSL support.
I downloaded the latest source of
postgres http://www.postgresql.org/ftp/source/v9.2.2/ and also the OpenSSL Win64 v1.0.1c http://slproweb.com/products/Win32OpenSSL.html .
I ran nmake in libpq folder:

> cd postgresql-9.2.2\interfaces\libpq
> nmake /f win32.mak CPU=AMD64 USE_SSL=1 SSL_INC=C:\OpenSSL-Win64\include SSL_LIB_PATH=C:\OpenSSL-Win64\lib

Then the compile ends up, that he can not found bufferoverflowU.lib.
Searching a bit i found out, that this lib is deployed with the windows SDK and since VS 2005 not needed anymore (see http://stackoverflow.com/questions/2242665/vista-win-7-sdk-bufferoverflowu-lib-linking-error ).
So in libpq's make file (win32.mak:20) i commented out the line
20> ADD_SECLIB=bufferoverflowU.lib
and it compiles fine. I also didn't get any troubles testing this libpq with ssl, yet.

Do I need to have a bad conscience droping bufferoverflowU.lib from the build or is it just because the makefile is not for VS 2010?
(Btw: openssl has changed thier names of libs to *MD.lib respectively *MT.lib in VC folder. The old named libs are in C:\OpenSSL-Win64\lib, one dir up)

Can someone tell me if bufferoverflowU.lib is required in a VS2010 build?

Cheers,
550

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2012-12-13 14:32:21 Re: WIP patch for hint bit i/o mitigation
Previous Message Bruce Momjian 2012-12-13 13:46:45 Re: [PERFORM] encouraging index-only scans