1. camlspotter
  2. camlimages
  3. Issues
Issue #10 resolved

Compilation failure with gif_lib >= 5.0.x

drup
created an issue

Both opam and the repo version don't compile.

Here is the error message :

*** omake: reading OMakefiles
*** omake: finished reading OMakefiles (0.06 sec)
- build src gifwrite.o
+ gcc -fPIC -I /home/gabriel/.opam/4.01.0/lib/ocaml -I/usr/include/libpng16 -I/usr/include/freetype2 -I. -c -o gifwrite.o gifwrite.c
gifwrite.c: In function ‘ColorMapObject_val’:
gifwrite.c:54:11: attention : assignment makes pointer from integer without a cast [enabled by default]
   cmapobj = MakeMapObject( len, NULL );
           ^
gifwrite.c: In function ‘eGifOpenFileName’:
gifwrite.c:70:3: erreur: too few arguments to function ‘EGifOpenFileName’
   if ((GifFileOut = EGifOpenFileName( String_val( name ), 0) )== NULL) {
   ^
In file included from gifwrite.c:26:0:
/usr/include/gif_lib.h:126:14: note: declared here
 GifFileType *EGifOpenFileName(const char *GifFileName,
              ^
*** omake: 89/855 targets are up to date
*** omake: failed (0.24 sec, 0/4 scans, 3/4 rules, 2/304 digests)
*** omake: targets were not rebuilt because of errors:
   src/gifwrite.o
      depends on: src/gifwrite.c

Here are the relevant information on my system :

> uname -a
Linux Callisto 3.12.9-1-ARCH #1 SMP PREEMPT Sun Jan 26 09:01:37 CET 2014 x86_64 GNU/Linux

versions : libpng : 1.6.8 libexif : 0.6.21 libtiff : 4.0.3 giflib : 5.0.5 libxpm : 3.5.11 zlib : 1.2.8

Comments (5)

  1. Log in to comment