Page 1 of 1

validation failure in 6.7.5-6 (libpng 1.5.9)

Posted: 2012-02-22T09:13:18-07:00
by axelrose
Hello all,

"make test" stops with this message in "validate-formats-in-memory.log-t"

Code: Select all

  ... (194 passing tests)
  test 195: JNG/Undefined/TrueColor/8-bits... pass.
validate: Application built with libpng-1.2.44 but running with 1.5.9 `' @ warning/png.c/MagickPNGWarningHandler/1754.
validate: MemoryAllocationFailed `' @ error/png.c/WriteOnePNGImage/8861.
I'm not sure what this means. Memory allocation problem or libpng problem?

I checked utilities/.libs/* and tests/.libs/validate this way

Code: Select all

ImageMagick-6.7.5-6 > for f in utilities/.libs/*; do otool -L $f | grep png; done
	/opt/tools/ImageMagick-6.7.5-6/lib/libpng15.15.dylib (compatibility version 25.0.0, current version 25.0.0)
	/opt/tools/ImageMagick-6.7.5-6/lib/libpng15.15.dylib (compatibility version 25.0.0, current version 25.0.0)
        ...
My platform is Mac OS 10.7.3.

Thanks for any help
Axel

Re: validation failure in 6.7.5-6 (libpng 1.5.9)

Posted: 2012-02-23T04:01:32-07:00
by axelrose
I found it

(from config.log)

Code: Select all

configure:30677: checking for png.h
configure:30677: result: yes
configure:30700: checking for LIBPNG15 support 
configure:30722: gcc -std=gnu99 -std=gnu99 -c -D_THREAD_SAFE -D_THREAD_SAFE -pthread -fopenmp -g -O2 -Wall -D_THREAD_SAFE -pthread -I/opt/local/include   -I/opt/tools/ImageMagick-6.7.5-6/include -I/opt/tools/ImageMagick-6.7.5-6/include/freetype2 conftest.c >&5
conftest.c:250:2: error: #error LIBPNG library must be version 15!
conftest.c: In function 'main':
conftest.c:251: error: 'Kaboom' undeclared (first use in this function)
conftest.c:251: error: (Each undeclared identifier is reported only once
conftest.c:251: error: for each function it appears in.)
conftest.c:253: warning: left-hand operand of comma expression has no effect
conftest.c:253: error: expected ';' before 'return'
The test program for checking LIBPNG reports errors from itself and didn't stop the configuration process.

It was my fault to have an old libpng in /opt/local/include. I just removed the directory /opt/local
and all runs fine.

Thanks, Axel.