Re: Not able to build libpq for Windows - Mailing list pgsql-general

From Vidyasagara Guntaka
Subject Re: Not able to build libpq for Windows
Date
Msg-id 5F90B589E007484AA3C305D4AE984C7513FE66@mail2.confluencenetworks.com
Whole thread Raw
In response to Not able to build libpq for Windows  ("Vidyasagara Guntaka" <vguntaka@candera.com>)
Responses Re: Not able to build libpq for Windows  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-general
Hi Bruce,
I'm still getting some compilation errors.  I'm listing the steps I followed below:
1. Downloaded the postgresql-8.0.0beta2 file
2. Unzipped it.
3. Change directory to src directory and issued "nmake /f win32.mak" command.

I see many undelcared identifiers in port/path.c file.  Looks like they are environment setup related variables.  Do I
needto do any configuration before starting the compilation using nmake? 

Here I'm reproducing the compilation results :

______________________________
C:\temp\postgresql-8.0.0beta2\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\nma02964.
getaddrinfo.c
        cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmb02964.
pgstrcasecmp.c
        cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmc02964.
thread.c
        cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmd02964.
inet_aton.c
        cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nme02964.
crypt.c
        cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmf02964.
noblock.c
        cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmg02964.
dllist.c
        cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmh02964.
md5.c
        cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmi02964.
ip.c
        cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmj02964.
wchar.c
        cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmk02964.
encnames.c
        cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nml02964.
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\nmm02964.
        cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmn02964.
libpqdll.c
        rc.exe /l 0x409 /fo".\Release\libpq.res" libpq.rc
        link.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmo02964.
   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\nma02896.
sprompt.c
        cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmb02896.
getopt.c
        cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmc02896.
getopt_long.c
        cl.exe @C:\DOCUME~1\vguntaka\LOCALS~1\Temp\nmd02896.
path.c
..\..\port\path.c(198) : error C2065: 'PGBINDIR' : undeclared identifier
..\..\port\path.c(198) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(198) : warning C4024: 'relative_path' : different types for formal and actual parameter 1
..\..\port\path.c(198) : error C2065: 'PGSHAREDIR' : undeclared identifier
..\..\port\path.c(198) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(198) : warning C4024: 'relative_path' : different types for formal and actual parameter 2
..\..\port\path.c(201) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(201) : warning C4024: 'strncpy' : different types for formal and actual parameter 2
..\..\port\path.c(215) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(215) : warning C4024: 'relative_path' : different types for formal and actual parameter 1
..\..\port\path.c(232) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(232) : warning C4024: 'relative_path' : different types for formal and actual parameter 1
..\..\port\path.c(232) : error C2065: 'INCLUDEDIR' : undeclared identifier
..\..\port\path.c(232) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(232) : warning C4024: 'relative_path' : different types for formal and actual parameter 2
..\..\port\path.c(235) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(235) : warning C4024: 'strncpy' : different types for formal and actual parameter 2
..\..\port\path.c(249) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(249) : warning C4024: 'relative_path' : different types for formal and actual parameter 1
..\..\port\path.c(249) : error C2065: 'PKGINCLUDEDIR' : undeclared identifier
..\..\port\path.c(249) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(249) : warning C4024: 'relative_path' : different types for formal and actual parameter 2
..\..\port\path.c(252) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(252) : warning C4024: 'strncpy' : different types for formal and actual parameter 2
..\..\port\path.c(266) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(266) : warning C4024: 'relative_path' : different types for formal and actual parameter 1
..\..\port\path.c(266) : error C2065: 'INCLUDEDIRSERVER' : undeclared identifier
..\..\port\path.c(266) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(266) : warning C4024: 'relative_path' : 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: 'strncpy' : different types for formal and actual parameter 2
..\..\port\path.c(283) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(283) : warning C4024: 'relative_path' : different types for formal and actual parameter 1
..\..\port\path.c(283) : error C2065: 'LIBDIR' : undeclared identifier
..\..\port\path.c(283) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(283) : warning C4024: 'relative_path' : different types for formal and actual parameter 2
..\..\port\path.c(286) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(286) : warning C4024: 'strncpy' : different types for formal and actual parameter 2
..\..\port\path.c(300) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(300) : warning C4024: 'relative_path' : different types for formal and actual parameter 1
..\..\port\path.c(300) : error C2065: 'PKGLIBDIR' : undeclared identifier
..\..\port\path.c(300) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(300) : warning C4024: 'relative_path' : different types for formal and actual parameter 2
..\..\port\path.c(303) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(303) : warning C4024: 'strncpy' : different types for formal and actual parameter 2
..\..\port\path.c(319) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(319) : warning C4024: 'relative_path' : different types for formal and actual parameter 1
..\..\port\path.c(319) : error C2065: 'LOCALEDIR' : undeclared identifier
..\..\port\path.c(319) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(319) : warning C4024: 'relative_path' : different types for formal and actual parameter 2
..\..\port\path.c(322) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
..\..\port\path.c(322) : 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.0beta2\src>
_______________________________________________


Thanks and regards,
Sagar.

-----Original Message-----
From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
Sent: Tuesday, August 31, 2004 12:08 PM
To: Vidyasagara Guntaka
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Not able to build libpq for Windows



We fixed a number of MS VC issues and these should be in the beta2
release and in CVS.

---------------------------------------------------------------------------

Vidyasagara Guntaka wrote:
> Hi,
>
> I am not able to build the libpq for windows using the 8.0 beta1 version source code.  I posted this message for
coupleof time by now.  I did not get any responses.  Is this supposed to be broken at this point ? 
>
> Can you somebody please respond for this issue?
>
> Thank you very much in advance,
> Sagar.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)


pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Suppress output from psql?
Next
From: Russell Smith
Date:
Subject: Re: Error Message Importing Into PostgreSQL (Using phpPgAdmin)