Re: VC++ psql build broken

Bruce Momjian <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.win32
Message-ID <[email protected]>
I wasn't quoting properly.  Patch attached.

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

Dave Page wrote:
>  
> 
> > -----Original Message-----
> > From: Bruce Momjian [mailto:[email protected]] 
> > Sent: 10 September 2004 04:49
> > To: Dave Page
> > Cc: PgSQL Win32 developers
> > Subject: Re: [pgsql-hackers-win32] VC++ psql build broken
> > 
> > 
> > OK, I was creating pg_config_paths.h in the wrong directory.  
> > This should fix it.
> 
> No, still get the following :-( :
> 
> Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
> 
>         echo "#define PGBINDIR "">"..\..\port\pg_config_paths.h"
> "#define PGBINDIR "">"..\..\port\pg_config_paths.h"
>         echo "#define PGSHAREDIR "" >>"..\..\port\pg_config_paths.h"
> "#define PGSHAREDIR "" >>"..\..\port\pg_config_paths.h"
>         echo "#define SYSCONFDIR "" >>"..\..\port\pg_config_paths.h"
> "#define SYSCONFDIR "" >>"..\..\port\pg_config_paths.h"
>         echo "#define INCLUDEDIR "" >>"..\..\port\pg_config_paths.h"
> "#define INCLUDEDIR "" >>"..\..\port\pg_config_paths.h"
>         echo "#define PKGINCLUDEDIR "" >>"..\..\port\pg_config_paths.h"
> "#define PKGINCLUDEDIR "" >>"..\..\port\pg_config_paths.h"
>         echo "#define INCLUDEDIRSERVER ""
> >>"..\..\port\pg_config_paths.h"
> "#define INCLUDEDIRSERVER "" >>"..\..\port\pg_config_paths.h"
>         echo "#define LIBDIR "" >>"..\..\port\pg_config_paths.h"
> "#define LIBDIR "" >>"..\..\port\pg_config_paths.h"
>         echo "#define PKGLIBDIR "" >>"..\..\port\pg_config_paths.h"
> "#define PKGLIBDIR "" >>"..\..\port\pg_config_paths.h"
>         echo "#define LOCALEDIR "" >>"..\..\port\pg_config_paths.h"
> "#define LOCALEDIR "" >>"..\..\port\pg_config_paths.h"
>         if not exist ".\Release/" mkdir ".\Release"
>         cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nma00380.
> sprompt.c
>         cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nmb00380.
> getopt.c
>         cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nmc00380.
> getopt_long.c
>         cl.exe @C:\DOCUME~1\dpage\LOCALS~1\Temp\nmd00380.
> 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>
> 
> Regards, Dave
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to [email protected]
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  [email protected]               |  (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 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [email protected] so that your
      message can get through to the mailing list cleanly
/bjm/diff (text/plain, 2.6 KB)
Index: src/bin/psql/bcc32.mak
===================================================================
RCS file: /cvsroot/pgsql-server/src/bin/psql/bcc32.mak,v
retrieving revision 1.8
diff -c -c -r1.8 bcc32.mak
*** src/bin/psql/bcc32.mak	10 Sep 2004 03:48:54 -0000	1.8
--- src/bin/psql/bcc32.mak	10 Sep 2004 09:38:00 -0000
***************
*** 84,98 ****
  	-@erase "$(INTDIR)\..\..\port\pg_config_paths.h"
  
  "..\..\port\pg_config_paths.h": win32.mak
! 	echo "#define PGBINDIR "">$@
! 	echo "#define PGSHAREDIR "" >>$@
! 	echo "#define SYSCONFDIR "" >>$@
! 	echo "#define INCLUDEDIR "" >>$@
! 	echo "#define PKGINCLUDEDIR "" >>$@
! 	echo "#define INCLUDEDIRSERVER "" >>$@
! 	echo "#define LIBDIR "" >>$@
! 	echo "#define PKGLIBDIR "" >>$@
! 	echo "#define LOCALEDIR "" >>$@
  
  "$(OUTDIR)" :
      if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
--- 84,98 ----
  	-@erase "$(INTDIR)\..\..\port\pg_config_paths.h"
  
  "..\..\port\pg_config_paths.h": win32.mak
! 	echo #define PGBINDIR "" >$@
! 	echo #define PGSHAREDIR "" >>$@
! 	echo #define SYSCONFDIR "" >>$@
! 	echo #define INCLUDEDIR "" >>$@
! 	echo #define PKGINCLUDEDIR "" >>$@
! 	echo #define INCLUDEDIRSERVER "" >>$@
! 	echo #define LIBDIR "" >>$@
! 	echo #define PKGLIBDIR "" >>$@
! 	echo #define LOCALEDIR "" >>$@
  
  "$(OUTDIR)" :
      if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
Index: src/bin/psql/win32.mak
===================================================================
RCS file: /cvsroot/pgsql-server/src/bin/psql/win32.mak,v
retrieving revision 1.20
diff -c -c -r1.20 win32.mak
*** src/bin/psql/win32.mak	10 Sep 2004 03:48:54 -0000	1.20
--- src/bin/psql/win32.mak	10 Sep 2004 09:38:02 -0000
***************
*** 44,58 ****
  	-@erase "$(INTDIR)\..\..\port\pg_config_paths.h"
  
  "..\..\port\pg_config_paths.h": win32.mak
! 	echo "#define PGBINDIR "">$@
! 	echo "#define PGSHAREDIR "" >>$@
! 	echo "#define SYSCONFDIR "" >>$@
! 	echo "#define INCLUDEDIR "" >>$@
! 	echo "#define PKGINCLUDEDIR "" >>$@
! 	echo "#define INCLUDEDIRSERVER "" >>$@
! 	echo "#define LIBDIR "" >>$@
! 	echo "#define PKGLIBDIR "" >>$@
! 	echo "#define LOCALEDIR "" >>$@
  
  "$(OUTDIR)" :
      if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
--- 44,58 ----
  	-@erase "$(INTDIR)\..\..\port\pg_config_paths.h"
  
  "..\..\port\pg_config_paths.h": win32.mak
! 	echo #define PGBINDIR "" >$@
! 	echo #define PGSHAREDIR "" >>$@
! 	echo #define SYSCONFDIR "" >>$@
! 	echo #define INCLUDEDIR "" >>$@
! 	echo #define PKGINCLUDEDIR "" >>$@
! 	echo #define INCLUDEDIRSERVER "" >>$@
! 	echo #define LIBDIR "" >>$@
! 	echo #define PKGLIBDIR "" >>$@
! 	echo #define LOCALEDIR "" >>$@
  
  "$(OUTDIR)" :
      if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
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.