gifclrmp.c:41:21: gif_lib.h: No such file...

burek
2007-06-05
2012-10-16
  • burek
    burek
    2007-06-05

    Hi,

    While trying to do 'make', everything works fine (including the following lines):

    if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../lib -g -O2 -Wall -g -O2 -MT
    gifinfo.o -MD -MP -MF ".deps/gifinfo.Tpo" -c -o gifinfo.o gifinfo.c; \ then mv -f ".deps/gifinfo.Tpo" ".deps/gifinfo.Po"; else rm -f ".deps/gif
    info.Tpo"; exit 1; fi
    /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -g -O2 -o gifinfo.ex
    e gifinfo.o ../lib/libungif.la ../lib/libgetarg.a
    gcc -g -O2 -Wall -g -O2 -o gifinfo.exe gifinfo.o ../lib/.libs/libungif.a ../lib
    /libgetarg.a

    but out of blue, I get this message(s):

    gcc -g -O2 gifclrmp.c -o gifclrmp
    gifclrmp.c:41:21: gif_lib.h: No such file or directory
    gifclrmp.c:42:20: getarg.h: No such file or directory
    gifclrmp.c:61: error: parse error before "GIF_LIB_VERSION"
    gifclrmp.c:72: error: `FALSE' undeclared here (not in a function)
    gifclrmp.c:82: error: parse error before "Translation"
    gifclrmp.c:82: warning: data definition has no type or storage class
    gifclrmp.c:84: error: parse error before '*' token

    etc...

    I've figured out that -I directive is not present while calling gcc, because other files compiled without a problem and files gif_lib.h and getarg.h exist in "../lib", but I don't want to mess around with the makefile...

    I'm trying to install libungif on cygwin 1.5.24-2 (the latest v.), and I've previously executed './configure' (I can send you config.status) but it seems to me everything went ok with it.

    Can you help, please?
    Thanks in advance.

     
    • Keonny Kim
      Keonny Kim
      2007-07-12

      I got a same error message when i compile....

      if you edit Makefile, the error above will be disappeared.


      libungif-4.1.4\util\Makefile(original)

      50:line
      gifinfo$(EXEEXT) gifclrmp gifrotat



      libungif-4.1.4\util\Makefile(fix)

      50:line
      gifinfo$(EXEEXT) gifclrmp$(EXEEXT) gifrotat$(EXEEXT)