473,378 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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
0 1305

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Saravanan A | last post by:
Hello All, I am having the following problem in PostgreSQL build process. If anyone came across this, pls give me a solution to solve this. I followed the steps below given at the build time....
20
by: Moty Michaely | last post by:
Hello, Can anyone please help me finding a good way to develop a c# winforms application client for a pre-developed windows service? Should I use wse2 with tcp protocol? Bu I still have win98...
3
by: Adam Bukla | last post by:
Hi! I started programming PostgreSQL database with libpq API (client side). It looks very easy, but unexpected I found problem, which I cannot solve myself. If function PQexec fails, I can get...
5
by: Karam Chand | last post by:
Hello Thanks for all the reponses yesterday for my queries regarding moving from MySQL to PgSQL. As I see there is no native port of POstgresql for Windows. My applications is being developed...
2
by: alltest1 | last post by:
Hi, I am wondering if it is thread-safe to use both JDBC and libpq simultaneously. On a Linux, JDBC is used by Tomcat and libpq is used by a client software written in C language. So JDBC and...
4
by: Wayne Fang | last post by:
Hi, For various reasons (parallel structure with existing code, commonality of concepts, etc), we have C language functions implemented that use libpq to make a new connection to the same Postgres...
0
by: Vidyasagara Guntaka | last post by:
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:...
1
by: Vidyasagara Guntaka | last post by:
Hi, I am not able to build the libpq for windows using the 8.0 beta1 version source code. I posted this message for couple of time by now. I did not getany responses. Is this supposed to be...
3
by: Dann Corbit | last post by:
U:\postgresql-8.0.0beta2\src\interfaces\libpq>nmake /f win32.mak Microsoft (R) Program Maintenance Utility Version 8.00.40607.16 Copyright (C) Microsoft Corporation. All rights reserved. ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.