Search Postgresql Archives

Re: error compiling postgres source

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Roshni-san.

First, thank you for the report of a good result. However, I don't know well about libpqxx.... Therefore, pushes on GENERAL-ML. Someone may be able to support.?

Regards,
Hiroshi Saito

----- Original Message ----- From: "Roshni Mani" <m.roshni@xxxxxxxxx>
To: "Hiroshi Saito" <z-saito@xxxxxxxxxxxxxxxx>
Sent: Friday, October 03, 2008 1:27 PM
Subject: RE: [GENERAL] error compiling postgres source


Hi,

 Thanks a lot for the help..i was able to compile postgres. I wanted
to use libpqxx in windows.it was specified in install.txt to compile
postgresql source,and it is said we hav to change the common file in
win32 folder and run the libpqxx.mak file to compile libpqxx.But there
is no "libpqxx.mak".A file named vc-libpqxx.mak.template is there
.should I hav to modify that file to compile libpqxx ??if u hav any idea
plz help me on that.

Thanks and regards
Roshni.

-----Original Message-----
From: Hiroshi Saito [mailto:z-saito@xxxxxxxxxxxxxxxx] Sent: Wednesday, October 01, 2008 6:31 PM
To: Roshni Mani
Subject: Re: [GENERAL] error compiling postgres source

Hi .

Ok, You can choose the environment of specification of SDK from a start
menu.!
Please see:-)

Regards,
Hiroshi Saito

----- Original Message ----- From: "Roshni Mani" <m.roshni@xxxxxxxxx>
To: "Hiroshi Saito" <z-saito@xxxxxxxxxxxxxxxx>
Sent: Wednesday, October 01, 2008 7:54 PM
Subject: RE: [GENERAL] error compiling postgres source


Hi,

  I have installed SDK separately....can you tell me what environment
variables to set??i'm new to this kind of things..

Thanks in advance,
Roshni

-----Original Message-----
From: Hiroshi Saito [mailto:z-saito@xxxxxxxxxxxxxxxx] Sent: Wednesday, October 01, 2008 3:01 PM
To: Roshni Mani
Subject: Re: [GENERAL] error compiling postgres source

Hi.

Is SDK set in the environment which you use? win32.mak can be used with Microsoft Visual C++ 2005 Edition However, SDK is independently required. and environment settings. Regards,
Hiroshi SAito

----- Original Message ----- From: "Roshni Mani" <m.roshni@xxxxxxxxx>
To: "Hiroshi Saito" <z-saito@xxxxxxxxxxxxxxxx>
Sent: Wednesday, October 01, 2008 6:14 PM
Subject: RE: [GENERAL] error compiling postgres source


Hi,

  Thanks for the reply .i deleted the said files ...but still the same
errors are coming..

Thanks and regards,
Roshni

-----Original Message-----
From: Hiroshi Saito [mailto:z-saito@xxxxxxxxxxxxxxxx] Sent: Wednesday, October 01, 2008 2:38 PM
To: Roshni Mani; pgsql-general@xxxxxxxxxxxxxx
Subject: Re: [GENERAL] error compiling postgres source


Hi.

It is strange?_?

pg_config.h and pg_config_os.h must be copied as below.

C:\MinGW\home\HIROSHI\postgresql-8.3.3\src\interfaces\libpq>nmake -f
win32.mak
Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.
Building the Win32 static library...
(snip)
       copy ..\..\include\pg_config.h.win32 ..\..\include\pg_config.h
       1 file(s) copied.
       echo #define SYSCONFDIR "" > pg_config_paths.h
       copy ..\..\include\port\win32.h ..\..\include\pg_config_os.h
       1 file(s) copied.
(snip)

Please delete following two files before compile.
del ..\..\include\pg_config.h ..\..\include\pg_config_os.h

----- Original Message ----- From: Roshni Mani
To: pgsql-general@xxxxxxxxxxxxxx
Sent: Wednesday, October 01, 2008 3:13 PM
Subject: [GENERAL] error compiling postgres source

Hi ,

  Can somebody tell me the solution for this.i tried compiling postgres
as follows in vs2005 .its giving the following errors


E:\postgresql-8.3.1\src\interfaces\libpq>nmake /f win32.mak

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

Building the Win32 static library...

Using default OpenSSL Include directory: C:\OpenSSL\include
Using default OpenSSL Library directory: C:\OpenSSL\lib\VC
Using default Kerberos Include directory: C:\kfw-2.6.5\inc
Using default Kerberos Library directory: C:\kfw-2.6.5\lib\i386
       cl.exe @C:\DOCUME~1\roma\LOCALS~1\Temp\nm3E.tmp
getaddrinfo.c
..\..\include\libpq/pqcomm.h(64) : error C2079: 'addr' uses undefined
struct 'sockaddr_storage'
..\..\port\getaddrinfo.c(144) : error C2079: 'hints' uses undefined
struct 'addrinfo'
..\..\port\getaddrinfo.c(159) : error C2224: left of '.ai_family' must
have struct/union type
..\..\port\getaddrinfo.c(160) : error C2224: left of '.ai_socktype' must
have struct/union type
..\..\port\getaddrinfo.c(165) : error C2224: left of '.ai_family' must
have struct/union type
..\..\port\getaddrinfo.c(165) : error C2224: left of '.ai_family' must
have struct/union type
..\..\port\getaddrinfo.c(168) : error C2224: left of '.ai_socktype' must
have struct/union type
..\..\port\getaddrinfo.c(169) : error C2224: left of '.ai_socktype' must
have struct/union type
..\..\port\getaddrinfo.c(182) : error C2224: left of '.ai_flags' must
have struct/union type
..\..\port\getaddrinfo.c(223) : error C2224: left of '.ai_flags' must
have struct/union type
..\..\port\getaddrinfo.c(236) : error C2027: use of undefined type
'addrinfo'
       ..\..\include\getaddrinfo.h(153) : see declaration of 'addrinfo'
..\..\port\getaddrinfo.c(249) : error C2037: left of 'ai_flags'
specifies undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(250) : error C2037: left of 'ai_family'
specifies undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(251) : error C2037: left of 'ai_socktype'
specifies undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(251) : error C2224: left of '.ai_socktype' must
have struct/union type
..\..\port\getaddrinfo.c(252) : error C2037: left of 'ai_protocol'
specifies undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(252) : error C2224: left of '.ai_protocol' must
have struct/union type
..\..\port\getaddrinfo.c(253) : error C2037: left of 'ai_addrlen'
specifies undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(254) : error C2037: left of 'ai_addr' specifies
undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(255) : error C2037: left of 'ai_canonname'
specifies undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(256) : error C2037: left of 'ai_next' specifies
undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(282) : error C2037: left of 'ai_addr' specifies
undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(283) : error C2037: left of 'ai_addr' specifies
undefined struct/union 'addrinfo'
..\..\port\getaddrinfo.c(283) : error C2198: 'free' : too few arguments
for call
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\BIN\cl.exe"' : return code '0x2'
Stop.


Regards,
Roshni


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux