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

RE: [PATCH] -std-c89 not supported

From: <leif.eriksen_at_hpa.com.au>
Date: 2003-06-18 08:21:04 CEST

Perhaps it is best then to modify CFLAGS to use -std=c89 just for Solaris -
there is already a Solaris section in the configure.in. That ways, no other
platform gets except for possible problematic early gcc's on Solaris.

Leif Eriksen
HPA - IT Development
+61 3 9217 5545

-----Original Message-----
From: Justin Erenkrantz [mailto:justin@erenkrantz.com]
Sent: Wednesday, June 18, 2003 4:01 PM
To: Leif Eriksen; dev@subversion.tigris.org
Subject: Re: [PATCH] -std-c89 not supported

--On Wednesday, June 18, 2003 11:40 AM +1000 leif.eriksen@hpa.com.au wrote:

> * configure.in
> not all versions of gcc support the -std=c89 flag. This change tests
> compiler version and sets the CFLAGS value appropriately.

IIRC, I think Sander was seeing problems on Solaris with gcc 3.x since
Solaris's headers when POSIX_PTHREAD_SEMANTICS is defined (which APR does by

default) aren't compatible with C89. If you don't want POSIX compliance,
Solaris's headers are strict C89, AIUI.

So, I'd suggest yanking this entirely as C89 is too restrictive and might
work for a small subset of platforms (perhaps Linux, if that). -- justin

The contents of this e-mail and its attachments are confidential and intended
solely for the use of the individual or entity to whom they are
addressed. If you received this e-mail in error, please notify
the HPA Postmaster, postmaster@hpa.com.au, then delete
the e-mail.

This footnote also confirms that this e-mail message has been swept for
the presence of computer viruses by MimeSweeper. Before opening or
using any attachments, check them for viruses and defects.

Our liability is limited to resupplying any affected attachments.

HPA collects personal information to provide and market our services.
For more information about use, disclosure and access see our Privacy
Policy at www.hpa.com.au

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 18 08:22:01 2003

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.