Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 422718 Details for
Bug 486248
app-office/magicpoint-1.13a USE=gif - ./image/libmgpimage.a(gif.o): In function `gifLoad': gif.c:(.text+0x3f1): undefined reference to `PrintGifError'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
magicpoint-1.13a_p20121015-any-giflib.patch
magicpoint-1.13a_p20121015-any-giflib.patch (text/plain), 3.50 KB, created by
Peter Stuge
on 2016-01-12 17:23:14 UTC
(
hide
)
Description:
magicpoint-1.13a_p20121015-any-giflib.patch
Filename:
MIME Type:
Creator:
Peter Stuge
Created:
2016-01-12 17:23:14 UTC
Size:
3.50 KB
patch
obsolete
>--- kit.orig/image/gif.c 2000-03-07 07:59:56.000000000 +0100 >+++ kit/image/gif.c 2016-01-12 17:35:49.792443794 +0100 >@@ -18,6 +18,18 @@ > #include "image.h" > #include <gif_lib.h> > >+static void stderrGifError(GifFileType *gifp, int e) { >+#if defined(GIFLIB_MAJOR) /* added in 4.2.0 along with GifError{,String}() */ >+# if GIFLIB_MAJOR >= 5 >+ fprintf(stderr, "\nGIF-LIB error: %s.\n", GifErrorString(gifp ? gifp->Error : e)); >+# else >+ fprintf(stderr, "\nGIF-LIB error: %s.\n", GifErrorString()); >+# endif >+#else >+ PrintGifError(); >+#endif >+} >+ > static void > tellAboutImage(name, gifp) > char *name; >@@ -49,10 +61,17 @@ > GifFileType *GifFile; > ColorMapObject *ColorMap; > GifColorType *ColorMapEntry; >+ int gerr = 0; > >+#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5 >+ GifFile = DGifOpenFileName(fullname, &gerr); >+#else > GifFile = DGifOpenFileName(fullname); >- if (GifFile == NULL) >+#endif >+ if (GifFile == NULL) { >+ stderrGifError(GifFile, gerr); > return NULL; >+ } > > if ((ScreenBuffer = (GifRowType *) > malloc(GifFile->SHeight * sizeof(GifRowType *))) == NULL) { >@@ -87,13 +106,13 @@ > /* Scan the content of the GIF file and load the image(s) in: */ > do { > if (DGifGetRecordType(GifFile, &RecordType) == GIF_ERROR) { >- PrintGifError(); >+ stderrGifError(GifFile, 0); > exit(-1); > } > switch (RecordType) { > case IMAGE_DESC_RECORD_TYPE: > if (DGifGetImageDesc(GifFile) == GIF_ERROR) { >- PrintGifError(); >+ stderrGifError(GifFile, 0); > exit(-1); > } > Row = GifFile->Image.Top; /* Image Position relative to Screen. */ >@@ -113,7 +132,7 @@ > j += InterlacedJumps[i]) { > if (DGifGetLine(GifFile, &ScreenBuffer[j][Col], > Width) == GIF_ERROR) { >- PrintGifError(); >+ stderrGifError(GifFile, 0); > exit(-1); > } > } >@@ -122,7 +141,7 @@ > for (i = 0; i < Height; i++) { > if (DGifGetLine(GifFile, &ScreenBuffer[Row++][Col], > Width) == GIF_ERROR) { >- PrintGifError(); >+ stderrGifError(GifFile, 0); > exit(-1); > } > } >@@ -131,7 +150,7 @@ > case EXTENSION_RECORD_TYPE: > /* Skip any extension blocks in file: */ > if (DGifGetExtension(GifFile, &ExtCode, &Extension) == GIF_ERROR) { >- PrintGifError(); >+ stderrGifError(GifFile, 0); > exit(-1); > } > /* very adhoc transparency support */ >@@ -141,7 +160,7 @@ > } > while (Extension != NULL) { > if (DGifGetExtensionNext(GifFile, &Extension) == GIF_ERROR) { >- PrintGifError(); >+ stderrGifError(GifFile, 0); > exit(-1); > } > } >@@ -179,8 +198,21 @@ > pixline[x] = GifRow[x]; > } > >+#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1)) >+ if (DGifCloseFile(GifFile, &gerr) == GIF_ERROR) { >+ stderrGifError(NULL, gerr); >+#else > if (DGifCloseFile(GifFile) == GIF_ERROR) { >- PrintGifError(); >+# if defined(GIFLIB_MAJOR) >+# if GIFLIB_MAJOR >= 5 >+ stderrGifError(GifFile, 0); >+# else >+ stderrGifError(NULL, GifError()); >+# endif >+# else >+ stderrGifError(NULL, 0); >+# endif >+#endif > exit(-1); > } > >@@ -195,12 +227,22 @@ > { > GifFileType *gifp; > int ret; >+ int gerr = 0; > >+#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5 >+ gifp = DGifOpenFileName(fullname, &gerr); >+#else > gifp = DGifOpenFileName(fullname); >- if (gifp == NULL) >+#endif >+ if (gifp == NULL) { >+ stderrGifError(gifp, gerr); > ret = 0; >- else { >+ } else { >+#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1)) >+ DGifCloseFile(gifp, &gerr); >+#else > DGifCloseFile(gifp); >+#endif > tellAboutImage(name); > ret = 1; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 486248
:
364928
|
422606
|
422608
|
422710
|
422712
|
422714
| 422718 |
422720
|
422722
|
422726
|
422728
|
422748
|
422750