Re: [squid-users] Squid-2.0.RELEASE compile error with Solaris 2.6

From: Chris Tilbury <cudch@dont-contact.us>
Date: Fri, 9 Oct 1998 09:18:56 +0100

On Fri, Oct 09, 1998 at 09:50:45AM +0200, Dieter Laube wrote:

> I am using a Sun Ultra 1 with Solaris 2.6 with Sunsolve Patches
> September 1998,
> gcc version 2.7.2.2 and GNU make.
>
> After having entered "./configure --prefix=/opt/squid"
> and "make all" I receive the following error messages:
>
> gcc -g -O2 -Wall -I. -I../include -I../include -c debug.c
> debug.c: In function `_db_print':
> debug.c:65: `__builtin_va_alist' undeclared (first use this function)
> debug.c:65: (Each undeclared identifier is reported only once
> debug.c:65: for each function it appears in.)
> debug.c:50: warning: `args' might be used uninitialized in this function
>
> debug.c: In function `debugArg':
> debug.c:119: warning: implicit declaration of function `strncasecmp'
> make[1]: *** [debug.o] Error 1
> make[1]: Leaving directory `/opt/squid/src/squid-2.0.RELEASE/src'
> make: *** [all] Error 1
>
> I have looked through the mailing archive but have not found anything.
> Has anybody got an idea what I can do?

What version of Solaris was this gcc compiled under? Something like

        strings /usr/local/bin/gcc | grep solaris

will display something.

My guess is that this was compiled under 2.5.1 and you don't have "fixed"
2.6 header files?

Cheers,

Chris

-- 
Chris Tilbury, UNIX Systems Administrator, IT Services, University of Warwick
EMAIL: cudch+s@csv.warwick.ac.uk PHONE: +44 1203 523365(V)/+44 1203 523267(F)
                            URL: http://www.warwick.ac.uk/staff/Chris.Tilbury
Received on Fri Oct 09 1998 - 01:20:23 MDT

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