[MacPorts] #47476: scons does not properly add header guards to generated config header (was: Building of gpsd 3.14 fails on Snow Leopard, Mac OS X 10.6.8, because of redefinition of typedef 'clockid_t')

MacPorts noreply at macports.org
Sat Apr 18 03:10:38 PDT 2015


#47476: scons does not properly add header guards to generated config header
------------------------------+-----------------------
  Reporter:  Peter_Dyballa@…  |      Owner:  landonf@…
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.3.3
Resolution:                   |   Keywords:
      Port:  scons            |
------------------------------+-----------------------
Changes (by jeremyhu@…):

 * owner:  macports-tickets@… => landonf@…
 * port:  gpsd => scons


Comment:

 {{{
 In file included from ais_json.c:23:
 In file included from ./libgps.h:13:
 In file included from ./compiler.h:23:
 ./gpsd_config.h:305:13: error: redefinition of typedef 'clockid_t' is
 invalid in C [-Wtypedef-redefinition]
 typedef int clockid_t;
             ^
 In file included from ais_json.c:19:
 ./gpsd_config.h:305:13: note: previous definition is here
 typedef int clockid_t;
             ^
 1 error generated.
 }}}

 The issue is that gpsd_config.h is included twice, and the header doesn't
 properly guard for that as it should.

 {{{
 /* gpsd_config.h.  Generated by scons, do not hand-hack.  */
 }}}

 As such, this is a scons bug.

-- 
Ticket URL: <https://trac.macports.org/ticket/47476#comment:4>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list