Re: squid 1.0.0 compiler warnings

From: Andreas Doering <doering@dont-contact.us>
Date: Tue Jul 2 04:25:20 1996

> Date: Tue, 02 Jul 1996 10:59:08 +0200
> To: squid-users@nlanr.net
> From: Marcello Masina <mmasina@pianeta.it>
> Subject: squid 1.0.0

> Compiling squid 1.0.0 on Linux, I get this:
>
> Making all in src...
> make[1]: Entering directory `/usr/software/squid-1.0.0/src'
> gcc -g -O -Wall -I. -I../include -I./../include -c main.c -o main.o
> main.c: In function `mainInitialize':
> main.c:373: `SA_RESETHAND' undeclared (first use this function)
> main.c:373: (Each undeclared identifier is reported only once
> main.c:373: for each function it appears in.)
> make[1]: *** [main.o] Error 1
> make[1]: Leaving directory `/usr/software/squid-1.0.0/src'
> make: *** [all] Error 2
>

Hello,

I just sucessfully compiled squid 1.0 on Linux 2.0.0 with gcc 2.7.2
(using clib 5.3.12).
There had been minor warnings (like previous versions):

------------------------------------------------------------------
getfullhostname.c: In function `getfullhostname':
getfullhostname.c:140: warning: return discards `const' from pointer
target type

comm.c: In function `comm_open':
comm.c:233: warning: implicit declaration of function
`commSetTcpNoDelay' comm.c: At top level: comm.c:889: warning: type
mismatch with previous implicit declaration comm.c:233: warning:
previous implicit declaration of `commSetTcpNoDelay' comm.c:889:
warning: `commSetTcpNoDelay' was previously implicitly declared to
return `int' comm.c:889: warning: `commSetTcpNoDelay' was declared
implicitly `extern' and later `static'

ipcache.c:305: warning: passing arg 1 of `xxfree' discards `const'
from pointer target type ipcache.c: In function `ipcache_add':
ipcache.c:511: warning: passing arg 1 of `xstrdup' discards `const'
from pointer target type ipcache.c: In function
`ipcache_gethostbyname': ipcache.c:1167: warning: passing arg 1 of
`strncpy' discards `const' from pointer target type
-------------------------------------------

Yours

Andreas
-----------------------------------------------------
Andreas Doering

University Gesamthochschule Kassel
WZ III - Environmental Systems Research Center
Kurt-Wolters-Strasse 3
D-34109 Kassel

Tel.: +49-561-8043907 Fax.: +49-561-8043176
E-Mail: doering@usf.uni-kassel.de
http://www.usf.uni-kassel.de/
-----------------------------------------------------
Received on Tue Jul 02 1996 - 04:25:20 MDT

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