c-rack / squid-ecap-gzip

SQUID eCAP GZIP Adapter
GNU General Public License v2.0
20 stars 8 forks source link

Cannot build on Solaris 10 #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Libecap configured and built successfully.

But adapter is not:

root @ fhtagn /patch/tmp/squid-ecap-gzip # ./configure 
'CXXFLAGS=-I/usr/sfw/include/c++/3.4.3/backward -L/usr/local/lib'
checking for a BSD-compatible install... /opt/csw/gnu/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/csw/gnu/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /opt/csw/gnu/sed
checking for grep that handles long lines and -e... /opt/csw/gnu/grep
checking for egrep... /opt/csw/gnu/grep -E
checking for ld used by gcc... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /opt/csw/gnu/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 786240
checking command to parse /opt/csw/gnu/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/ccs/bin/ld) supports shared libraries... 
yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
configuring libtool for CXX support
checking for ld used by g++... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/ccs/bin/ld) supports shared libraries... 
yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/ccs/bin/ld) supports shared libraries... 
yes
checking dynamic linker characteristics... solaris2.10 ld.so
(cached) (cached) checking how to hardcode library paths into programs... 
immediate
checking for ranlib... (cached) ranlib
checking for ar... /opt/csw/gnu/ar
remembering installation prefix as /usr/local
checking whether make sets $(MAKE)... (cached) yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking whether the C++ compiler (g++) is a C++ compiler... yes
checking iostream.h usability... yes
checking iostream.h presence... no
configure: WARNING: iostream.h: accepted by the compiler, rejected by the 
preprocessor!
configure: WARNING: iostream.h: proceeding with the compiler's result
checking for iostream.h... yes
checking for ios::fmtflags... yes
checking for sstream::freeze... no
checking for set_new_handler... no
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... (cached) ranlib
checking for main in -lecap... yes
checking libecap/adapter/service.h usability... yes
checking libecap/adapter/service.h presence... yes
checking for libecap/adapter/service.h... yes
configure: creating ./config.status
config.status: creating ./Makefile
config.status: creating src/Makefile
config.status: creating src/autoconf.h
config.status: src/autoconf.h is unchanged
config.status: executing depfiles commands
root @ fhtagn /patch/tmp/squid-ecap-gzip # gmake
Making all in src
gmake[1]: Entering directory '/patch/tmp/squid-ecap-gzip/src'
gmake  all-am
gmake[2]: Entering directory '/patch/tmp/squid-ecap-gzip/src'
/bin/bash ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H   -I../src  
 -I/usr/sfw/include/c++/3.4.3/backward -L/usr/local/lib -MT adapter_gzip.lo -MD 
-MP -MF .deps/adapter_gzip.Tpo -c -o adapter_gzip.lo adapter_gzip.cc
 g++ -DHAVE_CONFIG_H -I../src -I/usr/sfw/include/c++/3.4.3/backward -L/usr/local/lib -MT adapter_gzip.lo -MD -MP -MF .deps/adapter_gzip.Tpo -c adapter_gzip.cc  -fPIC -DPIC -o .libs/adapter_gzip.o
adapter_gzip.cc:65:32: error: 'Config' does not name a type
   virtual void configure(const Config &cfg);
                                ^
adapter_gzip.cc:66:34: error: 'Config' does not name a type
   virtual void reconfigure(const Config &cfg);
                                  ^
adapter_gzip.cc:77:38: error: conflicting return type specified for 'virtual 
libecap::adapter::Xaction* 
Adapter::Service::makeXaction(libecap::host::Xaction*)'
   virtual libecap::adapter::Xaction *makeXaction(libecap::host::Xaction *hostx);
                                      ^
In file included from adapter_gzip.cc:46:0:
/usr/local/include/libecap/adapter/service.h:41:30: error:   overriding 
'virtual libecap::adapter::Service::MadeXactionPointer 
libecap::adapter::Service::makeXaction(libecap::host::Xaction*)'
   virtual MadeXactionPointer makeXaction(host::Xaction *hostx) = 0;
                              ^
adapter_gzip.cc:235:40: error: 'Config' does not name a type
 void Adapter::Service::configure(const Config &) {
                                        ^
adapter_gzip.cc:239:42: error: 'Config' does not name a type
 void Adapter::Service::reconfigure(const Config &) {
                                          ^
adapter_gzip.cc: In member function 'virtual libecap::adapter::Xaction* 
Adapter::Service::makeXaction(libecap::host::Xaction*)':
adapter_gzip.cc:263:35: error: invalid new-expression of abstract class type 
'Adapter::Xaction'
  return new Adapter::Xaction(hostx);
                                   ^
adapter_gzip.cc:81:8: note:   because the following virtual functions are pure 
within 'Adapter::Xaction':
  class Xaction: public libecap::adapter::Xaction {
        ^
In file included from /usr/local/include/libecap/adapter/xaction.h:7:0,
                 from adapter_gzip.cc:47:
/usr/local/include/libecap/common/options.h:21:22: note:        virtual const 
libecap::Area libecap::Options::option(const libecap::Name&) const
   virtual const Area option(const Name &name) const = 0;
                      ^
/usr/local/include/libecap/common/options.h:25:16: note:        virtual void 
libecap::Options::visitEachOption(libecap::NamedValueVisitor&) const
   virtual void visitEachOption(NamedValueVisitor &visitor) const = 0;
                ^
adapter_gzip.cc: At global scope:
adapter_gzip.cc:613:33: error: 'RegisterService' is not a member of 'libecap'
 static const bool Registered = (libecap::RegisterService(new Adapter::Service), true);
                                 ^
adapter_gzip.cc:613:71: error: invalid new-expression of abstract class type 
'Adapter::Service'
 static const bool Registered = (libecap::RegisterService(new Adapter::Service), true);
                                                                       ^
adapter_gzip.cc:56:8: note:   because the following virtual functions are pure 
within 'Adapter::Service':
  class Service: public libecap::adapter::Service {
        ^
In file included from adapter_gzip.cc:46:0:
/usr/local/include/libecap/adapter/service.h:26:16: note:       virtual void 
libecap::adapter::Service::configure(const libecap::Options&)
   virtual void configure(const Options &cfg) = 0;
                ^
/usr/local/include/libecap/adapter/service.h:27:16: note:       virtual void 
libecap::adapter::Service::reconfigure(const libecap::Options&)
   virtual void reconfigure(const Options &cfg) = 0;
                ^
Makefile:318: recipe for target 'adapter_gzip.lo' failed
gmake[2]: *** [adapter_gzip.lo] Error 1
gmake[2]: Leaving directory '/patch/tmp/squid-ecap-gzip/src'
Makefile:215: recipe for target 'all' failed
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory '/patch/tmp/squid-ecap-gzip/src'
Makefile:252: recipe for target 'all-recursive' failed
gmake: *** [all-recursive] Error 1

Original issue reported on code.google.com by yvoi...@gmail.com on 16 Jan 2015 at 7:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Fixed. Need patch to compilation.

Original comment by yvoi...@gmail.com on 17 Jan 2015 at 7:56

c-rack commented 9 years ago

Reported as fixed. Please comment if issue is not resolved and I will re-open.