New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #14592 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

gtk2 refers to libXrandr.2.0.0.dylib

Reported by: alan@… Owned by: afb@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: gtk2

Description

install of gtk2 failed. i686-apple-darwin9-gcc-4.0.1: /usr/X11/lib/libXrandr.2.0.0.dylib: No such file or directory

I had to make a symbolic link by hand: libXrandr.2.0.0.dylib -> libXrandr.2.dylib

This was on a MacBook I bought today with Mac OS X version 10.5.2.

Attachments

gtk2-leopard.diff Download (0.7 KB) - added by afb@… 4 years ago.

Change History

  Changed 4 years ago by afb@…

For the record, the command to regenerate the link is:

sudo ln -s libXrandr.2.dylib /usr/X11/lib/libXrandr.2.0.0.dylib

  Changed 4 years ago by jmr@…

  • owner changed from macports-tickets@… to nox@…
  • milestone set to Port Bugs

Assigning to maintainer.

  Changed 4 years ago by jon-apple@…

I can replicate this, on a new macBook pro with 10.5.2. The workaround is good.

  Changed 4 years ago by afb@…

This problems happens when Mac OS X 10.5.2 is pre-installed.

It does not happen when it has been upgraded from 10.5.0...

  Changed 4 years ago by emailhole@…

The port appears to be looking for a specific version of libXrandr, specifically 2.0.0. However, 10.5.2 appears to have 2.1.0. A simple fix assuming that the library interface does not change is to just use libXrandr.dylib since there is a symbolic link for it to the version installed. I suspect that upgraded machines have both 2.0.0 and 2.1.0 for compatibility thus since the port looks for a specific version it works.

Changed 4 years ago by afb@…

  Changed 4 years ago by afb@…

Suggested workaround, warn user about their missing system library. (if someone wants to track down what actually uses 2.0.0, go ahead)

follow-up: ↓ 8   Changed 4 years ago by nox@…

  • owner changed from nox@… to afb@…

afb: I don't currently have Leopard. Feel free to commit your patch.

in reply to: ↑ 7   Changed 4 years ago by afb@…

  • status changed from new to closed
  • resolution set to fixed

Replying to nox@macports.org:

afb: I don't currently have Leopard. Feel free to commit your patch.

Me neither, commiting anyway. (r36189)

  Changed 3 years ago by jmr@…

  • port set to gtk2

Since people still seem to be finding this ticket and using the workaround: This isn't the best solution. See #17008, particularly the third comment.

  Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.