Unix Technical Forum

pgsql: Disble some Win32-specific code in win32-client-only builds: I

This is a discussion on pgsql: Disble some Win32-specific code in win32-client-only builds: I within the pgsql Committers forums, part of the PostgreSQL category; --> Log Message: ----------- Disble some Win32-specific code in win32-client-only builds: I have the problem, when building by MS-VC6. An ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Committers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 05:37 PM
Bruce Momjian
 
Posts: n/a
Default pgsql: Disble some Win32-specific code in win32-client-only builds: I

Log Message:
-----------
Disble some Win32-specific code in win32-client-only builds:

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.

Hiroshi Saito

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
pgsql/src/bin/pg_config:
win32.mak (r1.3 -> r1.3.2.1)
(http://developer.postgresql.org/cvsw...1.3&r2=1.3.2.1)
pgsql/src/include:
getaddrinfo.h (r1.17 -> r1.17.2.1)
(http://developer.postgresql.org/cvsw...17&r2=1.17.2.1)
pgsql/src/port:
getaddrinfo.c (r1.21 -> r1.21.2.1)
(http://developer.postgresql.org/cvsw...21&r2=1.21.2.1)

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:54 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com