opensubscriber
   Find in this group all groups
 
Unknown more information…

h : help-gnats@gnu.org 7 January 2012 • 12:40PM -0500

Re: gnats, automake, and GCC_CFLAGS
by Chad Walstrom

REPLY TO AUTHOR
 
REPLY TO GROUP




Copying up to the list, since this pertains to users. Hey! We're back! :) Alex and I have been cleaning up the compilation process a bit, with the code sitting in CVS/HEAD. The conversion to Automake left some flag definitions out of the mix, and changes in autoconf have caused a few breakages.  I'm about to make a commit to HEAD to incorporate some of our changes.  It would be nice to get a 4.2 out the door sooner than later. Any volunteers to help?

Chad

On 01/06/2012 01:07 AM, Alex Manoussakis wrote:

> I've seen an example of declaring this explicitly before calling the
> stdio header:
>
> #declare _POSIX_SOURCE = 1
> #include <stdio.h>
I believe this is the right way to go. I've been chewing on this one
since last night, and taking into consideration the following
recommendation by Paul Eggert on 8/1/2000 in the autoconf@gnu.... list (
http://www.mail-archive.com/autoconf@gnu..../msg02252.html):

"Sorry that my suggestions waffled about _POSIX_SOURCE, but it is a
problematic area.  You can't define _POSIX_SOURCE or _POSIX_C_SOURCE
unconditionally, as that causes possibly-undesirable changes on
Solaris and many other platforms.  On the other hand, if you don't
define thes macros up-front on hosts like Minix, you either need hacks
like AC_MINIX and AC_ISC_POSIX, or you need to have a separate
autoconf macro for fileno, tzset, etc.; and both these alternatives
are more unpleasant than simply defining one of those feature-test
macros if <stdio.h> doesn't define fileno."

I've also noticed that we're putting most of our includes in the gnats.h
header, then including that file everywhere. I'm not really keen on
fixing this right now, but I'm not in favor of this "include everything"
approach.  *shrug*  For now, I'll throw the _POSIX_SOURCE definition
just above stdio.h.

Then maybe we can dive into this unused "input" function.

Chad




--
*Chad Walstrom* | Technical Support Engineer
p: (651) 757-4136 or (866) 276-5583 ext. 136 f: (651) 665-0943
Customer Support: 800.314.0147 | help@govd...
<3D%22mailto:help@govd...%22>
/Sign up/ for training at govdelivery.com/training
<http://govdelivery.com/training>
/Get knowledge/ at knowledge.govdelivery.com
<http://knowledge.govdelivery.com>
GovDelivery <http://www.govdelivery.com>
govdelivery.com <http://www.govdelivery.com>GovLoop.com
<http://www.govloop.com>ReachthePublic.com
<http://www.reachthepublic.com>facebook.com/govdelivery
<http://www.facebook.com/govdelivery>twitter.com/govdelivery
<http://www.twitter.com/govdelivery>youtube.com/govdelivery
<http://www.youtube.com/govdelivery>


Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.