Issue solved. In case anyone using arch linux runs into the same issue, you 
can drop the attached patch into the build/pkgs/libgd/patches/ directory.

The problem seems to be with the libvpx library (which was recently 
updated). For more details see:

https://bugs.gentoo.org/show_bug.cgi?id=547310#c8

Fidel

On Wednesday, April 29, 2015 at 11:39:44 PM UTC-4, fidelbc wrote:
>
> Hello,
>
> Just trying to build sage on arch linux:
>
> [fidbc@avalancha ~]$ uname -a
> Linux avalancha 3.19.3-3-ARCH #1 SMP PREEMPT Wed Apr 8 14:10:00 CEST 2015 
> x86_64 GNU/Linux
>
> There seems to be an error while building libgd. A couple of possibly 
> related errors were reported on sage-release:
>
> https://groups.google.com/d/topic/sage-release/flXnvNmWN0c/discussion
>
> I haven't been able to build sage successfully though. When updating I 
> usually just move my current sage root directory to sage_old, and then I 
> just clone from the github repo. Could this have anything to do?
>
> I have tried make distclean and also cloning the github repo all over 
> without success. I have the exact same issue with another computer (same 
> OS).
>
> Please let me know if there is any other info I should provide.
>
> Thanks,
> Fidel
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.
There seems to be an issue with the updated libvpx.
For details see:
* https://bugs.gentoo.org/show_bug.cgi?id=547310
diff -druN libgd-2.1.0.old/src/webpimg.c libgd-2.1.0.new/src/webpimg.c
--- libgd-2.1.0.old/src/webpimg.c	2013-06-25 05:58:23.000000000 -0400
+++ libgd-2.1.0.new/src/webpimg.c	2015-05-01 12:57:42.242995938 -0400
@@ -711,14 +711,14 @@
     codec_ctl(&enc, VP8E_SET_STATIC_THRESHOLD, 0);
     codec_ctl(&enc, VP8E_SET_TOKEN_PARTITIONS, 2);
 
-    vpx_img_wrap(&img, IMG_FMT_I420,
+    vpx_img_wrap(&img, VPX_IMG_FMT_I420,
                  y_width, y_height, 16, (uint8*)(Y));
-    img.planes[PLANE_Y] = (uint8*)(Y);
-    img.planes[PLANE_U] = (uint8*)(U);
-    img.planes[PLANE_V] = (uint8*)(V);
-    img.stride[PLANE_Y] = y_stride;
-    img.stride[PLANE_U] = uv_stride;
-    img.stride[PLANE_V] = uv_stride;
+    img.planes[VPX_PLANE_Y] = (uint8*)(Y);
+    img.planes[VPX_PLANE_U] = (uint8*)(U);
+    img.planes[VPX_PLANE_V] = (uint8*)(V);
+    img.stride[VPX_PLANE_Y] = y_stride;
+    img.stride[VPX_PLANE_U] = uv_stride;
+    img.stride[VPX_PLANE_V] = uv_stride;
 
     res = vpx_codec_encode(&enc, &img, 0, 1, 0, VPX_DL_BEST_QUALITY);
 

Reply via email to