Thread: unable to build libpq on Win 2003 (32 bit)

unable to build libpq on Win 2003 (32 bit)

From
"Nikolae Shevchenco (md)"
Date:

Hello everybody,

 

  I am trying to build libpq.dll from the source on a WIN 2003 system, the make file is attached. I am using Microsoft Visual Studio 8 and below is the command and outcome I’m trying to perform:

 

C:\src\PostgreSQL\postgresql-8.3.0\src\interfaces\libpq>nmake /f win32.mak /I

 

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

        link.exe -lib @C:\DOCUME~1\MD_NSH~1\LOCALS~1\Temp\nm10D.tmp

        link.exe @C:\DOCUME~1\MD_NSH~1\LOCALS~1\Temp\nm10E.tmp

        mt -manifest .\Release\libpq.dll.manifest -outputresource:.\Release\libpq.dll;2

Microsoft (R) Manifest Tool version 5.2.3790.2014

Copyright (c) Microsoft Corporation 2005.

All rights reserved.

 

mt.exe : general error c10100b1: Failed to load file ".\Release\libpq.dll". The system cannot find the file specified.

 

What do you I need to change to make the build process successful?

 

I’m looking forward to your reply.

Thanks in advance.

 

Nikolay Shevchenko.

 

Attachment

Re: unable to build libpq on Win 2003 (32 bit)

From
"Hiroshi Saito"
Date:
Hi.

Sorry late reaction..
VC++2008 are official and are not supported. However, it has Build(ed).
Then, I did not reproduce a problem.
http://winpg.jp/~saito/pg_work/pg8.3.3_nmake_VC++2008.txt
It seems that there is some version difference.

Please show "dir Release."

Regards,
Hiroshi Saito

----- Original Message ----- 
From: Nikolae Shevchenco (md)
To: pgsql-hackers@postgresql.org
Sent: Wednesday, August 06, 2008 2:33 AM
Subject: [HACKERS] unable to build libpq on Win 2003 (32 bit)


Hello everybody,
 I am trying to build libpq.dll from the source on a WIN 2003 system, the make file is 
attached. I am using Microsoft Visual Studio 8 and below is the command and outcome I'm 
trying to perform:

C:\src\PostgreSQL\postgresql-8.3.0\src\interfaces\libpq>nmake /f win32.mak /I

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       link.exe -lib
@C:\DOCUME~1\MD_NSH~1\LOCALS~1\Temp\nm10D.tmp      link.exe @C:\DOCUME~1\MD_NSH~1\LOCALS~1\Temp\nm10E.tmp       mt
-manifest.\Release\libpq.dll.manifest -outputresource:.\Release\libpq.dll;2
 
Microsoft (R) Manifest Tool version 5.2.3790.2014
Copyright (c) Microsoft Corporation 2005.
All rights reserved.

mt.exe : general error c10100b1: Failed to load file ".\Release\libpq.dll". The system 
cannot find the file specified.

What do you I need to change to make the build process successful?

I'm looking forward to your reply.
Thanks in advance.

Nikolay Shevchenko.





-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers 



Re: unable to build libpq on Win 2003 (32 bit)

From
"Nikolae Shevchenco (md)"
Date:
Hi Hiroshi,

Thanks for your reply. Sorry I may have missed something but I'm using
Visual Studio 2005.
Anyway I'm sending you the dir Release output:

C:\src\PostgreSQL\postgresql-8.3.0\src\interfaces\libpq\Release>dirVolume in drive C has no label.Volume Serial Number
is40C0-3D67 
Directory of
C:\src\PostgreSQL\postgresql-8.3.0\src\interfaces\libpq\Release

08/06/2008  01:47 PM    <DIR>          .
08/06/2008  01:47 PM    <DIR>          ..
08/05/2008  07:14 PM               776 libpq.res              1 File(s)            776 bytes              2 Dir(s)
16,525,180,928bytes free 

As you can see only one file is here - libpq.res.
Any suggestions to get this fixed?

I'm looking forward to your reply.

Many thanks,
Nikolay.

-----Original Message-----
From: pgsql-hackers-owner@postgresql.org
[mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Hiroshi Saito
Sent: Wednesday, August 06, 2008 3:07 AM
To: Nikolae Shevchenco (md); pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] unable to build libpq on Win 2003 (32 bit)

Hi.

Sorry late reaction..
VC++2008 are official and are not supported. However, it has Build(ed).
Then, I did not reproduce a problem.
http://winpg.jp/~saito/pg_work/pg8.3.3_nmake_VC++2008.txt
It seems that there is some version difference.

Please show "dir Release."

Regards,
Hiroshi Saito

----- Original Message -----
From: Nikolae Shevchenco (md)
To: pgsql-hackers@postgresql.org
Sent: Wednesday, August 06, 2008 2:33 AM
Subject: [HACKERS] unable to build libpq on Win 2003 (32 bit)


Hello everybody,
 I am trying to build libpq.dll from the source on a WIN 2003 system,
the make file is
attached. I am using Microsoft Visual Studio 8 and below is the command
and outcome I'm
trying to perform:

C:\src\PostgreSQL\postgresql-8.3.0\src\interfaces\libpq>nmake /f
win32.mak /I

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       link.exe -lib
@C:\DOCUME~1\MD_NSH~1\LOCALS~1\Temp\nm10D.tmp      link.exe @C:\DOCUME~1\MD_NSH~1\LOCALS~1\Temp\nm10E.tmp       mt
-manifest.\Release\libpq.dll.manifest 
-outputresource:.\Release\libpq.dll;2
Microsoft (R) Manifest Tool version 5.2.3790.2014
Copyright (c) Microsoft Corporation 2005.
All rights reserved.

