Opened 13 years ago

Closed 13 years ago

#27597 closed defect (invalid)

gimp2 @2.6.11 +no_x11 +quartz fails to build

Reported by: peter@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: gimp2

Description

because it cannot find the library `/opt/local/lib/libgtk-x11-2.0.la' which looks like x11 to me.

Attachments (1)

gimp2.log (238.6 KB) - added by peter@… 13 years ago.
Build log

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by peter@…

Attachment: gimp2.log added

Build log

comment:1 Changed 13 years ago by dbevans (David B. Evans)

Owner: changed from macports-tickets@… to devans@…
Status: newassigned

comment:2 Changed 13 years ago by dbevans (David B. Evans)

In order to successfully build gimp2 +no_x11 +quartz all of its dependencies must also be built using those variants.

/opt/local/lib/libgtk-x11-2.0.la

is provided by gtk2 when built with the +x11 variant (default) so this error makes me think that at least one of gimp2's dependencies was built against that version of gtk2

Note that this requirement makes it difficult to build some ports +quartz and others +x11 if they share a common dependent so the most fool proof way to do this is (IMO) is to install a separate instance of MacPorts in a different root (e.g. /opt/quartz), configure this version of MacPorts to use +no_x11 +quartz variants by default and build from scratch.

I have a working version of installed using that approach

  gimp2 @2.6.11_1+debug+no_x11+quartz (active)

comment:3 Changed 13 years ago by dbevans (David B. Evans)

An easy way to find this sort of problem is to use the depsearch.sh script described in the ProblemHotlist under the heading:

A port failed to build, upgrade, or run with a message referring to libintl.3.dylib

Using this script, the follow command would list installed ports that are linked against the offending library

./depsearch.sh libgtk-x11-2.0

Then you should be able to rebuild these ports by installing with +no_x11 +quartz

comment:4 Changed 13 years ago by peter@…

OK, good. You are right. I managed to walk backwards in the chain of dependencies and recompile everything. Please close as invalid.

comment:5 Changed 13 years ago by dbevans (David B. Evans)

Resolution: invalid
Status: assignedclosed

Glad you got it working.

Note: See TracTickets for help on using tickets.