Opened 16 years ago

Closed 15 years ago

#19012 closed defect (fixed)

libpng: Incompatible library version: libgtk-x11-2.0.0.dylib requires version 36.0.0 or later, but libpng12.0.dylib provides version 33.0.0

Reported by: kkazakov@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: waqar@…
Port: libpng

Description

Ok, it's a fresh install of 10.5.6.

I installed latest macports, and then just did

sudo port install geany

after some time (compiling everything), it was done. System was rebooted, and I have in .profile the correct path. I tried executing geany and got:

wasp:~ wasp$ geany
dyld: Library not loaded: /opt/local/lib/libpng12.0.dylib
  Referenced from: /opt/local/lib/libgtk-x11-2.0.0.dylib
  Reason: Incompatible library version: libgtk-x11-2.0.0.dylib requires version 36.0.0 or later, but libpng12.0.dylib provides version 33.0.0
Trace/BPT trap
wasp:~ wasp$ 

Check for installed png provides this:

wasp:~ wasp$ sudo port installed libpng
The following ports are currently installed:
  libpng @1.2.35_0 (active)
wasp:~ wasp$

I haven't installed anything else via macports. Geany was the primary reason to install it.

macports is the latest version. sudo port selfupdate did nothing.

Change History (5)

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

Cc: waqar@… added
Owner: changed from macports-tickets@… to ryandesign@…
Port: libpng added

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Problem with libpng version while installing Geanylibpng: Incompatible library version: libgtk-x11-2.0.0.dylib requires version 36.0.0 or later, but libpng12.0.dylib provides version 33.0.0

MacPorts libpng 1.2.35 does provide libpng12.dylib version 36.0.0:

$ otool -L /opt/local/lib/libpng12.dylib 
/opt/local/lib/libpng12.dylib:
        /opt/local/lib/libpng12.0.dylib (compatibility version 36.0.0, current version 36.0.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)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.9)
$

So, for some reason, libgtk is not using MacPorts libpng but some other libpng. Some suggestions:

  • Where else do you have libpng on your hard drive -- perhaps you have another copy in /usr/local or /sw? ("locate libpng12.dylib" can tell you.) Try removing them.
  • Do you have the environment variable DYLD_LIBRARY_PATH set, thus telling software to first look for libraries in another location? ("env | grep DYLD" can tell you.) If so, try unsetting it.

comment:3 in reply to:  2 Changed 16 years ago by kkazakov@…

Replying to ryandesign@…:

MacPorts libpng 1.2.35 does provide libpng12.dylib version 36.0.0:

$ otool -L /opt/local/lib/libpng12.dylib 
/opt/local/lib/libpng12.dylib:
        /opt/local/lib/libpng12.0.dylib (compatibility version 36.0.0, current version 36.0.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)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.9)
$

So, for some reason, libgtk is not using MacPorts libpng but some other libpng. Some suggestions:

  • Where else do you have libpng on your hard drive -- perhaps you have another copy in /usr/local or /sw? ("locate libpng12.dylib" can tell you.) Try removing them.
  • Do you have the environment variable DYLD_LIBRARY_PATH set, thus telling software to first look for libraries in another location? ("env | grep DYLD" can tell you.) If so, try unsetting it.

I finally found out where the problem was. A friend of mine suggested to use XQuartz http://xquartz.macosforge.org/trac/wiki instead of original X11, shipped with Mac OS X. Tried installing MacPorts and Geany on a machine with X11 from Apple, and it did worked great, geany is starting.

So - that's good to know. XQuartz was installed before compiling, but why it was improperly linked ... can't tell.

comment:4 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:5 Changed 15 years ago by tobypeterson

Resolution: fixed
Status: newclosed

Most recent comment indicates that this is resolved.

Note: See TracTickets for help on using tickets.