Opened 13 years ago

Closed 12 years ago

#31194 closed defect (worksforme)

cairo is linked with old version of glew

Reported by: michelle.lynn.gill@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), mf2k (Frank Schima)
Port: cairo

Description

Trying update the latest gtk2 build on Lion fails. The relevant portion of the log file indicates that it's looking for glew 1.6.0, but the latest glew in MacPorts is 1.7.0

:info:build ../../gtk/gtk-query-immodules-2.0 im-am-et.la im-cedilla.la im-cyrillic-translit.la  im-inuktitut.la im-ipa.la im-multipress.la im-thai.la im-ti-er.la im-ti-et.la im-viqr.la im-xim.la  > gtk.immodules
:info:build dyld: Library not loaded: /Volumes/Files/macports/lib/libGLEW.1.6.0.dylib
:info:build   Referenced from: /Volumes/Files/macports/lib/libcairo.2.dylib
:info:build   Reason: no suitable image found.  Did find:
:info:build     /Users/mlgill/lib/libGLEW.1.6.0.dylib: stat() failed with errno=13
:info:build /bin/sh: line 1: 36011 Trace/BPT trap: 5       ../../gtk/gtk-query-immodules-2.0 im-am-et.la im-cedilla.la im-cyrillic-translit.la im-inuktitut.la im-ipa.la im-multipress.la im-thai.la im-ti-er.la im-ti-et.la im-viqr.la im-xim.la > gtk.immodules
:info:build make[3]: *** [gtk.immodules] Error 133
:info:build make[3]: Leaving directory `/Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtk2/gtk2/work/gtk+-2.24.6/modules/input'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtk2/gtk2/work/gtk+-2.24.6/modules'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtk2/gtk2/work/gtk+-2.24.6'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtk2/gtk2/work/gtk+-2.24.6'
:info:build shell command " cd "/Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtk2/gtk2/work/gtk+-2.24.6" && /usr/bin/make -j4 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for gtk2): org.macports.install org.macports.build org.macports.destroot
:notice:build Log for gtk2 is at: /Volumes/Files/macports/var/macports/logs/_Volumes_Files_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtk2/gtk2/main.log

Activating glew v1.6.0 and subsequently forcing gtk2 to upgrade without updating glew works. I assume either gtk2 needs to be patched so it will accept the new version of glew or perhaps a library symlink isn't being properly created in the new glew install. I suspect the former and have thus filed it as a gtk2 bug.

I started the test gtk2 install with glew v.1.6.0 before remembering to grab the logfile, so I no longer have it to attach. Hopefully the information I've provided above is enough.

Change History (6)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Port: cairo added; gtk2 removed
Summary: gtk2 2.24.6 fails to update because it requires outdated version glewcairo is linked with old version of glew

Actually it looks like a cairo issue: /Volumes/Files/macports/lib/libcairo.2.dylib references /Volumes/Files/macports/lib/libGLEW.1.6.0.dylib which no longer exists because glew was updated to 1.7.0.

I am curious what /Users/mlgill/lib/libGLEW.1.6.0.dylib is and why MacPorts was looking at it at all, since the MacPorts prefix appears to be /Volumes/Files/macports and that file seems to be oustide it.

I am curious why your cairo is linking with glew at all; mine isn't, and the cairo portfile has no mention of glew. When I build cairo, the log includes the line "GLEW functions: no (not required by any backend)". Which variant(s) of cairo are installed?

comment:2 in reply to:  1 Changed 13 years ago by michelle.lynn.gill@…

Replying to ryandesign@…:

Actually it looks like a cairo issue: /Volumes/Files/macports/lib/libcairo.2.dylib references /Volumes/Files/macports/lib/libGLEW.1.6.0.dylib which no longer exists because glew was updated to 1.7.0.

Good catch. I missed that line when I was reading the log.

I am curious what /Users/mlgill/lib/libGLEW.1.6.0.dylib is and why MacPorts was looking at it at all, since the MacPorts prefix appears to be /Volumes/Files/macports and that file seems to be oustide it.

I noticed this and meant to reference this as well. The directory /Users/mlgill/lib doesn't exist, let alone /Users/mlgill/lib/libGLEW.1.6.0.dylib. Beyond the fact that /Users/mlgill is my home directory, I have no idea why it as referenced.

I am curious why your cairo is linking with glew at all; mine isn't, and the cairo portfile has no mention of glew. When I build cairo, the log includes the line "GLEW functions: no (not required by any backend)". Which variant(s) of cairo are installed?

I had trouble getting one of the quartz variants of the various related gtk/cairo/pango libraries to install after upgrading to Lion, so I'm using the x11 version. My cairo is: cairo @1.10.2_4+opengl+x11

If I can provide further information, let me know.

comment:3 Changed 13 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

comment:4 Changed 12 years ago by mf2k (Frank Schima)

Keywords: glew removed

Is this still a problem?

comment:5 Changed 12 years ago by michelle.lynn.gill@…

It doesn't seem to be an issue anymore. I am running glew 1.9.0 with cairo 1.12.8_2. However, I no longer am using gtk, which is where I originally encountered this issue.

comment:6 Changed 12 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.