[squid-users] Squid 3.1.0.4 compile errors on Solaris 10

From: Chris Horry <zerbey_at_wibble.co.uk>
Date: Wed, 28 Jan 2009 17:02:45 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

NB: I have no difficulties compiling the 3.0 branch on the same system.

I get a bunch of configure errors similar to the following:

configure: WARNING: libxml/parser.h: present but cannot be compiled
configure: WARNING: libxml/parser.h: check for missing prerequisite
headers?
configure: WARNING: libxml/parser.h: see the Autoconf documentation
configure: WARNING: libxml/parser.h: section "Present But Cannot Be
Compiled"
configure: WARNING: libxml/parser.h: proceeding with the preprocessor's
result
configure: WARNING: libxml/parser.h: in the future, the compiler will
take precedence
configure: WARNING: ##
- ----------------------------------------------- ##
configure: WARNING: ## Report this to
http://www.squid-cache.org/bugs/ ##
configure: WARNING: ##
- ----------------------------------------------- ##

When running "make" I receive:

if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include
- -I/usr/include/libxml2 -I/usr/local/ssl/include -Werror -Wall
- -Wpointer-arith -Wwrite-strings -Wmissing-prototypes
- -Wmissing-declarations -Wcomments -Wall
- -DDEFAULT_SQUID_CONFIG_DIR=\"/usr/local/squid3.1/etc\"
- -DDEFAULT_SQUID_DATA_DIR=\"/usr/local/squid3.1/share\" -g -O2 -MT
charset.o -MD -MP -MF ".deps/charset.Tpo" -c -o charset.o charset.c; \
        then mv -f ".deps/charset.Tpo" ".deps/charset.Po"; else rm -f
".deps/charset.Tpo"; exit 1; fi
In file included from MemPool.cc:84:
../include/config.h:213:2: #error NO 8 bit signed type available
../include/config.h:233:2: #error NO 16 bit signed type available
In file included from MemPool.cc:84:
../include/config.h:242: error: syntax error before `;' token
../include/config.h:253:2: #error NO 32 bit signed type available
../include/config.h:262: error: syntax error before `;' token
../include/config.h:275:2: #error NO 64 bit signed type available
../include/config.h:284: error: syntax error before `;' token
../include/config.h:290: error: conflicting types for `typedef int pid_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/include/sys/types.h:504:
error: previous
   declaration as `typedef long int pid_t'
../include/config.h:302: error: conflicting types for `typedef int off_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/include/sys/types.h:143:
error: previous
   declaration as `typedef long int off_t'
../include/config.h:306: error: conflicting types for `typedef short
unsigned
   int mode_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/include/sys/types.h:363:
error: previous
   declaration as `typedef ulong_t mode_t'
../include/config.h:310: error: conflicting types for `typedef long unsigned
   int fd_mask'
/usr/include/sys/select.h:88: error: previous declaration as `typedef
long int
   fd_mask'
In file included from charset.c:28:
../include/config.h:213:2: #error NO 8 bit signed type available
../include/config.h:233:2: #error NO 16 bit signed type available
In file included from charset.c:28:
../include/config.h:242: error: parse error before "u_int16_t"
../include/config.h:242: warning: type defaults to `int' in declaration
of `u_int16_t'
../include/config.h:242: warning: data definition has no type or storage
class
../include/config.h:253:2:In file included from base64.c:5:
../include/config.h:213:2: #error NO 8 bit signed type available
../include/config.h:233:2: #error NO #error NO 32 bit signed type available
../include/config.h:262: error: parse error before "u_int32_t"
../include/config.h:262: warning: type defaults to `int' in declaration
of `u_int32_t'
../include/config.h:262: warning: data definition has no type or storage
class
../include/config.h:275:2: #error NO 64 bit signed type available
../include/config.h:284: error: parse error before "u_int64_t"
../include/config.h:284: warning: type defaults to `int' in declaration
of `u_int64_t'
../include/config.h:284: warning: data definition has no type or storage
class
../include/config.h:290: error: conflicting types for `pid_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/include/sys/types.h:504:
error: previous declaration of `pid_t'
../include/config.h:294: warning: redefinition of `size_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/include/sys/types.h:518:
warning: `size_t' previously declared here
../include/config.h:298: warning: redefinition of `ssize_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/include/sys/types.h:529:
warning: `ssize_t' previously declared here
../include/config.h:302: error: conflicting types for `off_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/include/sys/types.h:143:
error: previous declaration of `off_t'
../include/config.h:306: error: conflicting types for `mode_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/include/sys/types.h:363:
error: previous declaration of `mode_t'
../include/config.h:310: error: conflicting types for `fd_mask'
/usr/include/sys/select.h:88: error: previous declaration of `fd_mask'
In file included from /usr/include/sys/socket.h:45,
                 from /usr/include/arpa/inet.h:45,
                 from ../include/util.h:49,
                 from ../include/MemPool.h:25,
                 from MemPool.cc:89:
/usr/include/netinet/in.h:54: error: conflicting types for `typedef uint32_t
   socklen_t'
