Building the psqlODBC enhanced branch (Windows)

Building the psqlODBC enhanced branch (Windows)

am 20.02.2006 10:45:54 von Dave Page

This is a multi-part message in MIME format.

------_=_NextPart_001_01C63602.71D022AD
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Hiroshi,

I've just started looking at building a test release of the
psqlodbc-enhanced branch. I have the following on my machine:

- OpenSSL 0.98, binary distribution installed in C:\OpenSSL
- PostgreSQL 8.1.3 pgInstaller distribution installed in C:\Program
Files\PostgreSQL\8.1
- Visual Studio 6.0

This machine is the standard setup we use for pgInstaller, pgAdmin and
current psqlODBC builds, so I'm keen to be able to build this branch of
the code with as few changes as possible.

The attached patch contains the changes I made to get a build in this
environment using the command line, however I still got the following
warnings:

link.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nma03328.
LINK : warning LNK4199: /DELAYLOAD:libpq ignored; no imports found from
libpq
LINK : warning LNK4199: /DELAYLOAD:ssleay32 ignored; no imports found
from ssleay32
Creating library .\Unicode30\psqlodbc.lib and object
..\Unicode30\psqlodbc.exp
LINK : warning LNK4199: /DELAYLOAD:libpq ignored; no imports found from
libpq
LINK : warning LNK4199: /DELAYLOAD:ssleay32 ignored; no imports found
from ssleay32

Anything to worry about there?

Regards, Dave.

------_=_NextPart_001_01C63602.71D022AD
Content-Type: application/octet-stream;
name="windows_build.diff"
Content-Transfer-Encoding: base64
Content-Description: windows_build.diff
Content-Disposition: attachment;
filename="windows_build.diff"

PyBkcC5kaWZmCj8gVW5pY29kZTMwCkluZGV4OiBsb2FkbGliLmMKPT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2c3Jvb3QvcHNxbG9kYmMv
cHNxbG9kYmMvQXR0aWMvbG9hZGxpYi5jLHYKcmV0cmlldmluZyByZXZpc2lv
biAxLjEuMi41CmRpZmYgLWMgLXIxLjEuMi41IGxvYWRsaWIuYwoqKiog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QR19MSUIpIiAvbGlicGF0aDoi
JChTU0xfTElCKSIKICBMSU5LMzJfT0JKUz0gXAogIAkiJChJTlRESVIpXGJp
bmQub2JqIiBcCiAgCSIkKElOVERJUilcY29sdW1uaW5mby5vYmoiIFwK

------_=_NextPart_001_01C63602.71D022AD
Content-Type: text/plain
Content-Disposition: inline
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

------_=_NextPart_001_01C63602.71D022AD--

Re: Building the psqlODBC enhanced branch (Windows)

am 20.02.2006 17:47:18 von Dave Page

=20

> -----Original Message-----
> From: Hiroshi Inoue [mailto:inoue@tpf.co.jp]=20
> Sent: 20 February 2006 15:33
> To: Dave Page
> Cc: Hiroshi Saito; psql-odbc@postgresql.org
> Subject: Re: Building the psqlODBC enhanced branch (Windows)
>=20
>=20
> Hmm, I'm using the libpq import library whose name is=20
> libpqdll.lib built=20
> via win32.mak.
> Is it inconsistent with the libpq libraries built via other ways ?

Yes - iirc, because the VC build of libpq builds a static and dynamic
library, libpqdll.lib being the dynamic one.

With anything we release now, it's good to be fully compatible with
existing builds of PostgreSQL and the pre-built binaries that it's built
around, hence I'm keen to make things work against the binary
distribution of OpenSSL and pgInstaller build of PostgreSQL.

> >however I still got the following
> >warnings:
> >
> >
>=20
> I'm using VC7 and don't see the warings. Well I seem to have removed=20
> some words
> another Hiroshi added for VC6 development. OK I've just put back the=20
> change.
> Please check it.

Yes, that clears up the warnings.

Regards, Dave.

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend