Opened 16 years ago

Closed 15 years ago

#15554 closed defect (worksforme)

gnome-terminal 2.22.1_0 Incompatible library version

Reported by: zweistein12@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: gnome-terminal

Description

I installed gnome-terminal, but i can not start the terminal, here the output: $ gnome-terminal dyld: Library not loaded: /usr/X11/lib/libpng12.0.dylib

Referenced from: /usr/X11/lib/libcairo.2.dylib Reason: Incompatible library version: libcairo.2.dylib requires version 27.0.0 or later, but libpng12.0.dylib provides version 25.0.0

Trace/BPT trap

I have MPB with 10.5.3

Change History (12)

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

It was using some libraries installed with X11 instead of the ones provided by MacPorts. This should be fixed by r37458, please confirm.

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

Cc: jmr@… added

comment:3 Changed 16 years ago by zweistein12@…

I have sudo port sync; sudo port upgrade gnome-terminal, but gnome-terminal is not starting. I have played with port and found that two versions of libpng are installed. Does that help you?

$ sudo port installed|grep png
  libpng @1.2.26_0 (active)
  libpng @1.2.29_0

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

Ah, the older version of libpng is active. Try this:

sudo port deactivate libpng @1.2.26_0
sudo port activate libpng @1.2.29_0

comment:5 Changed 16 years ago by zweistein12@…

No better, i have activate libpng @1.2.29_0, but gnome-terminal will not starting. The output

$ gnome-terminal 
dyld: Library not loaded: /usr/X11/lib/libpng12.0.dylib
  Referenced from: /usr/X11/lib/libcairo.2.dylib
  Reason: Incompatible library version: libcairo.2.dylib requires version 27.0.0 or later, but libpng12.0.dylib provides version 25.0.0
Trace/BPT trap

The file /usr/X11/lib/libcairo.2.dylib is from OS X, or not? I am confused.

comment:6 in reply to:  5 Changed 16 years ago by jmroot (Joshua Root)

Replying to zweistein12@gmx.de:

No better, i have activate libpng @1.2.29_0, but gnome-terminal will not starting.

Hmm, did you rebuild gnome-terminal with the newer libpng version active?

The file /usr/X11/lib/libcairo.2.dylib is from OS X, or not? I am confused.

Yes, everything in /usr/X11 is part of Apple's X11. Ports should not be linking against anything in there unless it is not available in /opt/local.

comment:7 Changed 16 years ago by zweistein12@…

I have install/uninstall gnome-terminal twice. But terminal does not start nevertheless. I have found a new command

