[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    ksniffer
From:       Bob Bernstein <ruptured-duck () home ! com>
Date:       1999-09-24 18:46:47
[Download RAW message or body]

I am try to build the 0.1.6 version of ksniffer on a Debian potato (Intel)
system. g++ is 2.95.1. Kernel is 2.2.10. Here's what I see:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/kde/include
-I/usr/local/qt/include  -I/usr/X11R6/include  -O2 -Wall -c kifstats.cpp
kifstats.cpp: In method `void IfStatsGeneral::dataReceived(int)':
kifstats.cpp:202: passing `unsigned char *' as argument 2 of
`getlinktype(short unsigned int, char *)' changes signedness
kifstats.cpp: In method `void IfStatsGeneral::timerDone()':
kifstats.cpp:252: warning: assignment to `long long unsigned int' from
`double'
kifstats.cpp: In method `void IfStatsDetailed::dataReceived(int)':
kifstats.cpp:554: passing `unsigned char *' as argument 2 of `qstrcmp(const
char *, const char *)' changes signedness
kifstats.cpp:567: passing `unsigned char *' as argument 2 of
`getlinktype(short unsigned int, char *)' changes signedness
kifstats.cpp:547: warning: `unsigned int iplen' might be used uninitialized in
this function
kifstats.cpp: In method `void IfStatsDetailed::timerDone()':
kifstats.cpp:746: warning: assignment to `long long unsigned int' from
`double'
make[2]: *** [kifstats.o] Error 1
make[2]: Leaving directory `/usr/local/src/ksniffer-0.1.6/ksniffer'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/ksniffer-0.1.6'
make: *** [all-recursive-am] Error 2

A long long cast seems to fix one of the problems, but I can't figure out how
to fix the 'changes signedness' problems. 

Am I bumping into a "new compiler" problem? Is there a compiler flag that can
fix all this in one fell swoop?


--
Bob Bernstein                http://members.home.net/ruptured-duck

Any resemblance to real persons living or dead is purely coincidental. Void
where prohibited. Some assembly required. List each check separately by bank
number. Batteries not included. Contents may settle during shipment. Use only
as directed.
	  
     

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic