I downloaded giflib-3.1pre1.tar.gz and giflib-3.1-pre1.patch from the
XEmacs ftp site - are these the right versions? I haven't been able
to get these to build - I get a raft of errors (see below). It builds
a library anyway, but it does not work - XEmacs doesn't like it,
detection of libgif fails. Here's an excerpt from config.log:
configure:6658: checking for GetGifError in -lgif
configure:6674: gcc -o conftest -g -O2 -Wall -Wno-switch -I/usr/X11/includ
e -L/usr/X11R6/lib conftest.c -lgif -lz -lXpm -lXmu -lXt -lXext -lX11
-lSM -lICE -lm -lgcc -lc -lgcc /usr/lib/crtn.o 1>&5
/usr/local/lib/libgif.so: undefined reference to `_GifError'
/usr/local/lib/libgif.so: undefined reference to `GIF_MESSAGE'
/usr/local/lib/libgif.so: undefined reference to `GifLastError'
And here are the build errors from libgif:
cd lib; make static shared
make[1]: Entering directory `/udma/cgw/XEmacs/giflib-3.1pre1/lib'
gcc -I. -I/usr/X11/include -D__X11__ -fno-builtin -g -c -W -Wreturn-type -Wcomment -Wall
dev2gif.c
dev2gif.c: In function `DumpScreen2Gif':
dev2gif.c:266: warning: implicit declaration of function `malloc'
dev2gif.c:274: warning: implicit declaration of function `XGetPixel'
dev2gif.c:314: warning: implicit declaration of function `XDestroyImage'
dev2gif.c:330: warning: implicit declaration of function `free'
dev2gif.c:132: warning: unused variable `RGBBuffer'
dev2gif.c: In function `GetScanLine':
dev2gif.c:478: warning: implicit declaration of function `memcpy'
dev2gif.c:406: warning: unused variable `Bit'
dev2gif.c:406: warning: unused variable `BufferOffset'
dev2gif.c:405: warning: unused variable `k'
dev2gif.c:405: warning: unused variable `j'
dev2gif.c:405: warning: unused variable `i'
dev2gif.c:404: warning: unused variable `ScreenByte'
dev2gif.c:402: warning: unused parameter `Y'
dev2gif.c: In function `HandleGifError':
dev2gif.c:492: warning: implicit declaration of function `GifLastError'
dev2gif.c: At top level:
dev2gif.c:42: warning: `ScreenBase' defined but not used
dev2gif.c:49: warning: `VersionStr' defined but not used
gcc -I. -I/usr/X11/include -D__X11__ -fno-builtin -g -c -W -Wreturn-type -Wcomment -Wall
egif_lib.c
egif_lib.c: In function `EGifPutCode':
egif_lib.c:400: warning: unused parameter `CodeSize'
egif_lib.c: At top level:
egif_lib.c:49: warning: `VersionStr' defined but not used
gcc -I. -I/usr/X11/include -D__X11__ -fno-builtin -g -c -W -Wreturn-type -Wcomment -Wall
dgif_lib.c
dgif_lib.c: In function `DGifGetImageDesc':
dgif_lib.c:257: warning: implicit declaration of function `memcpy'
dgif_lib.c: At top level:
dgif_lib.c:40: warning: `VersionStr' defined but not used
gcc -I. -I/usr/X11/include -D__X11__ -fno-builtin -g -c -W -Wreturn-type -Wcomment -Wall
gifalloc.c
gifalloc.c: In function `BitSize':
gifalloc.c:24: warning: type defaults to `int' in declaration of `i'
gifalloc.c: In function `MakeMapObject':
gifalloc.c:48: warning: implicit declaration of function `malloc'
gifalloc.c:52: warning: implicit declaration of function `calloc'
gifalloc.c:60: warning: implicit declaration of function `memcpy'
gifalloc.c: In function `FreeMapObject':
gifalloc.c:71: warning: implicit declaration of function `free'
gifalloc.c: In function `UnionColorMap':
gifalloc.c:142: warning: implicit declaration of function `memcmp'
gifalloc.c:179: warning: implicit declaration of function `realloc'
gifalloc.c: In function `ApplyTranslation':
gifalloc.c:197: warning: subscript has type `char'
gifalloc.c: In function `AddExtensionBlock':
gifalloc.c:214: warning: unused variable `ep'
gifalloc.c: In function `MakeSavedImage':
gifalloc.c:262: warning: implicit declaration of function `memset'
gcc -I. -I/usr/X11/include -D__X11__ -fno-builtin -g -c -W -Wreturn-type -Wcomment -Wall
gif_font.c
gif_font.c: In function `DrawText':
gif_font.c:171: warning: array subscript has type `char'
gif_font.c: In function `DrawBoxedText':
gif_font.c:255: warning: suggest parentheses around assignment used as truth value
gcc -I. -I/usr/X11/include -D__X11__ -fno-builtin -g -c -W -Wreturn-type -Wcomment -Wall
gif_hash.c
gif_hash.c: In function `_InitHashTable':
gif_hash.c:66: warning: implicit declaration of function `malloc'
gif_hash.c: At top level:
gif_hash.c:48: warning: `VersionStr' defined but not used
gcc -I. -I/usr/X11/include -D__X11__ -fno-builtin -g -c -W -Wreturn-type -Wcomment -Wall
gif_err.c
gif_err.c: In function `GifError':
gif_err.c:154: warning: implicit declaration of function `exit'
gif_err.c: At top level:
gif_err.c:24: warning: `VersionStr' defined but not used
gcc -I. -I/usr/X11/include -D__X11__ -fno-builtin -g -c -W -Wreturn-type -Wcomment -Wall
quantize.c
quantize.c: In function `QuantizeBuffer':
quantize.c:106: warning: implicit declaration of function `malloc'
quantize.c:158: warning: implicit declaration of function `free'
quantize.c:187: warning: implicit declaration of function `GIF_MESSAGE'
quantize.c: In function `SubdivColorMap':
quantize.c:266: warning: implicit declaration of function `qsort'
quantize.c: At top level:
quantize.c:48: warning: `VersionStr' defined but not used
gcc -I. -I/usr/X11/include -D__X11__ -fno-builtin -g -c -W -Wreturn-type -Wcomment -Wall
qprintf.c
gcc -I. -I/usr/X11/include -D__X11__ -fno-builtin -g -c -W -Wreturn-type -Wcomment -Wall
getarg.c
getarg.c: In function `GATestAllSatis':
getarg.c:218: warning: implicit declaration of function `malloc'
getarg.c: In function `MyMalloc':
getarg.c:627: warning: implicit declaration of function `exit'
gcc -I. -I/usr/X11/include -D__X11__ -fno-builtin -g -c -W -Wreturn-type -Wcomment -Wall
gif_io.c
rm -f libgif.a
ar rcv libgif.a dev2gif.o egif_lib.o dgif_lib.o gifalloc.o gif_font.o gif_hash.o gif_err.o
quantize.o qprintf.o getarg.o gif_io.o
a - dev2gif.o
a - egif_lib.o
a - dgif_lib.o
a - gifalloc.o
a - gif_font.o
a - gif_hash.o
a - gif_err.o
a - quantize.o
a - qprintf.o
a - getarg.o
a - gif_io.o
ranlib libgif.a
rm -f libgif.so.3.1
gcc -shared -o libgif.so.3.1 dev2gif.o egif_lib.o dgif_lib.o gifalloc.o gif_font.o
gif_hash.o gif_err.o quantize.o qprintf.o getarg.o gif_io.o
make[1]: Leaving directory `/udma/cgw/XEmacs/giflib-3.1pre1/lib'
cd util; make all
make[1]: Entering directory `/udma/cgw/XEmacs/giflib-3.1pre1/util'
gcc -I../lib -fno-builtin -g -W -Wreturn-type -Wcomment gif2epsn.c ../lib/libgif.a -lm -o
gif2epsn
gif2epsn.c: In function `main':
gif2epsn.c:118: warning: return type of `main' is not `int'
gcc -I../lib -fno-builtin -g -W -Wreturn-type -Wcomment gif2ps.c ../lib/libgif.a -lm -o
gif2ps
gif2ps.c: In function `main':
gif2ps.c:102: warning: return type of `main' is not `int'
gcc -I../lib -fno-builtin -g -W -Wreturn-type -Wcomment gif2rgb.c ../lib/libgif.a -lm -o
gif2rgb
gif2rgb.c: In function `main':
gif2rgb.c:82: warning: return type of `main' is not `int'
gcc gif2x11.c -I../lib -fno-builtin -g -W -Wreturn-type -Wcomment -I/usr/X11/include
-L/usr/X11/lib ../lib/libgif.a -lX11 -o gif2x11
gif2x11.c: In function `main':
gif2x11.c:112: warning: return type of `main' is not `int'
gcc -I../lib -fno-builtin -g -W -Wreturn-type -Wcomment gifasm.c ../lib/libgif.a -lm -o
gifasm
gifasm.c: In function `main':
gifasm.c:69: warning: return type of `main' is not `int'
gcc -I../lib -fno-builtin -g -W -Wreturn-type -Wcomment gifbg.c ../lib/libgif.a -lm -o
gifbg
gifbg.c: In function `main':
gifbg.c:104: warning: return type of `main' is not `int'
gcc -I../lib -fno-builtin -g -W -Wreturn-type -Wcomment gifclip.c ../lib/libgif.a -lm -o
gifclip
gifclip.c: In function `main':
gifclip.c:64: warning: return type of `main' is not `int'
gcc -I../lib -fno-builtin -g -W -Wreturn-type -Wcomment gifclrmp.c ../lib/libgif.a -lm -o
gifclrmp
gifclrmp.c: In function `main':
gifclrmp.c:86: warning: return type of `main' is not `int'
gcc -I../lib -fno-builtin -g -W -Wreturn-type -Wcomment gifcomb.c ../lib/libgif.a -lm -o
gifcomb
gifcomb.c: In function `main':
gifcomb.c:67: warning: return type of `main' is not `int'
gifcomb.c: In function `ReadUntilImage':
gifcomb.c:227: warning: `return' with no value, in function returning non-void
gifcomb.c:244: warning: this function may return with or without a value
gcc -I../lib -fno-builtin -g -W -Wreturn-type -Wcomment giffix.c ../lib/libgif.a -lm -o
giffix
giffix.c: In function `main':
giffix.c:99: `GifFile' undeclared (first use this function)
giffix.c:99: (Each undeclared identifier is reported only once
giffix.c:99: for each function it appears in.)
giffix.c:181: void value not ignored as it ought to be
giffix.c:68: warning: return type of `main' is not `int'
make[1]: *** [giffix] Error 1
make[1]: Leaving directory `/udma/cgw/XEmacs/giflib-3.1pre1/util'
make: *** [all] Error 2