cc kompiler and ugly errors

From: dpecka <dpecka_at_techniservit.cz>
Date: Thu, 13 Jan 2011 04:31:51 +0100

Hi there,

i'm trying to compile squid 2.6.STABLE17 on solaris sparc with using
this:

gtar xvf /var/tmp/mnt/squid-2.6.STABLE17.tar -C /opt/squid/src/
cd /opt/squid/src/squid-2.6.STABLE17/
export PATH=/opt/solstudio12.2/bin:/usr/ccs/bin:/usr/sbin:/usr/bin
CC=/opt/solstudio12.2/bin/cc ./configure --prefix=/opt/squid
dmake all

I'm getting then a lot of warnings, mainly:

"protos.h", line 1144: warning: null dimension: methods
"protos.h", line 1145: warning: null dimension: _methods

see please attached file ..

i think that it could be fixed by changing:

# ggrep -rI parse_extension_method .
./url.c:parse_extension_method(const char *(*_methods)[])
./protos.h:extern void parse_extension_method(const char *(*methods)[]);
./cf_parser.h: parse_extension_method(&RequestMethodStr);

# ggrep -rI free_extension_method .
./url.c:free_extension_method(const char *(*_methods)[])
./protos.h:extern void free_extension_method(const char *(*_methods)[]);
./cf_parser.h: free_extension_method(&RequestMethodStr);

as follows:

# ggrep -rI parse_extension_method src/
src/url.c:parse_extension_method(const char **_methods)
src/protos.h:extern void parse_extension_method(const char **methods);
src/cf_parser.h: parse_extension_method(RequestMethodStr);

# ggrep -rI free_extension_method src/
src/url.c:free_extension_method(const char **_methods)
src/protos.h:extern void free_extension_method(const char **_methods);
src/cf_parser.h: free_extension_method(RequestMethodStr);

^^ but i'm unable to keep cf_parser.h saved because of it's
auto-generated somewhere in make phase ..

i will very appreciate if any of you would help me solve it ..

PS. I have to just just 2.6.STABLE17 .. nothing else ..
PPS. not sure if gcc just doesn't warn, but gcc does a job without ANY
warning ..

regards, daniel

-- 
Best Regards / S Pozdravem
Daniel Pecka
--------------------------------------------------
SunOS Specialist, UNIX Administrator
www.techniservit.cz
mailto:<dpecka[at]techniservit[bot]cz>
callto:<+0420603166533>

Received on Thu Jan 13 2011 - 15:52:20 MST

This archive was generated by hypermail 2.2.0 : Fri Jan 14 2011 - 12:00:08 MST