[MacPorts] #19012: Problem with libpng version while installing Geany
#19012: Problem with libpng version while installing Geany --------------------------------+------------------------------------------- Reporter: kkazakov@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: --------------------------------+------------------------------------------- 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. -- Ticket URL: <http://trac.macports.org/ticket/19012> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19012: Problem with libpng version while installing Geany --------------------------------+------------------------------------------- Reporter: kkazakov@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: libpng --------------------------------+------------------------------------------- Changes (by jmr@…): * cc: waqar@… (added) * owner: macports-tickets@… => ryandesign@… * port: => libpng -- Ticket URL: <http://trac.macports.org/ticket/19012#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19012: 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 --------------------------------+------------------------------------------- Reporter: kkazakov@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: libpng --------------------------------+------------------------------------------- Comment(by 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. -- Ticket URL: <http://trac.macports.org/ticket/19012#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19012: 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 --------------------------------+------------------------------------------- Reporter: kkazakov@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: libpng --------------------------------+------------------------------------------- Comment(by kkazakov@…): Replying to [comment:2 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. -- Ticket URL: <http://trac.macports.org/ticket/19012#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19012: 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 ---------------------------------+------------------------------------------ Reporter: kkazakov@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Resolution: fixed | Keywords: Port: libpng | ---------------------------------+------------------------------------------ Changes (by toby@…): * status: new => closed * resolution: => fixed Comment: Most recent comment indicates that this is resolved. -- Ticket URL: <http://trac.macports.org/ticket/19012#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts