VC++ psql build broken

"Dave Page" <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.win32
Message-ID <E7F85A1B5FF8D44C8A1AF6885BC9A0E41A7A01@ratbert.vale-housing.co.uk>
The VC++ build of psql appears to be broken. Libpq is fine however. 

Regards, Dave.


C:\Documents and Settings\dpage\My Documents\CVS\pgsql\src>nmake
USE_SSL=1 ENABL
E_THREAD_SAFETY=1 DEBUG=1 /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\dpage\LOCALS~1\Temp\nma03392.
getaddrinfo.c
        cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nmb03392.
pgstrcasecmp.c
        cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nmc03392.
thread.c
        cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nmd03392.
inet_aton.c
        cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nme03392.
crypt.c
        cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nmf03392.
noblock.c
        cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nmg03392.
dllist.c
        cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nmh03392.
md5.c
        cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nmi03392.
ip.c
        cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nmj03392.
wchar.c
        cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nmk03392.
encnames.c
        cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nml03392.
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\dpage\LOCALS~1\Temp\nmm03392.
Microsoft (R) Library Manager Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

/DEBUG /nologo "/out:.\Debug\libpqd.lib" ".\Debug\win32.obj"
".\Debug\getaddrinf
o.obj" ".\Debug\pgstrcasecmp.obj" ".\Debug\thread.obj"
".\Debug\inet_aton.obj" "
.\Debug\crypt.obj" ".\Debug\noblock.obj" ".\Debug\dllist.obj"
".\Debug\md5.obj"
".\Debug\ip.obj" ".\Debug\fe-auth.obj" ".\Debug\fe-protocol2.obj"
".\Debug\fe-pr
otocol3.obj" ".\Debug\fe-connect.obj" ".\Debug\fe-exec.obj"
".\Debug\fe-lobj.obj
" ".\Debug\fe-misc.obj" ".\Debug\fe-print.obj" ".\Debug\fe-secure.obj"
".\Debug\
pqexpbuffer.obj" ".\Debug\wchar.obj" ".\Debug\encnames.obj"
".\Debug\pthread-win
32.obj"
LINK : warning LNK4044: unrecognized option "DEBUG"; ignored
        cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nmn03392.
libpqdll.c
        rc.exe /l 0x409 /fo".\Debug\libpq.res" libpq.rc
        link.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nmo03392.
   Creating library .\Debug\libpqddll.lib and object
.\Debug\libpqddll.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.

        echo "#define PGBINDIR "">pg_config_paths.h
"#define PGBINDIR "">pg_config_paths.h
        echo "#define PGSHAREDIR "" >>pg_config_paths.h
"#define PGSHAREDIR "" >>pg_config_paths.h
        echo "#define SYSCONFDIR "" >>pg_config_paths.h
"#define SYSCONFDIR "" >>pg_config_paths.h
        echo "#define INCLUDEDIR "" >>pg_config_paths.h
"#define INCLUDEDIR "" >>pg_config_paths.h
        echo "#define PKGINCLUDEDIR "" >>pg_config_paths.h
"#define PKGINCLUDEDIR "" >>pg_config_paths.h
        echo "#define INCLUDEDIRSERVER "" >>pg_config_paths.h
"#define INCLUDEDIRSERVER "" >>pg_config_paths.h
        echo "#define LIBDIR "" >>pg_config_paths.h
"#define LIBDIR "" >>pg_config_paths.h
        echo "#define PKGLIBDIR "" >>pg_config_paths.h
"#define PKGLIBDIR "" >>pg_config_paths.h
        echo "#define LOCALEDIR "" >>pg_config_paths.h
"#define LOCALEDIR "" >>pg_config_paths.h
        cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nma03196.
sprompt.c
        cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nmb03196.
getopt.c
        cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nmc03196.
getopt_long.c
        cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nmd03196.
path.c
..\..\port\path.c(198) : error C2065: 'PGBINDIR' : undeclared identifier
..\..\port\path.c(198) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(198) : warning C4024: 'relative_path' : different
types for fo
rmal and actual parameter 1
..\..\port\path.c(198) : error C2065: 'PGSHAREDIR' : undeclared
identifier
..\..\port\path.c(198) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(198) : warning C4024: 'relative_path' : different
types for fo
rmal and actual parameter 2
..\..\port\path.c(201) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(201) : warning C4024: 'strncpy' : different types for
formal a
nd actual parameter 2
..\..\port\path.c(215) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(215) : warning C4024: 'relative_path' : different
types for fo
rmal and actual parameter 1
..\..\port\path.c(232) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(232) : warning C4024: 'relative_path' : different
types for fo
rmal and actual parameter 1
..\..\port\path.c(232) : error C2065: 'INCLUDEDIR' : undeclared
identifier
..\..\port\path.c(232) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(232) : warning C4024: 'relative_path' : different
types for fo
rmal and actual parameter 2
..\..\port\path.c(235) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(235) : warning C4024: 'strncpy' : different types for
formal a
nd actual parameter 2
..\..\port\path.c(249) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(249) : warning C4024: 'relative_path' : different
types for fo
rmal and actual parameter 1
..\..\port\path.c(249) : error C2065: 'PKGINCLUDEDIR' : undeclared
identifier
..\..\port\path.c(249) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(249) : warning C4024: 'relative_path' : different
types for fo
rmal and actual parameter 2
..\..\port\path.c(252) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(252) : warning C4024: 'strncpy' : different types for
formal a
nd actual parameter 2
..\..\port\path.c(266) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(266) : warning C4024: 'relative_path' : different
types for fo
rmal and actual parameter 1
..\..\port\path.c(266) : error C2065: 'INCLUDEDIRSERVER' : undeclared
identifier

..\..\port\path.c(266) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(266) : warning C4024: 'relative_path' : different
types for fo
rmal and actual parameter 2
..\..\port\path.c(269) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(269) : warning C4024: 'strncpy' : different types for
formal a
nd actual parameter 2
..\..\port\path.c(283) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(283) : warning C4024: 'relative_path' : different
types for fo
rmal and actual parameter 1
..\..\port\path.c(283) : error C2065: 'LIBDIR' : undeclared identifier
..\..\port\path.c(283) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(283) : warning C4024: 'relative_path' : different
types for fo
rmal and actual parameter 2
..\..\port\path.c(286) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(286) : warning C4024: 'strncpy' : different types for
formal a
nd actual parameter 2
..\..\port\path.c(300) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(300) : warning C4024: 'relative_path' : different
types for fo
rmal and actual parameter 1
..\..\port\path.c(300) : error C2065: 'PKGLIBDIR' : undeclared
identifier
..\..\port\path.c(300) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(300) : warning C4024: 'relative_path' : different
types for fo
rmal and actual parameter 2
..\..\port\path.c(303) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(303) : warning C4024: 'strncpy' : different types for
formal a
nd actual parameter 2
..\..\port\path.c(319) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(319) : warning C4024: 'relative_path' : different
types for fo
rmal and actual parameter 1
..\..\port\path.c(319) : error C2065: 'LOCALEDIR' : undeclared
identifier
..\..\port\path.c(319) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(319) : warning C4024: 'relative_path' : different
types for fo
rmal and actual parameter 2
..\..\port\path.c(322) : warning C4047: 'function' : 'const char *'
differs in l
evels of indirection from 'int '
..\..\port\path.c(322) : warning C4024: 'strncpy' : different types for
formal a
nd actual parameter 2
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' :
return co
de '0x2'
Stop.

C:\Documents and Settings\dpage\My Documents\CVS\pgsql\src>

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.