Not able to build libpq for Windows using 8.0.0 beta1

From: "Vidyasagara Guntaka" <vguntaka(at)candera(dot)com>
To: "pgsql-general" <pgsql-general(at)postgresql(dot)org>, <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Not able to build libpq for Windows using 8.0.0 beta1
Date: 2004-08-24 15:23:37
Message-ID: 5F90B589E007484AA3C305D4AE984C7513FE5D@mail2.confluencenetworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers-win32

Hi,

I'm not able to compile libpq for Windows environment using the 8.0.0 beta 1 source tree. I got the following errors (The entire compilation output is listed below):

C:\temp\postgresql-8.0.0beta1\src>nmake /f win32.mak

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

cd include
if not exist pg_config.h copy pg_config.h.win32 pg_config.h
cd ..
cd interfaces\libpq
nmake /f win32.mak

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

Building the Win32 static library...

cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nma03256.
getaddrinfo.c
cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmb03256.
pgstrcasecmp.c
cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmc03256.
thread.c
cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmd03256.
inet_aton.c
cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nme03256.
crypt.c
cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmf03256.
noblock.c
cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmg03256.
dllist.c
cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmh03256.
md5.c
cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmi03256.
ip.c
cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmj03256.
wchar.c
cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmk03256.
encnames.c
cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nml03256.
win32.c
fe-auth.c
fe-protocol2.c
fe-protocol3.c
fe-connect.c
fe-exec.c
fe-lobj.c
fe-misc.c
fe-print.c
fe-secure.c
pqexpbuffer.c
pthread-win32.c
link.exe -lib @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmm03256.
cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmn03256.
libpqdll.c
rc.exe /l 0x409 /fo".\Release\libpq.res" libpq.rc
link.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmo03256.
Creating library .\Release\libpqdll.lib and object .\Release\libpqdll.exp
cd ..\..\bin\psql
nmake /f win32.mak

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nma04004.
sprompt.c
cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmb04004.
getopt.c
cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmc04004.
getopt_long.c
cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmd04004.
path.c
..\..\port\path.c(148) : error C2065: 'PGBINDIR' : undeclared identifier
..\..\port\path.c(148) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(148) : warning C4024: 'relative_path' : different types for formal and actual parameter 1
..\..\port\path.c(148) : error C2065: 'PGSHAREDIR' : undeclared identifier
..\..\port\path.c(148) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(148) : warning C4024: 'relative_path' : different types for formal and actual parameter 2
..\..\port\path.c(151) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(151) : warning C4024: 'strncpy' : different types for formal and actual parameter 2
..\..\port\path.c(165) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(165) : warning C4024: 'relative_path' : different types for formal and actual parameter 1
..\..\port\path.c(182) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(182) : warning C4024: 'relative_path' : different types for formal and actual parameter 1
..\..\port\path.c(182) : error C2065: 'INCLUDEDIR' : undeclared identifier
..\..\port\path.c(182) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(182) : warning C4024: 'relative_path' : different types for formal and actual parameter 2
..\..\port\path.c(185) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(185) : warning C4024: 'strncpy' : different types for formal and actual parameter 2
..\..\port\path.c(199) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(199) : warning C4024: 'relative_path' : different types for formal and actual parameter 1
..\..\port\path.c(199) : error C2065: 'PKGINCLUDEDIR' : undeclared identifier
..\..\port\path.c(199) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(199) : warning C4024: 'relative_path' : different types for formal and actual parameter 2
..\..\port\path.c(202) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(202) : warning C4024: 'strncpy' : different types for formal and actual parameter 2
..\..\port\path.c(216) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(216) : warning C4024: 'relative_path' : different types for formal and actual parameter 1
..\..\port\path.c(216) : error C2065: 'INCLUDEDIRSERVER' : undeclared identifier
..\..\port\path.c(216) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(216) : warning C4024: 'relative_path' : different types for formal and actual parameter 2
..\..\port\path.c(219) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(219) : warning C4024: 'strncpy' : different types for formal and actual parameter 2
..\..\port\path.c(233) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(233) : warning C4024: 'relative_path' : different types for formal and actual parameter 1
..\..\port\path.c(233) : error C2065: 'LIBDIR' : undeclared identifier
..\..\port\path.c(233) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(233) : warning C4024: 'relative_path' : different types for formal and actual parameter 2
..\..\port\path.c(236) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(236) : warning C4024: 'strncpy' : different types for formal and actual parameter 2
..\..\port\path.c(250) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(250) : warning C4024: 'relative_path' : different types for formal and actual parameter 1
..\..\port\path.c(250) : error C2065: 'PKGLIBDIR' : undeclared identifier
..\..\port\path.c(250) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(250) : warning C4024: 'relative_path' : different types for formal and actual parameter 2
..\..\port\path.c(253) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(253) : warning C4024: 'strncpy' : different types for formal and actual parameter 2
..\..\port\path.c(269) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(269) : warning C4024: 'relative_path' : different types for formal and actual parameter 1
..\..\port\path.c(269) : error C2065: 'LOCALEDIR' : undeclared identifier
..\..\port\path.c(269) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(269) : warning C4024: 'relative_path' : different types for formal and actual parameter 2
..\..\port\path.c(272) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(272) : warning C4024: 'strncpy' : different types for formal and actual parameter 2
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\NMAKE.EXE"' : return code '0x2'
Stop.

C:\temp\postgresql-8.0.0beta1\src>

When I looked for the undeclared identifiers, they were not defined anywhere in the source tree. Has anyone faced similar problems? Can someone please tell me how to fix this issue?

Thank you very much in advance,
Sagar.

Browse pgsql-general by date

  From Date Subject
Next Message Paul Thomas 2004-08-24 15:29:56 Re: [GENERAL] Dump and Restore
Previous Message Shelby Cain 2004-08-24 15:12:12 Re: Postgresql 8.0 beta 1 - strange cpu usage statistics and slow vacuuming

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Dave Page 2004-08-24 15:59:18 Re: postmaster.pid
Previous Message Shelby Cain 2004-08-24 15:12:12 Re: Postgresql 8.0 beta 1 - strange cpu usage statistics and slow vacuuming