Re: compilig libpq with borland 5.5 - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: compilig libpq with borland 5.5
Date
Msg-id 200808160157.m7G1v6n23074@momjian.us
Whole thread Raw
In response to Re: compilig libpq with borland 5.5  ("Merlin Moncure" <mmoncure@gmail.com>)
Responses Re: compilig libpq with borland 5.5  ("claudio lezcano" <claudiogmi@gmail.com>)
List pgsql-hackers
Merlin Moncure wrote:
> On Thu, Jul 31, 2008 at 1:52 PM, claudio lezcano <claudiogmi@gmail.com> wrote:
> > Hi everybody
> >
> > Iam traying to build libpq.lib and libpq.dll library using Borland c++ 5.5
> > and i got these error:
> >
> > "Error libpq.rc 1 11: Cannot open file: winver.h"
> >
> > I opened the libpq.rc file and i saw the reference to that file "#include
> > <winver.h>"
> >
> > I cheched out the path and the existence of the file and everything is all
> > right.
> >
> > I actually find the file in the desired location.
> >
> > I don't know what to do to carry on my work.
> >
> > Can somebody help me out please?.
>
> Just in case you can't get it working, you can always take a msvc
> compiled libpq.dll and create a static library out of it with the
> 'implib' utility using the underscore option.

I have applied the attached patch to CVS HEAD and 8.3.X to sychronize
bcc with msvc makefiles.  Please let me know if you have further
problems.  Thanks for the report.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +
Index: src/interfaces/libpq/bcc32.mak
===================================================================
RCS file: /cvsroot/pgsql/src/interfaces/libpq/bcc32.mak,v
retrieving revision 1.29
diff -c -c -r1.29 bcc32.mak
*** src/interfaces/libpq/bcc32.mak    26 Feb 2008 13:31:40 -0000    1.29
--- src/interfaces/libpq/bcc32.mak    16 Aug 2008 01:53:58 -0000
***************
*** 93,104 ****
      -@erase "$(INTDIR)\fe-secure.obj"
      -@erase "$(INTDIR)\pqexpbuffer.obj"
      -@erase "$(INTDIR)\pqsignal.obj"
!     -@erase "$(OUTDIR)\win32.obj"
      -@erase "$(INTDIR)\wchar.obj"
      -@erase "$(INTDIR)\encnames.obj"
      -@erase "$(INTDIR)\pthread-win32.obj"
      -@erase "$(INTDIR)\snprintf.obj"
      -@erase "$(INTDIR)\strlcpy.obj"
      -@erase "$(OUTDIR)\$(OUTFILENAME).lib"
      -@erase "$(OUTDIR)\$(OUTFILENAME)dll.lib"
      -@erase "$(OUTDIR)\libpq.res"
--- 93,109 ----
      -@erase "$(INTDIR)\fe-secure.obj"
      -@erase "$(INTDIR)\pqexpbuffer.obj"
      -@erase "$(INTDIR)\pqsignal.obj"
!     -@erase "$(INTDIR)\win32.obj"
      -@erase "$(INTDIR)\wchar.obj"
      -@erase "$(INTDIR)\encnames.obj"
      -@erase "$(INTDIR)\pthread-win32.obj"
      -@erase "$(INTDIR)\snprintf.obj"
      -@erase "$(INTDIR)\strlcpy.obj"
+     -@erase "$(INTDIR)\dirent.obj"
+     -@erase "$(INTDIR)\dirmod.obj"
+     -@erase "$(INTDIR)\pgsleep.obj"
+     -@erase "$(INTDIR)\open.obj"
+     -@erase "$(INTDIR)\win32error.obj"
      -@erase "$(OUTDIR)\$(OUTFILENAME).lib"
      -@erase "$(OUTDIR)\$(OUTFILENAME)dll.lib"
      -@erase "$(OUTDIR)\libpq.res"
***************
*** 134,139 ****
--- 139,149 ----
      "$(INTDIR)\encnames.obj" \
      "$(INTDIR)\snprintf.obj" \
      "$(INTDIR)\strlcpy.obj" \
+     "$(INTDIR)\dirent.obj" \
+     "$(INTDIR)\dirmod.obj" \
+     "$(INTDIR)\pgsleep.obj" \
+     "$(INTDIR)\open.obj" \
+     "$(INTDIR)\win32error.obj" \
      "$(INTDIR)\pthread-win32.obj"


***************
*** 238,244 ****

  "$(INTDIR)\strlcpy.obj" : ..\..\port\strlcpy.c
      $(CPP) @<<
!     $(CPP_PROJ) ..\..\port\strlcpy.c
  <<


--- 248,279 ----

  "$(INTDIR)\strlcpy.obj" : ..\..\port\strlcpy.c
      $(CPP) @<<
!     $(CPP_PROJ) /I"." ..\..\port\strlcpy.c
! <<
!
! "$(INTDIR)\dirent.obj" : ..\..\port\dirent.c
!     $(CPP) @<<
!     $(CPP_PROJ) /I"." ..\..\port\dirent.c
! <<
!
! "$(INTDIR)\dirmod.obj" : ..\..\port\dirmod.c
!     $(CPP) @<<
!     $(CPP_PROJ) /I"." ..\..\port\dirmod.c
! <<
!
! "$(INTDIR)\pgsleep.obj" : ..\..\port\pgsleep.c
!     $(CPP) @<<
!     $(CPP_PROJ) /I"." ..\..\port\pgsleep.c
! <<
!
! "$(INTDIR)\open.obj" : ..\..\port\open.c
!     $(CPP) @<<
!     $(CPP_PROJ) /I"." ..\..\port\open.c
! <<
!
! "$(INTDIR)\win32error.obj" : ..\..\port\win32error.c
!     $(CPP) @<<
!     $(CPP_PROJ) /I"." ..\..\port\win32error.c
  <<



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Join Removal/ Vertical Partitioning
Next
From: Bruce Momjian
Date:
Subject: Re: Replay attack of query cancel