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

1.1.0rc2 compile error on IRIX 6.5

From: Chris Scharver <scharver_at_evl.uic.edu>
Date: 2004-09-02 21:04:34 CEST

Hello,

Following my attempts to get Subversion 1.0.6 running, I decided to
give 1.1.0rc2 a try since it allows me to avoid BDB altogether. Things
seemed to be going well, but I encountered a compile error:

$ cc -version
MIPSpro Compilers: Version 7.30
$ cd subversion-1.1.0-rc2
$ ./configure --prefix=$HOME/subversiondev --without-berkeley-db
--enable-maintainer-mode --disable-shared
$ make all
...
cc -D_POSIX_THREAD_SAFE_FUNCTIONS -g -g -DNEON_ZLIB -DSVN_DEBUG
-DAP_DEBUG -I./subversion/include -I./subversion
-I/netusr/disk11/evl/scharver/code/subversion-1.1.0-rc2/neon/src
-I/netusr/disk11/evl/scharver/subversiondev/include/neon
-I/netusr/disk11/evl/scharver/code/subversion-1.1.0-rc2/apr/include
-I/netusr/disk11/evl/scharver/code/subversion-1.1.0-rc2/apr-util/
include
-I/netusr/disk11/evl/scharver/code/subversion-1.1.0-rc2/apr-util/xml/
expat/lib -o subversion/clients/cmdline/help-cmd.o -c
subversion/clients/cmdline/help-cmd.c
cc-1523 cc: WARNING File = subversion/clients/cmdline/help-cmd.c, Line
= 35
   An initialization with "{...}" is expected for an aggregate object.

       N_("usage: svn <subcommand> [options] [args]\n"
       ^

cc-1140 cc: ERROR File = subversion/clients/cmdline/help-cmd.c, Line =
35
   A value of type "char *" cannot be used to initialize an entity of
type "char".

       N_("usage: svn <subcommand> [options] [args]\n"
       ^

cc-1523 cc: WARNING File = subversion/clients/cmdline/help-cmd.c, Line
= 46
   An initialization with "{...}" is expected for an aggregate object.

       N_("Subversion is a tool for version control.\n"
       ^

cc-1140 cc: ERROR File = subversion/clients/cmdline/help-cmd.c, Line =
46
   A value of type "char *" cannot be used to initialize an entity of
type "char".

       N_("Subversion is a tool for version control.\n"
       ^

2 errors detected in the compilation of
"subversion/clients/cmdline/help-cmd.c".
make: *** [subversion/clients/cmdline/help-cmd.o] Error 2

It looks like the cc compiler cannot handle initialization of the
variables const char svn_cl__help_header and const char
svn_cl__help_footer. I tried changing the declarations in
subversion/clients/cmdline/cl.h to const char*, and that seemed to
solve the problem. It's a simple change, but it appears inconsistent
with the coding style used elsewhere. Maybe it's just a problem with
this version of the compiler. I can try to put together a patch if
needed, as it only change four lines. It worked though!

$ svnadmin --fs-type fsfs create $HOME/csssvn
$ svnadmin verify $HOME/csssvn/
* Verified revision 0.

Thanks,
Chris

--
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: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 2 21:05:17 2004

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