mt.exe : general error c10100b1: Failed to load file
".\Release\libpq.dll". The system
cannot find the file specified.

What do you I need to change to make the build process successful?

I'm looking forward to your reply.
Thanks in advance.

Nikolay Shevchenko.





--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


Re: unable to build libpq on Win 2003 (32 bit)

From
"Hiroshi Saito"
Date:
Hi Nikolae-san.

I tried by 8.3.0 which you use again. and VC++2005.
Then, It does not reproduce a problem.
http://winpg.jp/~saito/pg_work/pg8.3.0_nmake_VC++2005.txt

I want to see your compile message. It is that one does not output an object 
as a very strange thing.?_?

Regards,
Hiroshi Saito

----- Original Message ----- 
From: "Nikolae Shevchenco (md)" <nshevchenco@alliedtesting.com>


Hi Hiroshi,

Thanks for your reply. Sorry I may have missed something but I'm using
Visual Studio 2005.
Anyway I'm sending you the dir Release output:

C:\src\PostgreSQL\postgresql-8.3.0\src\interfaces\libpq\Release>dirVolume in drive C has no label.Volume Serial Number
is40C0-3D67
 
Directory of
C:\src\PostgreSQL\postgresql-8.3.0\src\interfaces\libpq\Release

08/06/2008  01:47 PM    <DIR>          .
08/06/2008  01:47 PM    <DIR>          ..
08/05/2008  07:14 PM               776 libpq.res              1 File(s)            776 bytes              2 Dir(s)
16,525,180,928bytes free
 

As you can see only one file is here - libpq.res.
Any suggestions to get this fixed?

I'm looking forward to your reply.

Many thanks,
Nikolay.


Re: unable to build libpq on Win 2003 (32 bit)

From
"Nikolae Shevchenco (md)"
Date:
Hi Hiroshi,

Thank you for your time.
BTW I was trying to compile on different machine with Win XP and a build
was successful.
However I still have issues trying to compile on my machine with Win
Server 2003 maybe the root cause is lying on that?
I'm sending you output of the make command:

C:\src\PostgreSQL\postgresql-8.3.0\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       if not exist ".\Release/" mkdir ".\Release"
link.exe-lib @C:\DOCUME~1\MD_NSH~1\LOCALS~1\Temp\nm214.tmp 
LINK : fatal error LNK1181: cannot open input file 'LIB32_OBJS='
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\BIN\link.exe"' : return code '0x49d'
Stop.

C:\src\PostgreSQL\postgresql-8.3.0\src\interfaces\libpq>

I am looking forward to your reply.
Many thanks,
Nikolay.


-----Original Message-----
From: Hiroshi Saito [mailto:z-saito@guitar.ocn.ne.jp]
Sent: Wednesday, August 06, 2008 6:31 PM
To: Nikolae Shevchenco (md); pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] unable to build libpq on Win 2003 (32 bit)

Hi Nikolae-san.

I tried by 8.3.0 which you use again. and VC++2005.
Then, It does not reproduce a problem.
http://winpg.jp/~saito/pg_work/pg8.3.0_nmake_VC++2005.txt

I want to see your compile message. It is that one does not output an
object
as a very strange thing.?_?

Regards,
Hiroshi Saito

----- Original Message -----
From: "Nikolae Shevchenco (md)" <nshevchenco@alliedtesting.com>


Hi Hiroshi,

Thanks for your reply. Sorry I may have missed something but I'm using
Visual Studio 2005.
Anyway I'm sending you the dir Release output:

C:\src\PostgreSQL\postgresql-8.3.0\src\interfaces\libpq\Release>dirVolume in drive C has no label.Volume Serial Number
is40C0-3D67 
Directory of
C:\src\PostgreSQL\postgresql-8.3.0\src\interfaces\libpq\Release

08/06/2008  01:47 PM    <DIR>          .
08/06/2008  01:47 PM    <DIR>          ..
08/05/2008  07:14 PM               776 libpq.res              1 File(s)            776 bytes              2 Dir(s)
16,525,180,928bytes free 

As you can see only one file is here - libpq.res.
Any suggestions to get this fixed?

I'm looking forward to your reply.

Many thanks,
Nikolay.


Re: unable to build libpq on Win 2003 (32 bit)

From
"Hiroshi Saito"
Date:
Hi.

Umm, It is very strange...
I can't do a check in the reason for not having the environment of win2003 now. 
sorry...

Can you the following try? 
nmake -f win32 /D CPU=i386
and, the output of the "set" command may be helpful. 

Regards,
Hiroshi Saito

----- Original Message ----- 
From: "Nikolae Shevchenco (md)" <nshevchenco@alliedtesting.com>


Hi Hiroshi,

Thank you for your time. 
BTW I was trying to compile on different machine with Win XP and a build
was successful. 
However I still have issues trying to compile on my machine with Win
Server 2003 maybe the root cause is lying on that?
I'm sending you output of the make command:

C:\src\PostgreSQL\postgresql-8.3.0\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       if not exist ".\Release/" mkdir ".\Release"
link.exe-lib @C:\DOCUME~1\MD_NSH~1\LOCALS~1\Temp\nm214.tmp
 
LINK : fatal error LNK1181: cannot open input file 'LIB32_OBJS='
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\BIN\link.exe"' : return code '0x49d'
Stop.

C:\src\PostgreSQL\postgresql-8.3.0\src\interfaces\libpq>

I am looking forward to your reply.
Many thanks,
Nikolay.