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

Re: [PATCH] fix for compiling 1.1.0rc2 on IRIX 6.5

From: Ben Reser <ben_at_reser.org>
Date: 2004-10-19 20:33:20 CEST

On Tue, Sep 07, 2004 at 11:44:41AM -0500, Chris Scharver wrote:
> 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.

Chris,

Thanks for the patch. While your change resolved the problem. It
didn't really find the root cause. const char foo[] = "foo" is valid.
N_() is a no-op macro intended to tell gettext that the string should be
marked for translation. However we had it defined as:
#define N_(x) (x)

For whatever reason your compiler rejects:
char foo[] = ("foo");

Our solution is to use:
#define N_(x) x

This was changed in r11486. The fix should be in 1.1.1. If you'd like
to try it now to see if it works you can get the patch by doing:
svn diff -r11485:11486 http://svn.collab.net/repos/svn/trunk

After patching your source you will need to run autogen.sh and
configure.

I'm closing Issue #2082 as a result.

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 19 20:33:58 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.