From: <da...@ch...> - 2016-07-26 18:12:37
|
configure isn't included, the README doesn't mention autogen.sh, and it doesn't work. I tried copying these files into the pslib directory (which seems weird to need to do): /usr/share/automake-1.15/missing /usr/share/misc/config.sub /usr/share/misc/config.guess /usr/share/libtool/build-aux/install-sh /usr/share/automake-1.15/mkinstalldirs Which got some errors to stop, and autogen.sh runs successfully. That doesn't create a Makefile. So I ran ./configure, which runs successfully. make still fails: $ make make all-recursive make[1]: Entering directory '/home/darxus/source/pslib/pslib' Making all in data make[2]: Entering directory '/home/darxus/source/pslib/pslib/data' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/darxus/source/pslib/pslib/data' Making all in include make[2]: Entering directory '/home/darxus/source/pslib/pslib/include' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/darxus/source/pslib/pslib/include' Making all in src make[2]: Entering directory '/home/darxus/source/pslib/pslib/src' /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I./../include -I./include -I/usr/include -I/usr/include -I/usr/include -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_DATA_DIR=\""/usr/local/share/pslib"\" -g -O2 -MT pslib.lo -MD -MP -MF .deps/pslib.Tpo -c -o pslib.lo pslib.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I./../include -I./include -I/usr/include -I/usr/include -I/usr/include -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\" -DPACKAGE_DATA_DIR=\"/usr/local/share/pslib\" -g -O2 -MT pslib.lo -MD -MP -MF .deps/pslib.Tpo -c pslib.c -fPIC -DPIC -o .libs/pslib.o pslib.c: In function ‘PS_open_image_file’: pslib.c:4909:14: error: too few arguments to function ‘DGifOpenFileName’ if ((gft = DGifOpenFileName(filename)) == NULL) { ^ In file included from pslib.c:62:0: /usr/include/gif_lib.h:179:14: note: declared here GifFileType *DGifOpenFileName(const char *GifFileName, int *Error); ^ pslib.c:4915:76: warning: implicit declaration of function ‘GifLastError’ [-Wimplicit-function-declaration] ps_error(psdoc, PS_RuntimeError, _("Error %d while reading gif file!"), GifLastError()); ^ pslib.c:4942:4: error: too few arguments to function ‘DGifCloseFile’ DGifCloseFile(gft); ^ In file included from pslib.c:62:0: /usr/include/gif_lib.h:183:9: note: declared here int DGifCloseFile(GifFileType * GifFile, int *ErrorCode); ^ pslib.c:4967:4: error: too few arguments to function ‘DGifCloseFile’ DGifCloseFile(gft); ^ In file included from pslib.c:62:0: /usr/include/gif_lib.h:183:9: note: declared here int DGifCloseFile(GifFileType * GifFile, int *ErrorCode); ^ pslib.c:5001:3: error: too few arguments to function ‘DGifCloseFile’ DGifCloseFile(gft); ^ In file included from pslib.c:62:0: /usr/include/gif_lib.h:183:9: note: declared here int DGifCloseFile(GifFileType * GifFile, int *ErrorCode); ^ pslib.c:5149:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(psimage->data, statbuf.st_size, 1, fp); ^ pslib.c: In function ‘PS_include_file’: pslib.c:6778:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(bb, fsize, 1, fp); ^ Makefile:533: recipe for target 'pslib.lo' failed make[2]: *** [pslib.lo] Error 1 make[2]: Leaving directory '/home/darxus/source/pslib/pslib/src' Makefile:515: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/darxus/source/pslib/pslib' Makefile:420: recipe for target 'all' failed make: *** [all] Error 2 |