../include/config.h:314: error: previous declaration as `typedef int
socklen_t'
16 bit signed type available
In file included from base64.c:5:
../include/config.h:242: error: parse error before "u_int16_t"
../include/config.h:242: warning: type defaults to `int' in declaration
of `u_int16_t'
../include/config.h:242: warning: data definition has no type or storage
class
../include/config.h:253:2: #error NO 32 bit signed type available
../include/config.h:262: error: parse error before "u_int32_t"
../include/config.h:262: warning: type defaults to `int' in declaration
of `u_int32_t'
../include/config.h:262: warning: data definition has no type or storage
class
../include/config.h:275:2: #error NO 64 bit signed type available
../include/config.h:284: error: parse error before "u_int64_t"
../include/config.h:284: warning: type defaults to `int' in declaration
of `u_int64_t'
../include/config.h:284: warning: data definition has no type or storage
class
../include/config.h:290: error: conflicting types for `pid_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/include/sys/types.h:504:
error: previous declaration of `pid_t'
../include/config.h:294: warning: redefinition of `size_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/include/sys/types.h:518:
warning: `size_t' previously declared here
../include/config.h:298: warning: redefinition of `ssize_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/include/sys/types.h:529:
warning: `ssize_t' previously declared here
../include/config.h:302: error: conflicting types for `off_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/include/sys/types.h:143:
error: previous declaration of `off_t'
../include/config.h:306: error: conflicting types for `mode_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/include/sys/types.h:363:
error: previous declaration of `mode_t'
../include/config.h:310: error: conflicting types for `fd_mask'
/usr/include/sys/select.h:88: error: previous declaration of `fd_mask'
In file included from /usr/include/sys/socket.h:45,
                 from /usr/include/arpa/inet.h:45,
                 from ../include/util.h:49,
                 from charset.c:29:
/usr/include/netinet/in.h:54: error: conflicting types for `socklen_t'
../include/config.h:314: error: previous declaration of `socklen_t'
In file included from /usr/include/sys/socket.h:45,
                 from /usr/include/arpa/inet.h:45,
                 from ../include/util.h:49,
                 from base64.c:6:
/usr/include/netinet/in.h:54: error: conflicting types for `socklen_t'
../include/config.h:314: error: previous declaration of `socklen_t'
make[2]: *** [charset.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [base64.o] Error 1
In file included from ../include/Stack.h:37,
                 from ../include/splay.h:11,
                 from ../include/MemPool.h:28,
                 from MemPool.cc:89:
../include/Array.h:330: error: redefinition of
`VectorIteratorBase<Vector<E> >
   Vector<E>::begin()'
../include/Array.h:316: error: `VectorIteratorBase<Vector<E> >
   Vector<E>::begin()' previously declared here
../include/Array.h:330: error: no `VectorIteratorBase<Vector<E> >
   Vector<E>::begin()' member function declared in class `Vector<E>'
../include/Array.h:337: error: redefinition of
`VectorIteratorBase<Vector<E> >
   Vector<E>::end()'
../include/Array.h:323: error: `VectorIteratorBase<Vector<E> >
Vector<E>::end()
   ' previously declared here
../include/Array.h:337: error: no `VectorIteratorBase<Vector<E> >
   Vector<E>::end()' member function declared in class `Vector<E>'
In file included from MemPool.cc:89:
../include/MemPool.h:330: error: `virtual MemPoolMeter&
   MemImplementingAllocator::getMeter()' and `virtual MemPoolMeter&
   MemImplementingAllocator::getMeter()' cannot be overloaded
MemPool.cc: In function `void memPoolIterateDone(MemPoolIterator**)':
MemPool.cc:137: warning: deprecated conversion from string constant to
`char*'
MemPool.cc:137: warning: deprecated conversion from string constant to
`char*'
MemPool.cc: In function `MemImplementingAllocator*
   memPoolIterateNext(MemPoolIterator*)':
MemPool.cc:146: warning: deprecated conversion from string constant to
`char*'
MemPool.cc:146: warning: deprecated conversion from string constant to
`char*'
MemPool.cc: In constructor `MemChunk::MemChunk(MemPool*)':
MemPool.cc:225: error: no matching function for call to `Splay<MemChunk*>::
   insert(MemChunk* const, int (&)(MemChunk*&, MemChunk*&))'
../include/splay.h:306: error: candidates are: void Splay<V>::insert(V&, int
   (*)(V&, V&)) [with V = MemChunk*]
