On Aug 5, 2006, at 12:51 PM, Martin Costabel wrote:

> Toda H.Y. wrote:
> []
>> coders/png.c: In function 'ReadOnePNGImage':
>> coders/png.c:1704: warning: implicit declaration of
>> function 'png_access_version'
>> coders/png.c:1713: error: 'png_ptr' undeclared (first use
>> in this function)
>
> I got it to build on intel by introducing the following lines into  
> the imagemagick.info file, just before the "make" command in the  
> CompileScript:
>
>  if [ "%m" == "i386" ]; then
>    make coders/magick_libMagick_la-png.lo DEFS=-DPNG_NO_ASSEMBLER_CODE
>  fi
>
> I am not sure if the "if" clause is necessary. On ppc it builds  
> without this trick, so it is not necessary there, but it won't hurt  
> either, and as far as I understand the situation with the new  
> libpng3, that flag is also used on ppc now, i.e. assembler is  
> disabled everywhere, so this workaround seems logical. One could  
> even rune the whole "make" with this flag, i.e. instead of the  
> above lines plus the "make" command:
>
>  make DEFS="-DHAVE_CONFIG_H -DPNG_NO_ASSEMBLER_CODE"
>
> I suspect other packages building against the new libpng3 might  
> have to do something similar.
>
> -

Martin,

Actually, its a bug in imagemagick that has been fixed in more recent  
upstream versions.  Updating imagemagick wholesale to a newer version  
will be tricky since the major library version changed; however, I've  
just committed a new version with a patch for the current problem  
backported.  So a selfupdate should now fix the problem.

As far as I know, the png assembler code actually does work on intel.

   -- Dave



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to