Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#14592 closed defect (fixed)

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 (1)

gtk2-leopard.diff (756 bytes) - added by afb@… 17 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 17 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

comment:2 Changed 17 years ago by jmroot (Joshua Root)

Milestone: Port Bugs
Owner: changed from macports-tickets@… to nox@…

Assigning to maintainer.

comment:3 Changed 17 years ago by jon-apple@…

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

comment:4 Changed 17 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...

comment:5 Changed 17 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 17 years ago by afb@…

Attachment: gtk2-leopard.diff added

comment:6 Changed 17 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)

comment:7 Changed 17 years ago by nox@…

Owner: changed from nox@… to afb@…

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

comment:8 in reply to:  7 Changed 17 years ago by afb@…

Resolution: fixed
Status: newclosed

Replying to nox@macports.org:

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

Me neither, commiting anyway. (r36189)

comment:9 Changed 16 years ago by jmroot (Joshua Root)

Port: gtk2 added

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.

comment:10 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.