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

Problems with building libpq for windows

From: "Vidyasagara Guntaka" <vguntaka(at)candera(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Problems with building libpq for windows
Date: 2004-08-23 22:11:02
Message-ID: 5F90B589E007484AA3C305D4AE984C7513FE5C@mail2.confluencenetworks.com (view raw or flat)
Thread:
Lists: pgsql-general
Hi,

I recently downloaded source code for 8.0.0 beta1.  When I tried building the libpq for windows, I got some compilation errors.  Following the compilation output:
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 overcome this issue?

Thank you very much in advance,
Sagar.

pgsql-general by date

Next:From: Tom LaneDate: 2004-08-23 22:44:47
Subject: Re: UTF-8 and LIKE vs =
Previous:From: David WheelerDate: 2004-08-23 22:00:42
Subject: Re: UTF-8 and LIKE vs =

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