[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] fix for compiling 1.1.0rc2 on IRIX 6.5

From: Chris Scharver <scharver_at_evl.uic.edu>
Date: 2004-09-07 18:44:41 CEST

The IRIX cc compiler generates errors compiling Subversion 1.1.0rc2 on
IRIX 6.5. Redefining the character arrays as pointers resolves these
errors and allows Subversion to properly build with MIPSpro cc 7.30 on
IRIX 6.5.9 without BDB. It's an older system version, but numerous
reasons have prevented upgrades. Therefore, here's the simple fix that
I used to get my repository up and running.

<http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=17145>

* subversion/clients/cmdline/cl.h:
   (svn_cl__help_header, svn_cl__help_footer ): Changed declarations
from const char[] to const char*.
* subversion/clients/cmdline/help-cmd.c:
   (svn_cl__help_header, svn_cl__help_footer ): Changed definitions from
const char[] to const char*.

diff -ru ./subversion/clients/cmdline/cl.h
../../subversion-1.1.0-rc2/subversion/clients/cmdline/cl.h
--- ./subversion/clients/cmdline/cl.h Wed May 19 16:32:54 2004
+++ ../../subversion-1.1.0-rc2/subversion/clients/cmdline/cl.h Thu Sep
  2 13:50:49 2004
@@ -180,8 +180,8 @@
  extern const apr_getopt_option_t svn_cl__options[];

  /* Header and footer text for svn_opt_print_generic_help. */
-extern const char svn_cl__help_header[];
-extern const char svn_cl__help_footer[];
+extern const char* svn_cl__help_header;
+extern const char* svn_cl__help_footer;

  /* Our cancellation callback. */
diff -ru ./subversion/clients/cmdline/help-cmd.c
../../subversion-1.1.0-rc2/subversion/clients/cmdline/help-cmd.c
--- ./subversion/clients/cmdline/help-cmd.c Mon Apr 19 15:25:32 2004
+++ ../../subversion-1.1.0-rc2/subversion/clients/cmdline/help-cmd.c
Thu Sep 2 13:51:11 2004
@@ -31,7 +31,7 @@

  #include "svn_private_config.h"

-const char svn_cl__help_header[] =
+const char* svn_cl__help_header =
      N_("usage: svn <subcommand> [options] [args]\n"
         "Type \"svn help <subcommand>\" for help on a specific
subcommand.\n"
         "\n"
@@ -42,7 +42,7 @@
         "\n"
         "Available subcommands:\n");

-const char svn_cl__help_footer[] =
+const char* svn_cl__help_footer =
      N_("Subversion is a tool for version control.\n"
         "For additional information, see
http://subversion.tigris.org/\n"
         "\n");

-- 
Chris Scharver
Electronic Visualization Laboratory
The University of Illinois at Chicago
--
Chris Scharver
Electronic Visualization Laboratory
The University of Illinois at Chicago
Ph: 312-996-3002   FAX: 312-413-7585
<http://www.evl.uic.edu/scharver/>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 7 19:29:10 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.