Re: libpq.dll (Win32) for rel. 7.3.2 missing some exports

Started by Bruce Momjianabout 23 years ago2 messagespatches
Jump to latest
#1Bruce Momjian
bruce@momjian.us

Patch applied. Thanks.

---------------------------------------------------------------------------

Karl Waclawek wrote:

Attached is a diff (against current CVS), but just for libpq, not for psql.

There are now two WIN32 scopes, one for MinGW, the other for MS/Borland.

I used something like this to differentiate:
#if defined(WIN32) && (defined(_MSC_VER) || defined(__BORLANDC__))

Both, Borland BCC5.5 and MS VC++ 6.0 compile now.
I was surprised that it compiles for you under MinGW,
which would mean that postmaster.c needs to be compiled
when building libpq.

I briefly looked at psql, but it got confusing, since there are
new changes that break my patch, and I don't have the time right now.

Karl

[ Attachment, skipping... ]

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#2Bruce Momjian
bruce@momjian.us
In reply to: Bruce Momjian (#1)

Patch applied to fix this. Thanks.

---------------------------------------------------------------------------

Karl Waclawek wrote:

I just applied the following patch which should fix this on your
platform. Thanks.

I got the following error from VC++:

getaddrinfo.c
..\..\include\port.h(15) : fatal error C1083: Cannot open include file: 'pwd.h':
No such file or directory
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' : return co
de '0x2'
Stop.

And from BCC 5.5 I got:

bcc32.exe -o".\Release\win32" -If:\applications\borland\bcc55\include;..
\..\include -WD -c -DFRONTEND;NDEBUG;WIN32;_WINDOWS;HAVE_VSNPRINTF;HAVE_STRDUP;
-tWM -a8 -X -w-use -w-par -w-pia -w-csu -w-aus -w-ccc -O -Oi -OS -DNDEBUG .\wi
n32.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
.\win32.c:
bcc32.exe -o".\Release\getaddrinfo" -If:\applications\borland\bcc55\incl
ude;..\..\include -WD -c -DFRONTEND;NDEBUG;WIN32;_WINDOWS;HAVE_VSNPRINTF;HAVE_ST
RDUP; -tWM -a8 -X -w-use -w-par -w-pia -w-csu -w-aus -w-ccc -O -Oi -OS -DNDEBU
G ..\..\port\getaddrinfo.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
..\..\port\getaddrinfo.c:
Error E2209 ..\..\include\port.h 15: Unable to open include file 'pwd.h'
Error E2209 ..\..\include\port.h 16: Unable to open include file 'netdb.h'
Error E2040 ..\..\include\port.h 99: Declaration terminated incorrectly
*** 3 errors in Compile ***

I updated with WinCVS to get the clean copy.

Karl

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Attachments:

/bjm/difftext/plainDownload+2-0