Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Jun 2012 14:24:37 -0400
From:      Jim Pingle <jim@pingle.org>
To:        gnome@FreeBSD.org
Subject:   imlib vs. giflib update
Message-ID:  <4FCCFD65.4020909@pingle.org>

next in thread | raw e-mail | index | archive | help
The imlib port (/usr/ports/graphics/imlib) is still using source that
references PrintGifError() which doesn't exist in the new giflib, so
some programs are failing to link with a recent imlib.

Patching these four references to that old function to use GifError()
instead seems to make it happy for me, the same fix was done in some KDE
source after the giflib migration.

--- ./Imlib/load.c.orig 2012-06-04 13:35:37.000000000 -0400
+++ ./Imlib/load.c      2012-06-04 13:36:00.000000000 -0400
@@ -451,14 +451,14 @@
     {
       if (DGifGetRecordType(gif, &rec) == GIF_ERROR)
        {
-         PrintGifError();
+         GifError();
          rec = TERMINATE_RECORD_TYPE;
        }
       if ((rec == IMAGE_DESC_RECORD_TYPE) && (!done))
        {
          if (DGifGetImageDesc(gif) == GIF_ERROR)
            {
-             PrintGifError();
+             GifError();
              rec = TERMINATE_RECORD_TYPE;
            }
          *w = gif->Image.Width;
--- ./gdk_imlib/io-gif.c.orig   2012-06-04 13:36:12.000000000 -0400
+++ ./gdk_imlib/io-gif.c        2012-06-04 13:36:25.000000000 -0400
@@ -43,14 +43,14 @@
     {
       if (DGifGetRecordType(gif, &rec) == GIF_ERROR)
        {
-         PrintGifError();
+         GifError();
          rec = TERMINATE_RECORD_TYPE;
        }
       if ((rec == IMAGE_DESC_RECORD_TYPE) && (!done))
        {
          if (DGifGetImageDesc(gif) == GIF_ERROR)
            {
-             PrintGifError();
+             GifError();
              rec = TERMINATE_RECORD_TYPE;
            }
          *w = gif->Image.Width;

-- 
Jim



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FCCFD65.4020909>