Re: problem compiling squid under Solaris

From: Dancer <dancer@dont-contact.us>
Date: Wed, 20 May 1998 02:20:07 +1000

Interesting. Looks like you've got a few function prototypes that don't
match up. It really shouldn't be a major problem to fix, but it looks
like some of the new header files don't agree with the old ones on exact
declarations.

I'd look carefully at the definitions for __P if I were you. Usually
this is used to wrap up ANSI function lists for non-ANSI compilers (it's
called all manner of different things, but I know it by smell).

It's possible that one definition is omitting the function-lists, and
the other is including it, leading to the problems you are getting. Try
commenting it out of gnumalloc.h, or (better perhaps) copying the
definition from math.h instead.

D

Gerard GACHELIN wrote:
>
> Hello,
>
> I can't compile squid (1.1.21) under Solaris 2.5 and 2.6, using gcc (2.8.1),
> since I installed gnumalloc (following the Squid Faq).
>
> More generally, which malloc do you use under Solaris2.5 ?
> Results given by cachemgr concerning Squid memory usage under Solaris don't
> seem to be reliable.
>
> As usual, I had no problem under FreeBSD2.2.5
>
> Thanks for any information.
>
> G. Gachelin (gg@lirmm.fr)
>
> Error messages :
>
> gcc -g -O2 -Wall -I. -I../include -I./../include -c acl.c
> In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/include
> /math.h:5,
> from squid.h:187,
> from acl.c:31:
> /usr/include/math.h:19: warning: `__P' redefined
> /usr/include/gnumalloc.h:71: warning: this is the location of the previous
> definition
> In file included from squid.h:97,
> from acl.c:31:
> /usr/include/memory.h:26: warning: conflicting types for built-in function
> `memcpy'
> /usr/include/memory.h:28: warning: conflicting types for built-in function
> `memcmp'
> In file included from squid.h:149,
> from acl.c:31:
> /usr/include/string.h:38: warning: conflicting types for built-in function
> `strcpy'
> /usr/include/string.h:45: warning: conflicting types for built-in function
> `strcmp'
> In file included from squid.h:158,
> from acl.c:31:
> /usr/include/crypt.h:28: conflicting types for `setkey'
> /usr/include/stdlib.h:148: previous declaration of `setkey'
> In file included from /usr/include/math.h:212,
> from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/include
> /math.h:5,
> from squid.h:187,
> from acl.c:31:
> /usr/include/floatingpoint.h:173: conflicting types for `atof'
> /usr/include/stdlib.h:92: previous declaration of `atof'
> /usr/include/floatingpoint.h:174: conflicting types for `strtod'
> /usr/include/stdlib.h:95: previous declaration of `strtod'

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT d- s++: a C++++$ UL++++B+++S+++C++H++U++V+++$ P+++$ L+++ E-
W+++(--)$ N++ w++$>--- t+ 5++ X+() R+ tv b++++ DI+++ e- h-@ 
------END GEEK CODE BLOCK------
Received on Tue May 19 1998 - 09:38:06 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:40:14 MST