pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: PostgreSQL: libpq, win32 build
3+ messages / 2 participants
[nested] [flat]

* Re: PostgreSQL: libpq, win32 build
@ 2004-03-09 04:55 Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Bruce Momjian @ 2004-03-09 04:55 UTC (permalink / raw)
  To: David Turner <David@firepro.co.za>; +Cc: PostgreSQL-patches <pgsql-patches@postgresql.org>; pgsql-interfaces


This builds a debug version of the DLL's along with the non-debug
version.  Patch applied.  Thanks.


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

David Turner wrote:
> Hi
> 
> > > release build uses the cl flags "/MD /D NDEBUG".  Usually the debug
> > > build has a "D" suffix on the file name, so for example:
> > > 
> > > libpqd.dll     libpq, debug build
> > > libpqd.lib     libpq, debug build, import library
> > > libpq.dll      libpq, release build
> > > libpq.lib      libpq, release build, import library
> > > 
> > 
> > What do we do now?  Build just one file, a lib?
> 
> 
> Currently, src/interfaces/libpq/win32.mak builds a statically-linked
> library "libpq.lib", a debug dll "libpq.dll", import library for the
> debug dll "libpqdll.lib", a release dll "libpq.dll", import library for
> the release dll "libpqdll.lib".  To avoid naming clashes, I would make
> the debug dll and import libraries "libpqd.dll" and "libpqddll.lib".
> 
> Attached is src/interfaces/libpq/win32.mak, modified as I described.  I
> also had to make a copy of libpqdll.def to change the LIBRARY directive.
> 
> 
> Regards
> David Turner

Content-Description: libpqddll.def

[ Attachment, skipping... ]

Content-Description: win32.mak

