Skip site navigation (1) Skip section navigation (2)

Beta5 libpq Build broken with MS .NET 2003

From: "Tony and Bryn Reina" <reina_ga(at)hotmail(dot)com>
To: <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Beta5 libpq Build broken with MS .NET 2003
Date: 2004-11-22 09:58:38
Message-ID: BAY23-DAV155E90172973D82A20033BE7C60@phx.gbl (view raw or flat)
Thread:
Lists: pgsql-hackers-win32
I just downloaded 8.0beta5 to see if I could build libpq.dll with MS Visual Studio .NET 2003 on Windows XP. The make file throws the error:

Building the Win32 static library...

        copy pthread.h.win32 pthread.h
        1 file(s) copied.
        echo #define SYSCONFDIR "" >pg_config_paths.h
        if not exist ".\Release/" mkdir ".\Release"
        cl.exe @C:\DOCUME~1\Tony\LOCALS~1\Temp\nm32F.tmp
getaddrinfo.c
c:\msys\1.0\home\Tony\postgresql-8.0.0beta5\src\include\port\win32.h(111) : error C2146: syntax error : missing ')' before identifier 'pid'
c:\msys\1.0\home\Tony\postgresql-8.0.0beta5\src\include\port\win32.h(111) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
c:\msys\1.0\home\Tony\postgresql-8.0.0beta5\src\include\port\win32.h(111) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
c:\msys\1.0\home\Tony\postgresql-8.0.0beta5\src\include\port\win32.h(111) : error C2143: syntax error : missing ')' before 'identifier'
c:\msys\1.0\home\Tony\postgresql-8.0.0beta5\src\include\port\win32.h(111) : error C2061: syntax error : identifier 'pid'
c:\msys\1.0\home\Tony\postgresql-8.0.0beta5\src\include\port\win32.h(111) : error C2059: syntax error : ';'
c:\msys\1.0\home\Tony\postgresql-8.0.0beta5\src\include\port\win32.h(111) : error C2059: syntax error : ')'
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio NET 2003\VC7\BIN\nmake.exe"' : return code '0x2'
Stop.


I looked at the offending line in win32.h and don't immediately see any errors with the ). Tried adding a ) before pid, but that causes more errors. Perhaps someone smarter can see where the problem is.

-Tony

pgsql-hackers-win32 by date

Next:From: Merlin MoncureDate: 2004-11-22 22:07:05
Subject: scalability issues on win32
Previous:From: Richard HuxtonDate: 2004-11-19 15:48:34
Subject: Re: There's any version that work on Windows 2000??

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group