Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#38918 closed defect (invalid)

Building Emacs fails - downgraded libpng?

Reported by: holtzermann17@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), drkp (Dan Ports)
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Change History (3)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… dports@… added
Description: modified (diff)

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.

comment:2 Changed 11 years ago by drkp (Dan Ports)

Resolution: invalid
Status: newclosed

This appears not to be a MacPorts issue.

comment:3 Changed 11 years ago by holtzermann17@…

Revisiting some months later... the relevant MacPorts command in this case would be

port install emacs +x11
Note: See TracTickets for help on using tickets.