Re: libpq.dll (Win32) for rel. 7.3.2 missing some exports - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: libpq.dll (Win32) for rel. 7.3.2 missing some exports
Date
Msg-id 200306240044.h5O0ipq17624@candle.pha.pa.us
Whole thread Raw
List pgsql-patches
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
Index: src/include/port.h
===================================================================
RCS file: /cvsroot/pgsql-server/src/include/port.h,v
retrieving revision 1.7
diff -c -c -r1.7 port.h
*** src/include/port.h    14 Jun 2003 14:35:42 -0000    1.7
--- src/include/port.h    24 Jun 2003 00:43:16 -0000
***************
*** 11,19 ****
--- 11,21 ----
   *-------------------------------------------------------------------------
   */

+ #if !defined(_MSC_VER) && !defined(__BORLANDC__)
  /* for thread.c */
  #include <pwd.h>
  #include <netdb.h>
+ #endif

  /* Portable path handling for Unix/Win32 */
  bool is_absolute_path(const char *filename);

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] ss_family in hba.c
Next
From: Bruce Momjian
Date:
Subject: Re: ecpg compile (compatlib)