[MacPorts] #50800: fix for cairo build failures against Xcode 7.3 linker when /uer/local/lib is absent

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #50800: fix for cairo build failures against Xcode 7.3 linker when /uer/local/lib is absent

MacPorts
#50800: fix for cairo build failures against Xcode 7.3 linker when /uer/local/lib
is absent
-----------------------------------+--------------------------------
 Reporter:  howarth.at.macports@…  |      Owner:  macports-tickets@…
     Type:  defect                 |     Status:  new
 Priority:  Normal                 |  Milestone:
Component:  ports                  |    Version:  2.3.4
 Keywords:                         |       Port:  cairo
-----------------------------------+--------------------------------
 The Xcode 7.3 linker produces a new warning...

 ld: warning: directory not found for option '-L/usr/local/lib'

 when the /usr/local/lib directory is absent. The configure script in cairo
 uses its own pthread test, which doesn't cope with warnings, rather than
 the standard one from pthread.m4. The attached Portfile.diff adds a simple
 fix to prune the results from 'cat conftest.err' of lines with these
 warnings. Tested on 10.11 with Xcode 7.3 beta 5 and /usr/local/lib
 missing.

--
Ticket URL: <https://trac.macports.org/ticket/50800>
MacPorts <https://www.macports.org/>
Ports system for OS X
_______________________________________________
macports-tickets mailing list
[hidden email]
https://lists.macosforge.org/mailman/listinfo/macports-tickets
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #50800: fix for cairo build failures against Xcode 7.3 linker when /uer/local/lib is absent

MacPorts
#50800: fix for cairo build failures against Xcode 7.3 linker when /uer/local/lib
is absent
------------------------------------+--------------------------------
  Reporter:  howarth.at.macports@…  |      Owner:  macports-tickets@…
      Type:  defect                 |     Status:  new
  Priority:  Normal                 |  Milestone:
 Component:  ports                  |    Version:  2.3.4
Resolution:                         |   Keywords:
      Port:  cairo                  |
------------------------------------+--------------------------------

Comment (by howarth.at.macports@…):

 Since the build fails on Xcode 7.3 when /usr/local/lib is absent due
 failure to detect the pthread support...


 {{{
 ./cairo-mutex-impl-private.h:262:3: error: "XXX: No mutex implementation
 found. Cairo will not work with multiple threads. Define CAIRO_NO_MUTEX to
 1
       to acknowledge and accept this limitation and compile cairo without
 thread-safety support."
 }}}

 it seems unnecessary to bump the revision.

--
Ticket URL: <https://trac.macports.org/ticket/50800#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X
_______________________________________________
macports-tickets mailing list
[hidden email]
https://lists.macosforge.org/mailman/listinfo/macports-tickets
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #50800: cairo, cairo-devel: fix for build failures against Xcode 7.3 linker when /usr/local/lib is absent (was: fix for cairo build failures against Xcode 7.3 linker when /uer/local/lib is absent)

MacPorts
In reply to this post by MacPorts
#50800: cairo, cairo-devel: fix for build failures against Xcode 7.3 linker when
/usr/local/lib is absent
------------------------------------+--------------------------
  Reporter:  howarth.at.macports@…  |      Owner:  ryandesign@…
      Type:  defect                 |     Status:  new
  Priority:  Normal                 |  Milestone:
 Component:  ports                  |    Version:  2.3.4
Resolution:                         |   Keywords:  haspatch
      Port:  cairo, cairo-devel     |
------------------------------------+--------------------------
Changes (by ryandesign@…):

 * cc: ryandesign@… (removed)
 * owner:  macports-tickets@… => ryandesign@…
 * keywords:   => haspatch
 * port:  cairo => cairo, cairo-devel


Old description:

> The Xcode 7.3 linker produces a new warning...
>
> ld: warning: directory not found for option '-L/usr/local/lib'
>
> when the /usr/local/lib directory is absent. The configure script in
> cairo uses its own pthread test, which doesn't cope with warnings, rather
> than the standard one from pthread.m4. The attached Portfile.diff adds a
> simple fix to prune the results from 'cat conftest.err' of lines with
> these warnings. Tested on 10.11 with Xcode 7.3 beta 5 and /usr/local/lib
> missing.

