[ET Trac] [Einstein Toolkit] #1754: _BSD_SOURCE in glibc apparently going away

Einstein Toolkit trac-noreply at einsteintoolkit.org
Tue Jun 9 09:37:19 CDT 2015


#1754: _BSD_SOURCE in glibc apparently going away
-------------------------+--------------------------------------------------
  Reporter:  rhaas       |       Owner:                     
      Type:  task        |      Status:  new                
  Priority:  unset       |   Milestone:                     
 Component:  SimFactory  |     Version:  development version
Resolution:              |    Keywords:                     
-------------------------+--------------------------------------------------

Comment (by rhaas):

 Yes the "Roland" in the quote is not me.

 We'd have to check. It is not clear to me what happens if one defines both
 say _DEFAULT_SOURCE and _POSIX_SOURCE, it may depend on how exactly things
 appear in feature.h. We may not have to do anything other than setting
 _BSD_SOURCE which will work for old glibc and new glibc will give us
 {{{M_PI}}} independent of whether or not {{{_BSD_SOURCE}}} is set (though
 maybe {{{__STRICT_ANSI__}}} may cause issues). The help text spit out by
 configure when it finds that {{{M_PI}}} is not defined now says to use
 _XOPEN_SOURCE, since the actual definition of {{{M_PI}}} directly depends
 on {{{__USE_BSD}}} and {{{__USE_XOPEN}}} though that may be changed to
 something else of course. I'd say we leave things as they are for now
 until we actually encounter a system that has issues.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1754#comment:3>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list