#38918: Building Emacs fails - downgraded libpng? ------------------------------+-------------------------------- Reporter: holtzermann17@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | ------------------------------+-------------------------------- Changes (by ryandesign@…): * cc: ryandesign@…, dports@… (added) Old description:
After my attempt to build Emacs 24.3 from source failed, Eli Zaretski commented to me:
My crystal ball says that you somehow downgraded your libraries to a libpng version older than 1.5, while the headers are still for 1.5. These functions are needed by Emacs for libpng 1.5 or later.
Indeed,
sudo port uninstall libpng
shows that I had 4 versions installed (1.4.7_0, 1.4.8_0, 1.4.12_0, and 1.5.15_0 - which is designated as "active"). I uninstalled these earlier versions along with all libpng support that had been installed with fink -- but I still get the same error message when I try to build Emacs.
Undefined symbols: "_png_longjmp", referenced from: _my_png_error in image.o "_png_set_longjmp_fn", referenced from: _png_load_body in image.o
The Emacs bug report is here. http://lists.gnu.org/archive/html/bug-gnu-emacs/2013-04/msg00593.html
New description: After my attempt to build Emacs 24.3 from source failed, Eli Zaretski commented to me:
My crystal ball says that you somehow downgraded your libraries to a libpng version older than 1.5, while the headers are still for 1.5. These functions are needed by Emacs for libpng 1.5 or later.
Indeed, {{{ sudo port uninstall libpng }}} shows that I had 4 versions installed (1.4.7_0, 1.4.8_0, 1.4.12_0, and 1.5.15_0 - which is designated as "active"). I uninstalled these earlier versions along with all libpng support that had been installed with fink -- but I still get the same error message when I try to build Emacs. {{{ Undefined symbols: "_png_longjmp", referenced from: _my_png_error in image.o "_png_set_longjmp_fn", referenced from: _png_load_body in image.o }}} The Emacs bug report is here. http://lists.gnu.org/archive/html/bug-gnu-emacs/2013-04/msg00593.html -- Comment: It is not a problem to have multiple versions of a port installed with MacPorts, since only one of them (hopefully the most recent one) is active. It is definitely a problem to have Fink installed on the same system where you have MacPorts installed. Please decide which package management system you would like to use, and uninstall the other and all software installed by it. Once that's done, clean and re-try your emacs installation. It sounds like you're trying to build emacs manually, outside of MacPorts. You can do that if you insist, or you can install it using MacPorts: {{{ sudo port install emacs }}} If installing it with MacPorts fails, attach the main.log file. -- Ticket URL: <https://trac.macports.org/ticket/38918#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X