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

problem in MS-VC6 environment.

From: "Hiroshi Saito" <saito(at)inetrt(dot)skcapi(dot)co(dot)jp>
To: <pgsql-patches(at)postgresql(dot)org>
Subject: problem in MS-VC6 environment.
Date: 2005-11-11 01:55:53
Message-ID: 07c201c5e663$0c67d7d0$01324d80@hiroshi5jz7dqj (view raw or flat)
Thread:
Lists: pgsql-patches
Hi Dave-san and Bruce-san.

I have the problem, when building by MS-VC6.
An error occurs in the 8.1.0 present source codes.

nmake -f win32.mak
..\..\port\getaddrinfo.c(244) : error C2065: 'WSA_NOT_ENOUGH_MEMORY'
..\..\port\getaddrinfo.c(342) : error C2065: 'WSATYPE_NOT_FOUND'

This is used by winsock2.h. However, Construction of a windows base is winsock.h.
Then, Since MinGW has special environment, this is right. but, it is not found in VC6.
Furthermore, in getaddrinfo.c, IPV6-API is used by LoadLibraryA("ws2_32");
Referring to of dll the external memory generates this violation by VC6 specification.

I considered whether the whole should have been converted into winsock2.
However, Now, DLL of MinGW creation operates wonderfully as it is.
That's right, it has pliability by replacement of simple DLL.
Then, I propose the system using winsock(non IPV6) in construction of VC6.

By this patch, the construction by VC6 finished obediently.

I may have some misapprehensions.Therefore, your suggestion is desired.
Thank you in advance for your understanding.

Regards,
Hiroshi Saito


Attachment: vcbuild_patch
Description: application/octet-stream (2.0 KB)

Responses

pgsql-patches by date

Next:From: Matt NewellDate: 2005-11-11 18:23:01
Subject: Multi-table-unique-constraint
Previous:From: Tom LaneDate: 2005-11-10 23:44:19
Subject: Re: foreign key constraints referencing inherited relations - WIP

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