pkg/33325:ImageMagick broken with new PNG

 

Parent Message unknown pkg/33325: graphics/ImageMagick broken with new PNG

Click to flag this post

<script type="text/javascript"> </script>

by <script type="text/javascript"> </script> b1ff <script type="text/javascript"> </script> <script type="text/javascript"> </script> Apr 21, 2006; 09:20pm :: Rate this Message: - Use ratings to moderate (?)

<script type="text/javascript"> </script> Reply | Reply to Author <script type="text/javascript"> </script> | Print | View Threaded | Show Only this Message

>Number:         33325
>Category:       pkg
>Synopsis:       graphics/ImageMagick broken with new PNG
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 21 12:20:00 +0000 2006
>Originator:     Mathieu
>Release:        3.0.0_STABLE
>Organization:
>Environment:

NetBSD sal.lan 3.0.0_STABLE NetBSD 3.0.0_STABLE (SPECIFIC) #0: Sat Apr  8 22:19:10 EDT 2006  mathieu@...:/usr/src/sys/arch/i386/compile/SPECIFIC i386
>Description:
if /bin/sh ./libtool --silent --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I./magick -I./wand  -I./ltdl -I./ltdl  -I/usr/pkg/include/freetype2 -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/gcc34/include -I/usr/pkg/xorg/include -I/usr/pkg/include/libxml2  -O2 -march=pentium4 -pipe -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/gcc34/include -Wall -MT coders/magick_libMagick_la-png.lo -MD -MP -MF "coders/.deps/magick_libMagick_la-png.Tpo" -c -o coders/magick_libMagick_la-png.lo `test -f 'coders/png.c' || echo './'`coders/png.c; /
        then mv -f "coders/.deps/magick_libMagick_la-png.Tpo" "coders/.deps/magick_libMagick_la-png.Plo"; else rm -f "coders/.deps/magick_libMagick_la-png.Tpo"; exit 1; fi
coders/png.c: In function `ReadOnePNGImage':
coders/png.c:1758: warning: implicit declaration of function `png_access_version'
coders/png.c:1767: error: `png_ptr' undeclared (first use in this function)
coders/png.c:1767: error: (Each undeclared identifier is reported only once
coders/png.c:1767: error: for each function it appears in.)
gmake: *** [coders/magick_libMagick_la-png.lo] Error 1
*** Error code 2

>How-To-Repeat:
Happens when PNG is built with its PNGGCCRD optimization.

>Fix:
--- coders/png.c.orig   2006-03-24 14:45:40.000000000 -0500
+++ coders/png.c        2006-04-21 07:54:59.000000000 -0400
@@ -1755,7 +1755,7 @@
 #if defined(PNG_USE_PNGGCCRD) && defined(PNG_ASSEMBLER_CODE_SUPPORTED) /
 && (PNG_LIBPNG_VER >= 10200)
   /* Disable thread-unsafe features of pnggccrd */
-  if (png_access_version() >= 10200)
+  if (png_access_version_number() >= 10200)

   {
     png_uint_32 mmx_disable_mask=0;
     png_uint_32 asm_flags;
@@ -1764,8 +1764,8 @@
                         | PNG_ASM_FLAG_MMX_READ_FILTER_SUB   /
                         | PNG_ASM_FLAG_MMX_READ_FILTER_AVG   /
                         | PNG_ASM_FLAG_MMX_READ_FILTER_PAETH );
-    asm_flags=png_get_asm_flags(png_ptr);
-    png_set_asm_flags(png_ptr, asm_flags & ~mmx_disable_mask);
+    asm_flags=png_get_asm_flags(ping);
+    png_set_asm_flags(ping, asm_flags & ~mmx_disable_mask);

   }
 #endif

That chunk of code was taken literally from libpng(3), which also
contains the bogus call to png_access_version().

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值