[MacPorts] #29749: libdevil 1.7.8_2 refers to deprecated and removed function in libpng
#29749: libdevil 1.7.8_2 refers to deprecated and removed function in libpng -------------------------------+-------------------------------------------- Reporter: daftalx@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: -------------------------------+-------------------------------------------- while running a code dependent on libdevil, I get: {{{ 15:39:49: Error: dlopen(/opt/local/lib/libunitsync.so, 2): Symbol not found: _png_set_gray_1_2_4_to_8 Referenced from: /opt/local/lib/libIL.1.dylib Expected in: flat namespace in /opt/local/lib/libIL.1.dylib }}} Further reading got me to: "png_set_gray_1_2_4_to_8" was deprecated and REMOVED in libpng 1.4 and replaced with "png_set_expand_gray_1_2_4_to_8". MacPorts has libpng 1.4.7. -- Ticket URL: <https://trac.macports.org/ticket/29749> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29749: libdevil 1.7.8_2 refers to deprecated and removed function in libpng -------------------------------+-------------------------------------------- Reporter: daftalx@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: libdevil -------------------------------+-------------------------------------------- Changes (by macsforever2000@…): * port: => libdevil -- Ticket URL: <https://trac.macports.org/ticket/29749#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29749: libdevil 1.7.8_2 refers to deprecated and removed function in libpng -------------------------------+-------------------------------------------- Reporter: daftalx@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: png | Port: libdevil -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * keywords: => png Comment: This is reported upstream [http://sourceforge.net/tracker/?func=detail&aid=3098108&group_id=4470&atid=1... here] and [http://sourceforge.net/tracker/?func=detail&aid=3076244&group_id=4470&atid=1... here]. Unfortunately the developer appears to have no time for DevIL lately. -- Ticket URL: <https://trac.macports.org/ticket/29749#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29749: libdevil 1.7.8_2 refers to deprecated and removed function in libpng -------------------------------+-------------------------------------------- Reporter: daftalx@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: png | Port: libdevil -------------------------------+-------------------------------------------- Comment(by ryandesign@…): Replying to [ticket:29749 daftalx@…]:
while running a code dependent on libdevil, I get:
libdevil compiles fine for me. If the problem only appears when "running code dependent on libdevil", can you provide an example of this that I could use as a test case? -- Ticket URL: <https://trac.macports.org/ticket/29749#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29749: libdevil 1.7.8_2 refers to deprecated and removed function in libpng -------------------------------+-------------------------------------------- Reporter: daftalx@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: png | Port: libdevil -------------------------------+-------------------------------------------- Comment(by daftalx@…): Replying to [comment:3 ryandesign@…]:
libdevil compiles fine for me. If the problem only appears when "running code dependent on libdevil", can you provide an example of this that I could use as a test case?
Same here, libdevil compiles fine, which makes little sense to me, since il_png.c includes "png.h" in order to call the old "png_set_gray_1_2_4_to_8", while "png.h" no longer references this method (other than in the comments where they say it's been deprecated and replaced by the other one). Could there be another (outdated) png.h outside MacPorts on Mac OS ? Haven't got an easy sample code right here, but a simple use case would be to call the {{{ILboolean readpng_get_image(ILdouble display_exponent)}}} function, which calls "png_set_gray_1_2_4_to_8" (line 281 of il_png.c) in the specific case that your input PNG file is grayscale and has less than 8bit precision. -- Ticket URL: <https://trac.macports.org/ticket/29749#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29749: libdevil 1.7.8_2 refers to deprecated and removed function in libpng -------------------------------+-------------------------------------------- Reporter: daftalx@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: png | Port: libdevil -------------------------------+-------------------------------------------- Comment(by daftalx@…): I mean, as an easy-but-dirty fix, a quick patch to this particular line after fetch would solve the problem here (though indeed not upstream, but if DevIL is not very active these days, that'll do, right ?) -- Ticket URL: <https://trac.macports.org/ticket/29749#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29749: libdevil 1.7.8_2 refers to deprecated and removed function in libpng -------------------------------+-------------------------------------------- Reporter: daftalx@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: png | Port: libdevil -------------------------------+-------------------------------------------- Comment(by ryandesign@…): Yes, a local patch in MacPorts is fine for now, until the developers can apply it to their sources. But before I would commit such a patch, I would want to verify the issue, and verify the patch fixes it. That means I need a set of commands I can type in my terminal that demonstrate the problem. I am not a C programmer; if you are, can you supply a program that calls this function you mentioned, and instructions on how to compile and use it? Regarding the specific type of input file you suggest using with it, can you supply such an image? -- Ticket URL: <https://trac.macports.org/ticket/29749#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29749: libdevil 1.7.8_2 refers to deprecated and removed function in libpng -------------------------------+-------------------------------------------- Reporter: daftalx@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: png | Port: libdevil -------------------------------+-------------------------------------------- Comment(by daftalx@…): didn't have time to actually write specific code for the issue, but i forked the Portfile on my repo (rsync://daftserve.dyndns.org/macports) and patched the necessary files locally (2), the dependent project now works as expected. should I send the Portfile / files somewhere ? -- Ticket URL: <https://trac.macports.org/ticket/29749#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29749: libdevil 1.7.8_2 refers to deprecated and removed function in libpng -------------------------------+-------------------------------------------- Reporter: daftalx@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: png | Port: libdevil -------------------------------+-------------------------------------------- Comment(by ryandesign@…): Yes, please attach your Portfile diff and your patchfiles to this ticket. -- Ticket URL: <https://trac.macports.org/ticket/29749#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29749: libdevil 1.7.8_2 refers to deprecated and removed function in libpng -------------------------------+-------------------------------------------- Reporter: daftalx@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: png | Port: libdevil -------------------------------+-------------------------------------------- Comment(by daftalx@…): Replying to [comment:8 ryandesign@…]:
Yes, please attach your Portfile diff and your patchfiles to this ticket. sorry, attached before reading your text. The attached Portfile can be removed, I also removed a comment I added in the description to remember what I did
-- Ticket URL: <https://trac.macports.org/ticket/29749#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29749: libdevil 1.7.8_2 refers to deprecated and removed function in libpng --------------------------------+------------------------------------------- Reporter: daftalx@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: png Port: libdevil | --------------------------------+------------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Thanks very much! -- Ticket URL: <https://trac.macports.org/ticket/29749#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts