Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#1894 closed defect (fixed)

graphics/pngmeta doesn't configure

Reported by: chris.ridd@… Owned by: fkr@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

The configure phase fails on Panther with a DP version of libpng and zlib installed: % port installed | egrep 'png|zlib'

libpng-1.2.5 pngcrush-1.5.10 zlib-1.1.4

configure output:

DEBUG: Assembled command: 'cd "/Users/cjr/Documents/Projects/darwinports/dports/graphics/ pngmeta/work/pngmeta-1.11" && ./configure --prefix=/opt/local --with-png=/opt/local' creating cache ./config.cache checking for a BSD compatible install... /opt/local/bin/ginstall -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for installed zlib... yes checking for local copy of libpng distribution... /opt/local checking for zlibVersion in -lz... no configure: error: could not find libz

Here's the config.log output: configure:1048: checking for installed zlib configure:1059: gcc -o conftest -g -O2 conftest.c -lz 1>&5 configure: In function `main': configure:1055: warning: initialization discards qualifiers from pointer target type configure:1134: checking for local copy of libpng distribution configure:1174: checking for zlibVersion in -lz configure:1193: gcc -o conftest -g -O2 -I/opt/local conftest.c -lz -L/opt/lo cal -lpng 1>&5 ld: can't locate file for: -lpng

It seems like configure is using the literal value of --with-png to set the include path and lib search paths, so how could this ever have worked?

Changing the configure.args as follows looks really nasty, but does seem to work!

configure.args --with-png-includes="${prefix}/include" \

--with-png-lib="${prefix}/lib" \ --with-png="${prefix}/include" --with-zlib="${prefix}/include" \ --with-zlib-includes="${prefix}/include" \ --with-zlib-lib="${prefix}/lib"

Attachments (1)

pngmeta-1.11_0-zlib-png-path-fix.patch (560 bytes) - added by thomas+opendarwin@… 20 years ago.
patch for the pngmeta 1.11_0 Portfile

Download all attachments as: .zip

Change History (2)

Changed 20 years ago by thomas+opendarwin@…

patch for the pngmeta 1.11_0 Portfile

comment:1 Changed 20 years ago by fkr@…

Resolution: fixed
Status: newclosed

committed. thanks a lot!

Note: See TracTickets for help on using tickets.