Compilation fails

Help
2009-01-03
2015-05-21
  • Stefan Washietl

    Stefan Washietl - 2009-01-03

    Hi,

    I was just trying to compile the server module. Configure ran without problems but I encountered the following errors when making (see below)

    I'm using Ubuntu 8.10 AMD64 and gcc 4.3.2

    I have compiled lots of stuff over the past months so I'm pretty sure my system is not missing anything important. It might have to do with the inclusion of <ext/hash_map> in Cache.h. There is a warning that this is deprecated. I tried to naively replace this by <unordered_map> as suggested in backward_warning.h but also this failed. As a C programmer I'm not familiar with all these templating stuff and so I gave up as I apparently don't know what I'm doing.

    Any ideas?

    Thanks,
    Stefan

    Making all in fcgi
    make[1]: Entering directory /home/wash/tmp/light/server/iipsrv-0.9.7/fcgi' Making all in libfcgi make[2]: Entering directory/home/wash/tmp/light/server/iipsrv-0.9.7/fcgi/libfcgi'
    if gcc -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSION=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;iipsrv\&quot; -DVERSION=\&quot;0.9.7\&quot; -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_GLOB_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_MATH_H=1 -DHAVE_LIBM=1 -DHAVE_JPEG=1 -DHAVE_LIBZ=1 -DHAVE_TIFF=1 -DHAVE_STREAMBUF_CHAR_TYPE=1 -DHAVE_LIBNSL=1 -DHAVE_FPOS=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FILENO_PROTO=1 -DHAVE_STRERROR=1 -I. -I. -I. -I../../fcgi/include -I../../fcgi -pthread -g -O2 -Wall -MT libfcgi_a-fcgiapp.o -MD -MP -MF ".deps/libfcgi_a-fcgiapp.Tpo" \ -c -o libfcgi_a-fcgiapp.o test -f 'fcgiapp.c' || echo './'fcgiapp.c; \ then mv -f ".deps/libfcgi_a-fcgiapp.Tpo" ".deps/libfcgi_a-fcgiapp.Po"; \ else rm -f ".deps/libfcgi_a-fcgiapp.Tpo"; exit 1; \ fi
    In file included from fcgiapp.c:28:
    ../../fcgi/fcgi_config.h:89:1: warning: "PACKAGE" redefined
    <command-line>: warning: this is the location of the previous definition
    ../../fcgi/fcgi_config.h:117:1: warning: "VERSION" redefined
    <command-line>: warning: this is the location of the previous definition
    if gcc -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSION=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;iipsrv\&quot; -DVERSION=\&quot;0.9.7\&quot; -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_GLOB_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_MATH_H=1 -DHAVE_LIBM=1 -DHAVE_JPEG=1 -DHAVE_LIBZ=1 -DHAVE_TIFF=1 -DHAVE_STREAMBUF_CHAR_TYPE=1 -DHAVE_LIBNSL=1 -DHAVE_FPOS=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FILENO_PROTO=1 -DHAVE_STRERROR=1 -I. -I. -I. -I../../fcgi/include -I../../fcgi -pthread -g -O2 -Wall -MT libfcgi_a-fcgi_stdio.o -MD -MP -MF ".deps/libfcgi_a-fcgi_stdio.Tpo" \ -c -o libfcgi_a-fcgi_stdio.o test -f 'fcgi_stdio.c' || echo './'fcgi_stdio.c; \ then mv -f ".deps/libfcgi_a-fcgi_stdio.Tpo" ".deps/libfcgi_a-fcgi_stdio.Po"; \ else rm -f ".deps/libfcgi_a-fcgi_stdio.Tpo"; exit 1; \ fi
    In file included from fcgi_stdio.c:23:
    ../../fcgi/fcgi_config.h:89:1: warning: "PACKAGE" redefined
    <command-line>: warning: this is the location of the previous definition
    ../../fcgi/fcgi_config.h:117:1: warning: "VERSION" redefined
    <command-line>: warning: this is the location of the previous definition
    if gcc -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSION=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;iipsrv\&quot; -DVERSION=\&quot;0.9.7\&quot; -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_GLOB_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_MATH_H=1 -DHAVE_LIBM=1 -DHAVE_JPEG=1 -DHAVE_LIBZ=1 -DHAVE_TIFF=1 -DHAVE_STREAMBUF_CHAR_TYPE=1 -DHAVE_LIBNSL=1 -DHAVE_FPOS=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FILENO_PROTO=1 -DHAVE_STRERROR=1 -I. -I. -I. -I../../fcgi/include -I../../fcgi -pthread -g -O2 -Wall -MT libfcgi_a-os_unix.o -MD -MP -MF ".deps/libfcgi_a-os_unix.Tpo" \ -c -o libfcgi_a-os_unix.o test -f 'os_unix.c' || echo './'os_unix.c; \ then mv -f ".deps/libfcgi_a-os_unix.Tpo" ".deps/libfcgi_a-os_unix.Po"; \ else rm -f ".deps/libfcgi_a-os_unix.Tpo"; exit 1; \ fi
    In file included from os_unix.c:23:
    ../../fcgi/fcgi_config.h:89:1: warning: "PACKAGE" redefined
    <command-line>: warning: this is the location of the previous definition
    ../../fcgi/fcgi_config.h:117:1: warning: "VERSION" redefined
    <command-line>: warning: this is the location of the previous definition
    os_unix.c: In function ‘OS_Accept’:
    os_unix.c:1166: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness
    os_unix.c: In function ‘OS_IsFcgi’:
    os_unix.c:1266: warning: pointer targets in passing argument 3 of ‘getpeername’ differ in signedness
    rm -f libfcgi.a
    ar cru libfcgi.a libfcgi_a-fcgiapp.o libfcgi_a-fcgi_stdio.o libfcgi_a-os_unix.o
    ranlib libfcgi.a
    make[2]: Leaving directory /home/wash/tmp/light/server/iipsrv-0.9.7/fcgi/libfcgi' Making all in include make[2]: Entering directory/home/wash/tmp/light/server/iipsrv-0.9.7/fcgi/include'
    make[2]: Nothing to be done for all'. make[2]: Leaving directory/home/wash/tmp/light/server/iipsrv-0.9.7/fcgi/include'
    make[2]: Entering directory /home/wash/tmp/light/server/iipsrv-0.9.7/fcgi' make[2]: Nothing to be done forall-am'.
    make[2]: Leaving directory /home/wash/tmp/light/server/iipsrv-0.9.7/fcgi' make[1]: Leaving directory/home/wash/tmp/light/server/iipsrv-0.9.7/fcgi'
    Making all in src
    make[1]: Entering directory /home/wash/tmp/light/server/iipsrv-0.9.7/src' if g++ -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSION=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;iipsrv\&quot; -DVERSION=\&quot;0.9.7\&quot; -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_GLOB_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_MATH_H=1 -DHAVE_LIBM=1 -DHAVE_JPEG=1 -DHAVE_LIBZ=1 -DHAVE_TIFF=1 -DHAVE_STREAMBUF_CHAR_TYPE=1 -DHAVE_LIBNSL=1 -DHAVE_FPOS=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FILENO_PROTO=1 -DHAVE_STRERROR=1 -I. -I. -I. -I../fcgi/include -I../fcgi -g -O2 -MT Main.o -MD -MP -MF &quot;.deps/Main.Tpo&quot; \ -c -o Main.otest -f 'Main.cc' || echo './'Main.cc; \ then mv -f &quot;.deps/Main.Tpo&quot; &quot;.deps/Main.Po&quot;; \ else rm -f &quot;.deps/Main.Tpo&quot;; exit 1; \ fi In file included from /usr/include/c++/4.3/ext/hash_map:64, from Cache.h:36, from TileManager.h:34, from Main.cc:43: /usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. In file included from IIPImage.h:33, from TPTImage.h:27, from Main.cc:37: RawTile.h: In destructor ‘RawTile::~RawTile()’: RawTile.h:113: error: ‘free’ was not declared in this scope RawTile.h: In copy constructor ‘RawTile::RawTile(const RawTile&amp;)’: RawTile.h:133: error: ‘malloc’ was not declared in this scope RawTile.h: In member function ‘RawTile&amp; RawTile::operator=(const RawTile&amp;)’: RawTile.h:158: error: ‘malloc’ was not declared in this scope In file included from Task.h:35, from Main.cc:44: Writer.h: In member function ‘int FileWriter::printf(const char*)’: Writer.h:104: warning: format not a string literal and no format arguments make[1]: *** [Main.o] Error 1 make[1]: Leaving directory/home/wash/tmp/light/server/iipsrv-0.9.7/src'
    make: *** [all-recursive] Error 1

     
    • Ruven

      Ruven - 2009-01-04

      Yes, this is an issue with GCC 4.3. The C++ includes have changed slightly. I have fixed these problems in the svn version. The svn version also contains other improvements, so I recommend you try this.

      Otherwise, you can simply add #include <cstdlib> to your Rawtile.h file
      and #include <cstring> to the top of IIPResponse.cc

      The hash_map messages are just warnings as hash_maps are now included as core parts of the STL and are no longer extensions. I will need to do an ifdef based on GCC version to eliminate these warnings!

       
      • Anonymous - 2015-05-21

        Hi,

        I'm running into the same problem right now while trying to install iipsrv 0.9.9.

        'make' fails with the message "fcgiapp.c:2308: fatal error: opening dependency file .deps/libfcgi_a-fcgiapp.Tpo: Permission denied".

        I have C++ compiler version 4.3.4 installed on a Suse Linux 11 (x86_64), Patchlevel 3.
        Unfortunately I couldn't figure out how to use the hints in the prevoius post.
        Could anyone possibly help me?

        Thomas (Bayerische Staatsbibliothek, Munich)

         
        • Ruven

          Ruven - 2015-05-21

          Download and try compiling with the latest version from here
          https://github.com/ruven/iipsrv

           
          • Anonymous - 2015-05-21

            Ruven,

            many thanks for helping me out! I used your version and it worked fine! I'm very happy to meet my ./src/iipsrv.fcgi file at last.

            Thomas

             
    • Stefan Washietl

      Stefan Washietl - 2009-01-07

      Thank you for clearing this issue!

       


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks