[MacPorts] #25379: cairo @1.8.10 won't build when windows.h header is present (was: Cairo 1.8.10 won't build MP1.91 / SL 10.6.4 (+no_x11 +quartz -universal))

MacPorts noreply at macports.org
Mon Jan 25 12:07:55 UTC 2021


#25379: cairo @1.8.10 won't build when windows.h header is present
--------------------------+------------------------
  Reporter:  hackdefendr  |      Owner:  ryandesign
      Type:  defect       |     Status:  closed
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  1.9.1
Resolution:  fixed        |   Keywords:
      Port:  cairo        |
--------------------------+------------------------
Changes (by ryandesign):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Looks like this old version of cairo inferred that you were on Windows
 because it found a header called windows.h:

 {{{
 :info:configure checking windows.h usability... yes
 :info:configure checking windows.h presence... yes
 :info:configure checking for windows.h... yes
 }}}

 It then tried and failed to build the Windows backends, which can only be
 built on Windows:

 {{{
 :info:configure checking for cairo's Microsoft Windows surface backend
 feature...
 :info:configure checking whether cairo's Microsoft Windows surface backend
 feature could be enabled... yes
 :info:configure checking for cairo's Microsoft Windows font backend
 feature...
 :info:configure checking whether cairo's Microsoft Windows font backend
 feature could be enabled... yes
 }}}

 windows.h is not a header that normally exists on macOS and I don't know
 of any port in MacPorts that installs it (although it would not surprise
 me if we found one that does) but apparently you have it on your system.
 You filed [ticket:25708 another contemporaneous ticket] about problems
 caused by the unexpected presence of this header.

 Cairo
 [https://github.com/freedesktop/cairo/commit/117a3c27d48107cb9c570fee725105419b1251e3
 changed their method for detecting Windows] in 2017. This new method is
 included in the versions of cairo that we currently have in MacPorts,
 cairo @1.16.0 and cairo-devel @1.17.4. So now the build will not fail,
 even if you unexpectedly have a windows.h header. Nevertheless I recommend
 you remove that header to avoid potential problems building other software
 in the future.

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


More information about the macports-tickets mailing list