MemPool.cc: In constructor `MemPool::MemPool(char*, unsigned int)':
MemPool.cc:242: warning: deprecated conversion from string constant to
`char*'
MemPool.cc:242: warning: deprecated conversion from string constant to
`char*'
MemPool.cc: In destructor `MemChunk::~MemChunk()':
MemPool.cc:263: error: no matching function for call to `Splay<MemChunk*>::
   remove(MemChunk* const, int (&)(MemChunk*&, MemChunk*&))'
../include/splay.h:316: error: candidates are: void Splay<V>::remove(V&, int
   (*)(V&, V&)) [with V = MemChunk*]
MemPool.cc: In member function `void MemPool::push(void*)':
MemPool.cc:277: error: `memset' undeclared (first use this function)
MemPool.cc:277: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
MemPool.cc: In constructor `MemPools::MemPools()':
MemPool.cc:364: error: `getenv' undeclared (first use this function)
MemPool.cc:366: error: `atoi' undeclared (first use this function)
MemPool.cc: In destructor `virtual MemPool::~MemPool()':
MemPool.cc:434: warning: deprecated conversion from string constant to
`char*'
MemPool.cc:434: warning: deprecated conversion from string constant to
`char*'
MemPool.cc:443: warning: deprecated conversion from string constant to
`char*'
MemPool.cc:443: warning: deprecated conversion from string constant to
`char*'
MemPool.cc:448: warning: deprecated conversion from string constant to
`char*'
MemPool.cc:448: warning: deprecated conversion from string constant to
`char*'
MemPool.cc: In member function `virtual void
   MemImplementingAllocator::free(void*)':
MemPool.cc:560: warning: deprecated conversion from string constant to
`char*'
MemPool.cc:560: warning: deprecated conversion from string constant to
`char*'
MemPool.cc: In member function `virtual void* MemPool::allocate()':
MemPool.cc:576: warning: deprecated conversion from string constant to
`char*'
MemPool.cc:576: warning: deprecated conversion from string constant to
`char*'
MemPool.cc: In member function `virtual void MemPool::deallocate(void*)':
MemPool.cc:586: warning: deprecated conversion from string constant to
`char*'
MemPool.cc:586: warning: deprecated conversion from string constant to
`char*'
MemPool.cc: In member function `void
   MemPool::convertFreeCacheToChunkFreeCache()':
MemPool.cc:603: warning: deprecated conversion from string constant to
`char*'
MemPool.cc:603: warning: deprecated conversion from string constant to
`char*'
MemPool.cc:604: warning: deprecated conversion from string constant to
`char*'
MemPool.cc:604: warning: deprecated conversion from string constant to
`char*'
MemPool.cc: In member function `virtual int
MemPool::getStats(MemPoolStats*)':
MemPool.cc:731: error: `memset' undeclared (first use this function)
MemPool.cc:760: error: `strlen' undeclared (first use this function)
MemPool.cc: In member function `virtual int
MemMalloc::getStats(MemPoolStats*)
   ':
MemPool.cc:771: error: `memset' undeclared (first use this function)
MemPool.cc:788: error: `strlen' undeclared (first use this function)
MemPool.cc: In function `int memPoolGetGlobalStats(MemPoolGlobalStats*)':
MemPool.cc:809: error: `memset' undeclared (first use this function)
MemPool.cc: At global scope:
MemPool.cc:956: error: redefinition of `MemPoolMeter&
   MemImplementingAllocator::getMeter()'
MemPool.cc:950: error: `virtual MemPoolMeter&
   MemImplementingAllocator::getMeter()' previously defined here
MemPool.cc:956: error: no `MemPoolMeter&
MemImplementingAllocator::getMeter()'
   member function declared in class `MemImplementingAllocator'
MemPool.cc: In member function `virtual MemPoolMeter&
   MemImplementingAllocator::getMeter()':
MemPool.cc:950: error: prior parameter's size depends on `
   MemImplementingAllocator* const this'
make[2]: *** [MemPool.o] Error 1
make[2]: Leaving directory `/usr/local/src/squid-3.1.0.4/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/squid-3.1.0.4/lib'
make: *** [all-recursive] Error 1

- --
Chris Horry KG4TSM "A conservative is a man with two perfectly
zerbey_at_wibble.co.uk good legs who, however, has never learned how
http://www.wibble.co.uk to walk forward". -- Franklin D. Roosevelt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmA1gUACgkQnAAeGCtMZU7jugCgpv8GBNkYF9fmQpxz7VPzyvMo
A/IAn1FLg4vhgaJFE2DGv+3l0nLksTlq
=VAGs
-----END PGP SIGNATURE-----
Received on Wed Jan 28 2009 - 22:02:52 MST

This archive was generated by hypermail 2.2.0 : Fri Jan 30 2009 - 12:00:02 MST