problem compiling squid under Solaris

From: Gerard GACHELIN <gg@dont-contact.us>
Date: Tue, 19 May 1998 17:35:18 +0200

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'
Received on Tue May 19 1998 - 08:39:51 MDT

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