New description:

 The Xcode 7.3 linker produces a new warning...

 {{{
 ld: warning: directory not found for option '-L/usr/local/lib'
 }}}

 when the /usr/local/lib directory is absent. The configure script in cairo
 uses its own pthread test, which doesn't cope with warnings, rather than
 the standard one from pthread.m4. The attached Portfile.diff adds a simple
 fix to prune the results from 'cat conftest.err' of lines with these
 warnings. Tested on 10.11 with Xcode 7.3 beta 5 and /usr/local/lib
 missing.

--

--
Ticket URL: <https://trac.macports.org/ticket/50800#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X
_______________________________________________
macports-tickets mailing list
[hidden email]
https://lists.macosforge.org/mailman/listinfo/macports-tickets
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #50800: cairo, cairo-devel: fix for build failures against Xcode 7.3 linker when /usr/local/lib is absent

MacPorts
In reply to this post by MacPorts
#50800: cairo, cairo-devel: fix for build failures against Xcode 7.3 linker when
/usr/local/lib is absent
------------------------------------+------------------------
  Reporter:  howarth.at.macports@…  |      Owner:  ryandesign
      Type:  defect                 |     Status:  new
  Priority:  Normal                 |  Milestone:
 Component:  ports                  |    Version:  2.3.4
Resolution:                         |   Keywords:  haspatch
      Port:  cairo, cairo-devel     |
------------------------------------+------------------------

Comment (by ryandesign):

 Have you discussed this problem with the developers of cairo? Do they
 agree this is the correct solution?

--
Ticket URL: <https://trac.macports.org/ticket/50800#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #50800: cairo, cairo-devel: fix for build failures against Xcode 7.3 linker when /usr/local/lib is absent

MacPorts
In reply to this post by MacPorts
#50800: cairo, cairo-devel: fix for build failures against Xcode 7.3 linker when
/usr/local/lib is absent
------------------------------------+------------------------
  Reporter:  howarth.at.macports@…  |      Owner:  ryandesign
      Type:  defect                 |     Status:  new
  Priority:  Normal                 |  Milestone:
 Component:  ports                  |    Version:  2.3.4
Resolution:                         |   Keywords:  haspatch
      Port:  cairo, cairo-devel     |
------------------------------------+------------------------

Comment (by kencu):

 This same error occurs for other reasons that cause linker warnings as
 well. It appears that anything that throws a linker warning causes the
 pthread tests to fail, and that in turn causes the `error: "XXX: No mutex
 implementation found.` error above.

 I just patched this out today building cairo +universal on mojave (where
 the warning is presumably that i386 is deprecated).

 see also

 <https://bugs.freedesktop.org/show_bug.cgi?id=30910>

 and

 <https://bugs.freedesktop.org/show_bug.cgi?id=33417>

--
Ticket URL: <https://trac.macports.org/ticket/50800#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #50800: cairo, cairo-devel: fix for build failures against Xcode 7.3 linker when /usr/local/lib is absent

MacPorts
In reply to this post by MacPorts
#50800: cairo, cairo-devel: fix for build failures against Xcode 7.3 linker when
/usr/local/lib is absent
------------------------------------+------------------------
  Reporter:  howarth.at.macports@…  |      Owner:  ryandesign
      Type:  defect                 |     Status:  new
  Priority:  Normal                 |  Milestone:
 Component:  ports                  |    Version:  2.3.4
Resolution:                         |   Keywords:  haspatch
      Port:  cairo, cairo-devel     |
------------------------------------+------------------------

Comment (by kencu):

 one useful thing to consider is that adding `-Wl,-w` to the build ldflags
 appears to suppress warnings coming out the linker.

--
Ticket URL: <https://trac.macports.org/ticket/50800#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #50800: cairo, cairo-devel: fix for build failures against Xcode 7.3 linker when /usr/local/lib is absent

MacPorts
In reply to this post by MacPorts
#50800: cairo, cairo-devel: fix for build failures against Xcode 7.3 linker when
/usr/local/lib is absent
------------------------------------+------------------------
  Reporter:  howarth.at.macports@…  |      Owner:  ryandesign
      Type:  defect                 |     Status:  new
  Priority:  Normal                 |  Milestone:
 Component:  ports                  |    Version:  2.3.4
Resolution:                         |   Keywords:  haspatch
      Port:  cairo, cairo-devel     |
------------------------------------+------------------------
Changes (by ryandesign):

 * cc: kencu (added)


Comment:

 Ken, does the problem still occur with cairo 1.16.0 (available in the
 cairo-devel port)? If so, please ping the developers about fixing it via
 the upstream bug report that you found above.

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