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

Re: [PATCH] faq to help xlc users compile

From: Travis P <svn_at_castle.fastmail.fm>
Date: 2004-01-25 20:48:44 CET

On Jan 25, 2004, at 1:20 PM, Greg Hudson wrote:

> On Sun, 2004-01-25 at 13:08, Travis P wrote:
>> +<p>By default, xlc compiles to a strict standard which is in minor
>> +conflict with Subversion code in just a couple places.
>
> That's not an accurate characterization of the current problem. xlc is
> simply buggy in this respect; a compiler must accept duplicate volatile
> qualifiers and most definitely must accept "volatile sig_atomic_t".
>
> (The other problem, which was a signed/unsigned conflict in cram.c, has
> been fixed on the mainline and on the 1.0-stabilization branch, and
> thus
> in the 0.37 release.)

Sure. I tried to avoid the detail by saying "a strict standard" with
no implication
of whose standard was implemented or whether anyone is right or wrong.
And
the CFLAGS suggestion will make compilation more likely to work, even
if the volatile
issue is resolved but another similar issue pops up in the future.
Avoid specific
mention of the need for the suggestion may thus avoid a faq change.

Anyway, those were my thoughts. I've revised the patch below. There
are two versions. Both reworded.
One mentioning duplicate volatile. The other does not. Take your pick.

-Travis
____________________________________

Add FAQ item about compiling with xlc.

* www/project_faq.html
   (xlc-compile): New item.

Index: project_faq.html
===================================================================
--- project_faq.html (revision 8515)
+++ project_faq.html (working copy)
@@ -111,6 +111,8 @@
      file, but svn says something about "path not found". What's going
      on?</a></li>
  <li>Why doesn't HTTP Digest auth work?</li>
+<li><a href="#xlc-compile">Compiling with xlc on AIX, I get compilation
+ errors. What's wrong?</a></li>

@@ -1448,6 +1450,17 @@
  to see if the description there matches your symptoms.
  </p>

+<![CDATA[-----------------------------------------------------------]]>
+
+<h3><a name="xlc-compile">Compiling with xlc on AIX, I get compilation
+ errors. What's wrong?</a></h3>
+
+<p>Adding <tt>-qlanglvl=extended</tt> to the
+environment variable CFLAGS for configuration and build
+will make xlc a bit more flexible and the code will
+compile without error.
+</p>
+
  <![CDATA[=========================================================]]>

Index: project_faq.html
===================================================================
--- project_faq.html (revision 8515)
+++ project_faq.html (working copy)
@@ -111,6 +111,8 @@
      file, but svn says something about "path not found". What's going
      on?</a></li>
  <li>Why doesn't HTTP Digest auth work?</li>
+<li><a href="#xlc-compile">Compiling with xlc on AIX, I get compilation
+ errors. What's wrong?</a></li>

@@ -1448,6 +1450,18 @@
  to see if the description there matches your symptoms.
  </p>

+<![CDATA[-----------------------------------------------------------]]>
+
+<h3><a name="xlc-compile">Compiling with xlc on AIX, I get compilation
+ errors. What's wrong?</a></h3>
+
+<p>By default, xlc complains about duplicate volatile
+qualifiers. Adding <tt>-qlanglvl=extended</tt> to the
+environment variable CFLAGS for configuration and build
+will make xlc a bit more flexible and the code will
+compile without error.
+</p>
+
  <![CDATA[=========================================================]]>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jan 25 20:48:37 2004

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