467,074 Members | 880 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,074 developers. It's quick & easy.

Not able to build libpq for Windows using 8.0.0 beta1

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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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 *' differsin 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.

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 23 '05 #1
  • viewed: 1126
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Saravanan A | last post: by
20 posts views Thread by Moty Michaely | last post: by
5 posts views Thread by Karam Chand | last post: by
2 posts views Thread by alltest1 | last post: by
4 posts views Thread by Wayne Fang | last post: by
reply views Thread by Vidyasagara Guntaka | last post: by
1 post views Thread by Vidyasagara Guntaka | last post: by
3 posts views Thread by Dann Corbit | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.