Opened 19 years ago

Closed 19 years ago

#8944 closed defect (fixed)

BUG: libpng-1.2.10 port upgrade fails

Reported by: armando@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc:
Port:

Description

port -a upgrade is failing on libpng-1.2.10 for me (after a port sync and port selfupdate commands). Strangely, the error seems to be causing some sort of cyclical issue on one particular step of the build process, where it keeps trying to compile the shared library, but has missing symbols, and then tries again, just to fail again.

One iteration of this error looks like this:


Error: Unable to upgrade port: 1 ---> Building libpng with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_graphics_libpng/work/libpng-1.2.10" && make all" returned error 2 Command output: cc -dynamiclib \

-install_name /opt/local/lib/libpng12.0.dylib \ -current_version 0.1.2.10 -compatibility_version 0.1.2.10 \ -o libpng12.0.1.2.10.dylib \ png.pic.o pngset.pic.o pngget.pic.o pngrutil.pic.o pngtrans.pic.o pngwutil.pic.o pngread.pic.o pngrio.pic.o pngwio.pic.o pngwrite.pic.o pngrtran.pic.o pngwtran.pic.o pngmem.pic.o pngerror.pic.o pngpread.pic.o -L/opt/local/lib -lz

ld: Undefined symbols: _png_mmx_support _png_combine_row _png_do_read_interlace _png_read_filter_row /usr/bin/libtool: internal link edit command failed make: * [libpng12.0.1.2.10.dylib] Error 1


... in the time it took to post this, about 5 minutes, the libpng port upgrade finally properly failed, with "Error: Unable to upgrade port: 1".

Change History (2)

comment:1 Changed 19 years ago by jaycox@…

I can confirm this problem with a virgin install of darwinports on an intel powered mac.

A workaround is to add the file pnggccrd.o to the OBJS in the Makefile.

comment:2 Changed 19 years ago by mww@…

Resolution: fixed
Status: newclosed
Summary: libpng-1.2.10 port upgrade failsBUG: libpng-1.2.10 port upgrade fails

switched to ./configure-style build - should provide mxx-support & do compile

Note: See TracTickets for help on using tickets.