$ otool -L /opt/local/bin/gnome-terminal 
/opt/local/bin/gnome-terminal:
	/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 32.0.0)
	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 34.0.0)
	/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio (compatibility version 1.0.0, current version 1.0.0)
	/opt/local/lib/libglade-2.0.0.dylib (compatibility version 1.0.0, current version 1.7.0)
	/opt/local/lib/libgnomeui-2.0.dylib (compatibility version 2202.0.0, current version 2202.0.0)
	/opt/local/lib/libgio-2.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/opt/local/lib/libgnome-keyring.0.dylib (compatibility version 2.0.0, current version 2.1.0)
	/opt/local/lib/libbonoboui-2.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/opt/local/lib/libgnomecanvas-2.0.dylib (compatibility version 2002.0.0, current version 2002.0.0)
	/opt/local/lib/libgailutil.18.dylib (compatibility version 19.0.0, current version 19.1.0)
	/opt/local/lib/libart_lgpl_2.2.dylib (compatibility version 6.0.0, current version 6.20.0)
	/opt/local/lib/libgnome-2.0.dylib (compatibility version 2201.0.0, current version 2201.0.0)
	/opt/local/lib/libpopt.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/opt/local/lib/libgnomevfs-2.0.dylib (compatibility version 2201.0.0, current version 2201.0.0)
	/opt/local/lib/libxml2.2.dylib (compatibility version 9.0.0, current version 9.31.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.1)
	/opt/local/lib/libdbus-glib-1.2.dylib (compatibility version 4.0.0, current version 4.0.0)
	/opt/local/lib/libdbus-1.3.dylib (compatibility version 8.0.0, current version 8.0.0)
	/opt/local/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)
	/opt/local/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)
	/opt/local/lib/libesd.0.dylib (compatibility version 3.0.0, current version 3.38.0)
	/opt/local/lib/libbonobo-2.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/opt/local/lib/libgconf-2.4.dylib (compatibility version 6.0.0, current version 6.5.0)
	/opt/local/lib/libaudiofile.0.dylib (compatibility version 1.0.0, current version 1.2.0)
	/opt/local/lib/libbonobo-activation.4.dylib (compatibility version 5.0.0, current version 5.0.0)
	/opt/local/lib/libORBitCosNaming-2.0.dylib (compatibility version 2.0.0, current version 2.0.0)
	/opt/local/lib/libORBit-2.0.dylib (compatibility version 2.0.0, current version 2.0.0)
	/usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 25.0.0)
	/opt/local/lib/libgthread-2.0.0.dylib (compatibility version 1601.0.0, current version 1601.3.0)
	/opt/local/lib/libstartup-notification-1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/opt/local/lib/libvte.9.dylib (compatibility version 12.0.0, current version 12.17.0)
	/opt/local/lib/libncurses.5.dylib (compatibility version 5.0.0, current version 5.0.0)
	/opt/local/lib/libgtk-x11-2.0.0.dylib (compatibility version 1201.0.0, current version 1201.9.0)
	/opt/local/lib/libpangox-1.0.0.dylib (compatibility version 2003.0.0, current version 2003.1.0)
	/opt/local/lib/libgdk-x11-2.0.0.dylib (compatibility version 1201.0.0, current version 1201.9.0)
	/opt/local/lib/libatk-1.0.0.dylib (compatibility version 2210.0.0, current version 2210.1.0)
	/opt/local/lib/libgdk_pixbuf-2.0.0.dylib (compatibility version 1201.0.0, current version 1201.9.0)
	/opt/local/lib/libtiff.3.dylib (compatibility version 12.0.0, current version 12.2.0)
	/opt/local/lib/libjpeg.62.dylib (compatibility version 63.0.0, current version 63.0.0)
	/opt/local/lib/libpangocairo-1.0.0.dylib (compatibility version 2003.0.0, current version 2003.1.0)
	/opt/local/lib/libcairo.2.dylib (compatibility version 20.0.0, current version 20.5.0)
	/opt/local/lib/libpng12.0.dylib (compatibility version 30.0.0, current version 30.0.0)
	/opt/local/lib/libpixman-1.0.dylib (compatibility version 11.0.0, current version 11.0.0)
	/usr/X11/lib/libcairo.2.dylib (compatibility version 20.0.0, current version 20.5.0)
	/usr/X11/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/X11/lib/libICE.6.dylib (compatibility version 10.0.0, current version 10.0.0)
	/usr/X11/lib/libpng12.0.dylib (compatibility version 25.0.0, current version 25.0.0)
	/usr/X11/lib/libpixman-1.0.dylib (compatibility version 11.0.0, current version 11.0.0)
	/usr/X11/lib/libXft.2.dylib (compatibility version 4.0.0, current version 4.2.0)
	/usr/X11/lib/libXrender.1.dylib (compatibility version 5.0.0, current version 5.0.0)
	/usr/X11/lib/libfontconfig.1.dylib (compatibility version 5.0.0, current version 5.0.0)
	/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/X11/lib/libfreetype.6.dylib (compatibility version 10.0.0, current version 10.16.0)
	/opt/local/lib/libpangoxft-1.0.0.dylib (compatibility version 2003.0.0, current version 2003.1.0)
	/opt/local/lib/libpangoft2-1.0.0.dylib (compatibility version 2003.0.0, current version 2003.1.0)
	/opt/local/lib/libXft.2.dylib (compatibility version 4.0.0, current version 4.2.0)
	/opt/local/lib/libpango-1.0.0.dylib (compatibility version 2003.0.0, current version 2003.1.0)
	/opt/local/lib/libgobject-2.0.0.dylib (compatibility version 1601.0.0, current version 1601.3.0)
	/opt/local/lib/libgmodule-2.0.0.dylib (compatibility version 1601.0.0, current version 1601.3.0)
	/opt/local/lib/libglib-2.0.0.dylib (compatibility version 1601.0.0, current version 1601.3.0)
	/opt/local/lib/libintl.8.dylib (compatibility version 9.0.0, current version 9.2.0)
	/opt/local/lib/libXrender.1.dylib (compatibility version 5.0.0, current version 5.0.0)
	/usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current version 9.0.0)
	/usr/X11/lib/libXau.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/X11/lib/libXdmcp.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/opt/local/lib/libfontconfig.1.dylib (compatibility version 5.0.0, current version 5.0.0)
	/opt/local/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
	/opt/local/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 7.2.0)
	/opt/local/lib/libfreetype.6.dylib (compatibility version 10.0.0, current version 10.16.0)
	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)

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

That's very strange. It's linking against libraries in /opt/local/lib, and also linking against some of the same libraries in /usr/X11/lib. The latter is almost certainly what's causing problems, but I'm afraid I have no idea why it's doing that.

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

Port: gnome-terminal added

Is this still happening with 2.24.2?

comment:10 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:11 Changed 15 years ago by jmroot (Joshua Root)

Cc: jmr@… removed
Owner: changed from macports-tickets@… to devans@…

comment:12 Changed 15 years ago by dbevans (David B. Evans)

Resolution: worksforme
Status: newclosed

I cannot reproduce this problem with the current version gnome-terminal 2.26.2. Program builds and runs correctly.

devans% otool -L /opt/local/bin/gnome-terminal
/opt/local/bin/gnome-terminal:
        /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 18.0.0)
        /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 22.0.0)
        /opt/local/lib/libvte.9.dylib (compatibility version 16.0.0, current version 16.0.0)
        /opt/local/lib/libncurses.5.dylib (compatibility version 5.0.0, current version 5.0.0)
        /opt/local/lib/libgtk-x11-2.0.0.dylib (compatibility version 1601.0.0, current version 1601.1.0)
        /opt/local/lib/libgdk-x11-2.0.0.dylib (compatibility version 1601.0.0, current version 1601.1.0)
        /opt/local/lib/libatk-1.0.0.dylib (compatibility version 2610.0.0, current version 2610.1.0)
        /opt/local/lib/libgdk_pixbuf-2.0.0.dylib (compatibility version 1601.0.0, current version 1601.1.0)
        /opt/local/lib/libpangocairo-1.0.0.dylib (compatibility version 2401.0.0, current version 2401.2.0)
        /opt/local/lib/libgio-2.0.0.dylib (compatibility version 2001.0.0, current version 2001.3.0)
        /opt/local/lib/libXinerama.1.dylib (compatibility version 2.0.0, current version 2.0.0)
        /opt/local/lib/libXi.6.dylib (compatibility version 7.0.0, current version 7.0.0)
        /opt/local/lib/libXrandr.2.dylib (compatibility version 5.0.0, current version 5.0.0)
        /opt/local/lib/libXcursor.1.dylib (compatibility version 2.0.0, current version 2.2.0)
        /opt/local/lib/libXcomposite.1.dylib (compatibility version 2.0.0, current version 2.0.0)
        /opt/local/lib/libXdamage.1.dylib (compatibility version 3.0.0, current version 3.0.0)
        /opt/local/lib/libpangoft2-1.0.0.dylib (compatibility version 2401.0.0, current version 2401.2.0)
        /opt/local/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)
        /opt/local/lib/libXfixes.3.dylib (compatibility version 5.0.0, current version 5.0.0)
        /opt/local/lib/libcairo.2.dylib (compatibility version 10803.0.0, current version 10803.6.0)
        /opt/local/lib/libpixman-1.0.dylib (compatibility version 15.0.0, current version 15.0.0)
        /opt/local/lib/libpng12.0.dylib (compatibility version 36.0.0, current version 36.0.0)
        /opt/local/lib/libXrender.1.dylib (compatibility version 5.0.0, current version 5.0.0)
        /opt/local/lib/libpango-1.0.0.dylib (compatibility version 2401.0.0, current version 2401.2.0)
        /opt/local/lib/libfontconfig.1.dylib (compatibility version 5.0.0, current version 5.0.0)
        /opt/local/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 7.2.0)
        /opt/local/lib/libfreetype.6.dylib (compatibility version 10.0.0, current version 10.20.0)
        /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
        /opt/local/lib/libgconf-2.4.dylib (compatibility version 6.0.0, current version 6.5.0)
        /opt/local/lib/libORBit-2.0.dylib (compatibility version 2.0.0, current version 2.0.0)
        /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 369.8.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.12)
        /opt/local/lib/libgmodule-2.0.0.dylib (compatibility version 2001.0.0, current version 2001.3.0)
        /opt/local/lib/libgthread-2.0.0.dylib (compatibility version 2001.0.0, current version 2001.3.0)
        /opt/local/lib/libdbus-glib-1.2.dylib (compatibility version 4.0.0, current version 4.0.0)
        /opt/local/lib/libdbus-1.3.dylib (compatibility version 8.0.0, current version 8.0.0)
        /opt/local/lib/libgobject-2.0.0.dylib (compatibility version 2001.0.0, current version 2001.3.0)
        /opt/local/lib/libglib-2.0.0.dylib (compatibility version 2001.0.0, current version 2001.3.0)
        /opt/local/lib/libintl.8.dylib (compatibility version 9.0.0, current version 9.2.0)
        /opt/local/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
        /opt/local/lib/libstartup-notification-1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
        /opt/local/lib/libX11.6.dylib (compatibility version 9.0.0, current version 9.0.0)
        /opt/local/lib/libXau.6.dylib (compatibility version 7.0.0, current version 7.0.0)
        /opt/local/lib/libXdmcp.6.dylib (compatibility version 7.0.0, current version 7.0.0)
        /opt/local/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.0.0)
        /opt/local/lib/libICE.6.dylib (compatibility version 10.0.0, current version 10.0.0)
        /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 128.0.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)

Since this is a very old ticket and there has been no response for several months I will assume the problem has been resolved in later versions. If not, please file a new ticket against the current version with full particulars. Thanks.

Note: See TracTickets for help on using tickets.