[ 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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* PostgreSQL: libpq, win32 build
@ 2004-04-13 02:58 brian plummer <bplummer@hotmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: brian plummer @ 2004-04-13 02:58 UTC (permalink / raw)
  To: pgsql-interfaces

I can't believe that someone else hasn't seen this problem, so I must be 
doing something very basic, very wrong.  getaddrrinfo.c will not compile 
with:

nmake -f win32.mak

I get the following errors, which make perfect sense to me given the absence 
of these constructs in WIN32.  Thanks in advance for the help!!

==================================================
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

Building the Win32 static library...

	cl.exe @c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm34.tmp
getaddrinfo.c
..\..\port\getaddrinfo.c(47) : error C2079: 'sin' uses undefined struct 
'sockaddr_in'
..\..\port\getaddrinfo.c(54) : error C2065: 'AF_INET' : undeclared 
identifier
..\..\port\getaddrinfo.c(55) : error C2065: 'SOCK_STREAM' : undeclared 
identifier
..\..\port\getaddrinfo.c(60) : error C2065: 'AF_UNSPEC' : undeclared 
identifier
..\..\port\getaddrinfo.c(71) : error C2224: left of '.sin_family' must have 
struct/union type
..\..\port\getaddrinfo.c(76) : error C2224: left of '.sin_addr' must have 
struct/union type
..\..\port\getaddrinfo.c(76) : warning C4013: 'htonl' undefined; assuming 
extern returning int
..\..\port\getaddrinfo.c(76) : error C2065: 'INADDR_ANY' : undeclared 
identifier
..\..\port\getaddrinfo.c(79) : warning C4013: 'inet_aton' undefined; 
assuming extern returning int
..\..\port\getaddrinfo.c(79) : error C2224: left of '.sin_addr' must have 
struct/union type
..\..\port\getaddrinfo.c(87) : error C2079: 'hpstr' uses undefined struct 
'hostent'
..\..\port\getaddrinfo.c(91) : warning C4133: 'function' : incompatible 
types - from 'int *' to 'hostent *'
..\..\port\getaddrinfo.c(98) : error C2065: 'h_errno' : undeclared 
identifier
..\..\port\getaddrinfo.c(100) : error C2065: 'HOST_NOT_FOUND' : undeclared 
identifier
..\..\port\getaddrinfo.c(100) : error C2051: case expression not constant
..\..\port\getaddrinfo.c(101) : error C2065: 'NO_DATA' : undeclared 
identifier
..\..\port\getaddrinfo.c(101) : error C2051: case expression not constant
..\..\port\getaddrinfo.c(103) : error C2065: 'TRY_AGAIN' : undeclared 
identifier
..\..\port\getaddrinfo.c(103) : error C2051: case expression not constant
..\..\port\getaddrinfo.c(105) : error C2065: 'NO_RECOVERY' : undeclared 
identifier
..\..\port\getaddrinfo.c(105) : error C2051: case expression not constant
..\..\port\getaddrinfo.c(110) : error C2037: left of 'h_addrtype' specifies 
undefined struct/union 'hostent'
..\..\port\getaddrinfo.c(113) : error C2224: left of '.sin_addr' must have 
struct/union type
..\..\port\getaddrinfo.c(113) : error C2037: left of 'h_addr' specifies 
undefined struct/union 'hostent'
..\..\port\getaddrinfo.c(113) : error C2037: left of 'h_length' specifies 
undefined struct/union 'hostent'
..\..\port\getaddrinfo.c(113) : error C2168: 'memcpy' : too few actual 
parameters for intrinsic function
..\..\port\getaddrinfo.c(119) : error C2224: left of '.sin_addr' must have 
struct/union type
..\..\port\getaddrinfo.c(121) : error C2224: left of '.sin_addr' must have 
struct/union type
..\..\port\getaddrinfo.c(121) : error C2065: 'INADDR_LOOPBACK' : undeclared 
identifier
..\..\port\getaddrinfo.c(125) : error C2224: left of '.sin_port' must have 
struct/union type
..\..\port\getaddrinfo.c(125) : warning C4013: 'htons' undefined; assuming 
extern returning int
..\..\port\getaddrinfo.c(135) : error C2027: use of undefined type 
'sockaddr_in'
        ..\..\port\getaddrinfo.c(47) : see declaration of 'sockaddr_in'
..\..\port\getaddrinfo.c(142) : error C2027: use of undefined type 
'sockaddr_in'
        ..\..\port\getaddrinfo.c(47) : see declaration of 'sockaddr_in'
..\..\port\getaddrinfo.c(148) : error C2027: use of undefined type 
'sockaddr_in'
        ..\..\port\getaddrinfo.c(47) : see declaration of 'sockaddr_in'
..\..\port\getaddrinfo.c(238) : error C2037: left of 'sa_family' specifies 
undefined struct/union 'sockaddr'
..\..\port\getaddrinfo.c(242) : warning C4013: 'inet_ntoa' undefined; 
assuming extern returning int
..\..\port\getaddrinfo.c(242) : error C2037: left of 'sin_addr' specifies 
undefined struct/union 'sockaddr_in'
..\..\port\getaddrinfo.c(242) : warning C4047: '=' : 'char *' differs in 
levels of indirection from 'int'
..\..\port\getaddrinfo.c(243) : warning C4013: 'snprintf' undefined; 
assuming extern returning int
..\..\port\getaddrinfo.c(253) : error C2037: left of 'sa_family' specifies 
undefined struct/union 'sockaddr'
..\..\port\getaddrinfo.c(256) : warning C4013: 'ntohs' undefined; assuming 
extern returning int
..\..\port\getaddrinfo.c(256) : error C2037: left of 'sin_port' specifies 
undefined struct/union 'sockaddr_in'
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.

_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* PostgreSQL: libpq, win32 build
@ 2004-04-19 14:13 brian plummer <bplummer@hotmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: brian plummer @ 2004-04-19 14:13 UTC (permalink / raw)
  To: pgsql-interfaces

I can't believe that someone else hasn't seen this problem, so I must be 
doing
something very basic, very wrong.  getaddrrinfo.c will not compile with:

nmake -f win32.mak

I get the following errors, which make perfect sense to me given the absence 
of
these constructs in WIN32.  Thanks in advance for the help!!

==================================================
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

Building the Win32 static library...

	cl.exe @c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm34.tmp
getaddrinfo.c
..\..\port\getaddrinfo.c(47) : error C2079: 'sin' uses undefined struct
'sockaddr_in'
..\..\port\getaddrinfo.c(54) : error C2065: 'AF_INET' : undeclared 
identifier
..\..\port\getaddrinfo.c(55) : error C2065: 'SOCK_STREAM' : undeclared
identifier
..\..\port\getaddrinfo.c(60) : error C2065: 'AF_UNSPEC' : undeclared 
identifier
..\..\port\getaddrinfo.c(71) : error C2224: left of '.sin_family' must have
struct/union type
..\..\port\getaddrinfo.c(76) : error C2224: left of '.sin_addr' must have
struct/union type
..\..\port\getaddrinfo.c(76) : warning C4013: 'htonl' undefined; assuming 
extern
returning int
..\..\port\getaddrinfo.c(76) : error C2065: 'INADDR_ANY' : undeclared 
identifier
..\..\port\getaddrinfo.c(79) : warning C4013: 'inet_aton' undefined; 
assuming
extern returning int
..\..\port\getaddrinfo.c(79) : error C2224: left of '.sin_addr' must have
struct/union type
..\..\port\getaddrinfo.c(87) : error C2079: 'hpstr' uses undefined struct
'hostent'
..\..\port\getaddrinfo.c(91) : warning C4133: 'function' : incompatible 
types -
from 'int *' to 'hostent *'
..\..\port\getaddrinfo.c(98) : error C2065: 'h_errno' : undeclared 
identifier
..\..\port\getaddrinfo.c(100) : error C2065: 'HOST_NOT_FOUND' : undeclared
identifier
..\..\port\getaddrinfo.c(100) : error C2051: case expression not constant
..\..\port\getaddrinfo.c(101) : error C2065: 'NO_DATA' : undeclared 
identifier
..\..\port\getaddrinfo.c(101) : error C2051: case expression not constant
..\..\port\getaddrinfo.c(103) : error C2065: 'TRY_AGAIN' : undeclared 
identifier
..\..\port\getaddrinfo.c(103) : error C2051: case expression not constant
..\..\port\getaddrinfo.c(105) : error C2065: 'NO_RECOVERY' : undeclared
identifier
..\..\port\getaddrinfo.c(105) : error C2051: case expression not constant
..\..\port\getaddrinfo.c(110) : error C2037: left of 'h_addrtype' specifies
undefined struct/union 'hostent'
..\..\port\getaddrinfo.c(113) : error C2224: left of '.sin_addr' must have
struct/union type
..\..\port\getaddrinfo.c(113) : error C2037: left of 'h_addr' specifies
undefined struct/union 'hostent'
..\..\port\getaddrinfo.c(113) : error C2037: left of 'h_length' specifies
undefined struct/union 'hostent'
..\..\port\getaddrinfo.c(113) : error C2168: 'memcpy' : too few actual
parameters for intrinsic function
..\..\port\getaddrinfo.c(119) : error C2224: left of '.sin_addr' must have
struct/union type
..\..\port\getaddrinfo.c(121) : error C2224: left of '.sin_addr' must have
struct/union type
..\..\port\getaddrinfo.c(121) : error C2065: 'INADDR_LOOPBACK' : undeclared
identifier
..\..\port\getaddrinfo.c(125) : error C2224: left of '.sin_port' must have
struct/union type
..\..\port\getaddrinfo.c(125) : warning C4013: 'htons' undefined; assuming
extern returning int
..\..\port\getaddrinfo.c(135) : error C2027: use of undefined type 
'sockaddr_in'
        ..\..\port\getaddrinfo.c(47) : see declaration of 'sockaddr_in'
..\..\port\getaddrinfo.c(142) : error C2027: use of undefined type 
'sockaddr_in'
        ..\..\port\getaddrinfo.c(47) : see declaration of 'sockaddr_in'
..\..\port\getaddrinfo.c(148) : error C2027: use of undefined type 
'sockaddr_in'
        ..\..\port\getaddrinfo.c(47) : see declaration of 'sockaddr_in'
..\..\port\getaddrinfo.c(238) : error C2037: left of 'sa_family' specifies
undefined struct/union 'sockaddr'
..\..\port\getaddrinfo.c(242) : warning C4013: 'inet_ntoa' undefined; 
assuming
extern returning int
..\..\port\getaddrinfo.c(242) : error C2037: left of 'sin_addr' specifies
undefined struct/union 'sockaddr_in'
..\..\port\getaddrinfo.c(242) : warning C4047: '=' : 'char *' differs in 
levels
of indirection from 'int'
..\..\port\getaddrinfo.c(243) : warning C4013: 'snprintf' undefined; 
assuming
extern returning int
..\..\port\getaddrinfo.c(253) : error C2037: left of 'sa_family' specifies
undefined struct/union 'sockaddr'
..\..\port\getaddrinfo.c(256) : warning C4013: 'ntohs' undefined; assuming
extern returning int
..\..\port\getaddrinfo.c(256) : error C2037: left of 'sin_port' specifies
undefined struct/union 'sockaddr_in'
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2004-04-19 14:13 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-03-09 04:55 Re: PostgreSQL: libpq, win32 build Bruce Momjian <pgman@candle.pha.pa.us>
2004-04-13 02:58 PostgreSQL: libpq, win32 build brian plummer <bplummer@hotmail.com>
2004-04-19 14:13 PostgreSQL: libpq, win32 build brian plummer <bplummer@hotmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox