From: Peter D. <Peter_Dyballa@Freenet.DE> - 2012-02-20 00:06:20
|
Am 19.02.2012 um 17:27 schrieb Tomoaki Okayama: > If you find a nice solution, could you please send > an explicit patch to us? I am attaching the modified INFO file! It simply uses GCC 4.2 explicitly for building. > (If you like, you can take over the maintainer) I prefer not to... > > > I'd like to use this opportunity to share another > problem in imagemagick. I think current imagemagick > is not able to handle *.png file. For example > > $ otool -L /sw/bin/convert | grep png > > outputs nothing. I don't know since when this > situation come... Maybe since the start! Configure checks for the presence of an usable PNG installation. It then compiles an interface file: CC coders/coders_png_la-png.lo Using built-in specs. Target: powerpc-apple-darwin9 Configured with: /var/tmp/gcc_42/gcc_42-5577~1/src/configure -- disable-checking --prefix=/usr --mandir=/usr/share/man --enable- languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/ $/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-gxx- include-dir=/usr/include/c++/4.0.0 --program-prefix= --host=powerpc- apple-darwin9 --target=powerpc-apple-darwin9 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5577) /usr/libexec/gcc/powerpc-apple-darwin9/4.2.1/cc1 -quiet -v -I. -I./ config -I/sw/include/freetype2 -I/sw/include -I/sw/lib/pango-ft219/ include -I/sw/lib/fontconfig2/include -I/sw/lib/freetype219/include -I/ sw/lib/freetype219/include/freetype2 -I/sw/include -I/sw/include -I/ usr/X11R6/include -I/sw/include/libxml2 -MD png.d -MF coders/.deps/ coders_png_la-png.Tpo -MP -MT coders/coders_png_la-png.lo -H - D__DYNAMIC__ -DHAVE_CONFIG_H -D_THREAD_SAFE coders/png.c -fPIC -quiet - dumpbase png.c -mmacosx-version-min=10.5 -auxbase png -O0 -Wall -W - std=gnu99 -version -fopenmp -o /var/tmp//ccEprfQ0.s ignoring nonexistent directory "/usr/lib/gcc/powerpc-apple- darwin9/4.2.1/../../../../powerpc-apple-darwin9/include" ignoring duplicate directory "/sw/include" ignoring duplicate directory "/sw/include" #include "..." search starts here: #include <...> search starts here: . ./config /sw/include/freetype2 /sw/include /sw/lib/pango-ft219/include /sw/lib/fontconfig2/include /sw/lib/freetype219/include /sw/lib/freetype219/include/freetype2 /usr/X11R6/include /sw/include/libxml2 /usr/local/include /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/include /usr/include /System/Library/Frameworks (framework directory) /Library/Frameworks (framework directory) End of search list. GNU C version 4.2.1 (Apple Inc. build 5577) (powerpc-apple-darwin9) compiled by GNU C version 4.2.1 (Apple Inc. build 5577). GGC heuristics: --param ggc-min-expand=100 --param ggc-min- heapsize=131072 Compiler executable checksum: bb38233a5facaf11e5b37343399fa01e . ./magick/studio.h .. ./magick/magick-config.h .. /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/include/stdarg.h .. /usr/include/stdio.h ... /usr/include/_types.h .... /usr/include/sys/_types.h ..... /usr/include/sys/cdefs.h ..... /usr/include/machine/_types.h ...... /usr/include/ppc/_types.h .. /usr/include/stdlib.h ... /usr/include/available.h ... /usr/include/sys/wait.h .... /usr/include/sys/signal.h ..... /usr/include/sys/appleapiopts.h ..... /usr/include/machine/signal.h ...... /usr/include/ppc/signal.h ....... /usr/include/ppc/_structs.h ..... /usr/include/sys/_structs.h ...... /usr/include/machine/_structs.h ....... /usr/include/ppc/_structs.h ........ /usr/include/mach/ppc/_structs.h .... /usr/include/sys/resource.h ..... /usr/include/sys/_structs.h .... /usr/include/machine/endian.h ..... /usr/include/ppc/endian.h ...... /usr/include/sys/_endian.h ... /usr/include/alloca.h ... /usr/include/machine/types.h .... /usr/include/ppc/types.h ..... /usr/include/ppc/_types.h .. /usr/include/unistd.h ... /usr/include/sys/unistd.h ... /usr/include/sys/select.h .... /usr/include/sys/_structs.h .... /usr/include/sys/_select.h .. /usr/include/strings.h ... /usr/include/string.h .. /usr/include/ctype.h ... /usr/include/runetype.h .. /usr/include/locale.h ... /usr/include/_locale.h .. /usr/include/errno.h ... /usr/include/sys/errno.h .. /usr/include/fcntl.h ... /usr/include/sys/fcntl.h .. /usr/include/math.h ... /usr/include/architecture/ppc/math.h .. /usr/include/time.h ... /usr/include/_structs.h .... /usr/include/sys/_structs.h .. /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/include/limits.h ... /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/include/syslimits.h ... /usr/include/limits.h .... /usr/include/machine/limits.h ..... /usr/include/ppc/limits.h ...... /usr/include/ppc/_limits.h .... /usr/include/sys/syslimits.h .. /usr/include/signal.h .. /usr/include/assert.h .. /usr/include/pthread.h ... /usr/include/pthread_impl.h ... /usr/include/sched.h .. /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/include/omp.h .. /usr/include/sys/types.h ... /usr/include/sys/_structs.h .. /usr/include/sys/stat.h ... /usr/include/sys/_structs.h .. /usr/include/sys/timeb.h .. /usr/include/dirent.h ... /usr/include/sys/dirent.h .. /usr/include/pwd.h .. ./magick/magick-type.h .. /usr/include/sys/time.h ... /usr/include/sys/_structs.h .. /usr/include/sys/times.h . ./magick/attribute.h .. ./magick/image.h ... ./magick/color.h .... ./magick/pixel.h ..... ./magick/colorspace.h ..... ./magick/constitute.h .... ./magick/exception.h ..... ./magick/semaphore.h ... ./magick/blob.h .... ./magick/image.h .... ./magick/stream.h ... ./magick/cache-view.h ... ./magick/composite.h ... ./magick/compress.h ... ./magick/effect.h ... ./magick/geometry.h ... ./magick/layer.h ... ./magick/monitor.h ... ./magick/profile.h .... ./magick/string_.h ... ./magick/quantum.h ... ./magick/resample.h .... ./magick/cache-view.h ... ./magick/resize.h ... ./magick/timer.h . ./magick/blob.h . ./magick/blob-private.h . ./magick/cache.h . ./magick/color-private.h .. ./magick/exception-private.h ... ./magick/log.h . ./magick/enhance.h . ./magick/geometry.h . ./magick/histogram.h . ./magick/image-private.h . ./magick/layer.h . ./magick/list.h . ./magick/log.h . ./magick/magick.h . ./magick/memory_.h . ./magick/module.h .. ./magick/version.h . ./magick/monitor.h . ./magick/monitor-private.h . ./magick/option.h . ./magick/quantum-private.h .. ./magick/cache.h . ./magick/profile.h . ./magick/property.h . ./magick/quantize.h . ./magick/resource_.h . ./magick/semaphore.h . ./magick/static.h . ./magick/statistic.h . ./magick/string_.h . ./magick/string-private.h . ./magick/transform.h . ./magick/utility.h . /sw/include/png.h .. /usr/include/zlib.h ... /usr/include/zconf.h .. /sw/include/pngconf.h ... /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/include/limits.h .... /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/include/syslimits.h ... /usr/include/setjmp.h .... /usr/include/machine/setjmp.h ..... /usr/include/ppc/setjmp.h ...... /usr/include/ppc/_structs.h . /usr/include/zlib.h coders/png.c: In function 'ReadOnePNGImage': coders/png.c:1877: warning: format '%lu' expects type 'long unsigned int', but argument 6 has type 'png_uint_32' coders/png.c:1877: warning: format '%lu' expects type 'long unsigned int', but argument 7 has type 'png_uint_32' coders/png.c:2021: warning: format '%lu' expects type 'long unsigned int', but argument 6 has type 'png_uint_32' coders/png.c:2021: warning: format '%lu' expects type 'long unsigned int', but argument 7 has type 'png_uint_32' coders/png.c: In function 'ReadOneJNGImage': coders/png.c:3200: warning: format '%16lu' expects type 'long unsigned int', but argument 6 has type 'png_uint_32' coders/png.c:3202: warning: format '%16lu' expects type 'long unsigned int', but argument 6 has type 'png_uint_32' coders/png.c: In function 'png_write_raw_profile': coders/png.c:6168: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'png_uint_32' coders/png.c:6189: warning: format '%8lu' expects type 'long unsigned int', but argument 4 has type 'png_uint_32' coders/png.c: In function 'WriteOnePNGImage': coders/png.c:6404: warning: format '%lu' expects type 'long unsigned int', but argument 6 has type 'png_uint_32' coders/png.c:6406: warning: format '%lu' expects type 'long unsigned int', but argument 6 has type 'png_uint_32' coders/png.c:7660: warning: format '%lu' expects type 'long unsigned int', but argument 6 has type 'png_uint_32' coders/png.c:7662: warning: format '%lu' expects type 'long unsigned int', but argument 6 has type 'png_uint_32' coders/png.c: In function 'WriteMNGImage': coders/png.c:9143: warning: format '%lu' expects type 'long unsigned int', but argument 6 has type 'unsigned int' coders/png.c:9146: warning: format '%lu' expects type 'long unsigned int', but argument 6 has type 'unsigned int' /usr/libexec/gcc/powerpc-apple-darwin9/4.2.1/as -arch ppc -o png.o / var/tmp//ccEprfQ0.s CCLD coders/png.la libtool: link: warning: `/usr/X11R6/lib/libXext.la' seems to be moved libtool: link: warning: `/usr/X11R6/lib/libSM.la' seems to be moved libtool: link: warning: `/usr/X11R6/lib/libICE.la' seems to be moved libtool: link: warning: `/usr/X11R6/lib/libX11.la' seems to be moved libtool: link: warning: `/usr/X11R6/lib/libXt.la' seems to be moved /usr/lib/bundle1.o coders/.libs/coders_png_la-png.o magick/.libs/libMagickCore.dylib /sw/lib/liblcms.dylib /sw/lib/libtiff.dylib /sw/lib/freetype219/lib/libfreetype.dylib /sw/lib/fontconfig2/lib/libfontconfig.dylib /usr/X11/lib/libXext.dylib /usr/X11/lib/libXt.dylib /usr/X11/lib/libSM.dylib /usr/X11/lib/libICE.dylib /usr/X11/lib/libX11.dylib /usr/X11/lib/libxcb.dylib /usr/X11/lib/libXau.dylib /usr/X11/lib/libXdmcp.dylib /sw/lib/libbz2.dylib /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/libgomp.a /usr/lib/libpthread.dylib /sw/lib/libltdl.dylib /sw/lib/libpng14.dylib /sw/lib/libjpeg.dylib /usr/lib/libz.dylib /usr/lib/libm.dylib /usr/lib/libgcc_s.10.5.dylib /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/libgcc.a /usr/lib/libSystemStubs.a /usr/lib/libSystem.dylib /usr/lib/system/libmathCommon.A.dylib warning: no debug symbols in executable (-arch ppc7400) Here libpng, presumingly partially, gets linked into /sw/src/ fink.build/imagemagick-6.5.8.10-2/ImageMagick-6.5.8-10/coders/.libs/ png.so. These SO files are presumingly linked into libMagickCore. Could be this indirection hides libpng. Despite this convert and display can handle PNG formats accordingly. > > Maybe related to the issue, I could not update > the version of the imagemagick when I tried, > because error occurred while linking to libpng. Which version of libpng is active? I presume ImageMagick uses libpng v. 1.4.x... The config.log file should tell you why the found libpng installation does not suffice. -- Greetings Pete There's something the technicians need to learn from the artists. If it isn't aesthetically pleasing, it's probably wrong. |