[MacPorts] #47498: gpsd @3.14: error: redefinition of typedef 'clockid_t'

MacPorts noreply at macports.org
Wed Apr 29 14:35:48 PDT 2015


#47498: gpsd @3.14: error: redefinition of typedef 'clockid_t'
------------------------+--------------------------
  Reporter:  valerio@…  |      Owner:  ryandesign@…
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.3.3
Resolution:             |   Keywords:  snowleopard
      Port:  gpsd       |
------------------------+--------------------------

Comment (by ryandesign@…):

 Ok, so it probably is just a compiler problem (or rather, that the project
 is using C11 features that older compilers don't understand), and
 additionally there is the problem that the port isn't using the compiler
 you requested in all cases.

 Yes, scons needs to be told to use the compiler via CC, CXX environment
 variables. The port already does that. But apparently in some cases, a
 different compiler—your system default gcc-4.2—is used. I notice that the
 lines where gcc-4.2 is used also deal with python, so I suspect this is
 happening because the python27 port was installed with gcc-4.2, and it
 remembered that, and recorded it somewhere, and is now using that for
 these files. Ideally we should stop that from happening but I will have to
 look at the build system for awhile to see why it's happening.

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


More information about the macports-tickets mailing list