Package: tcptrack
Version: 1.1.5-1
Severity: important
Tags: patch
Your package fails to build with G++ 4.1. I'm filing this bug as
important for now, but when 4.1 will be the default compiler in
unstable (probably in a few weeks) I'll upgrade this to serious.
A patch is below.
> Automatic build of tcptrack_1.1.5-1 on bigsur by sbuild/mips 1.75
...
> make[3]: Entering directory `/build/tbm/tcptrack-1.1.5/src'
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c -o Collector.o Collector.cc
> IPv4Address.h:16: error: extra qualification 'IPv4Address::' on member 'ptr'
> TCPPacket.h:32: error: extra qualification 'TCPPacket::' on member 'TCPPacket'
> TCPPacket.h:33: error: extra qualification 'TCPPacket::' on member 'TCPPacket'
> TCPPacket.h:34: error: extra qualification 'TCPPacket::' on member 'getSeq'
> TCPPacket.h:35: error: extra qualification 'TCPPacket::' on member 'getAck'
> TCPPacket.h:42: error: extra qualification 'TCPPacket::' on member 'fin'
> TCPPacket.h:43: error: extra qualification 'TCPPacket::' on member 'syn'
> TCPPacket.h:44: error: extra qualification 'TCPPacket::' on member 'rst'
> TCPPacket.h:45: error: extra qualification 'TCPPacket::' on member 'psh'
> TCPPacket.h:46: error: extra qualification 'TCPPacket::' on member 'ack'
> TCPPacket.h:47: error: extra qualification 'TCPPacket::' on member 'urg'
> TCPPacket.h:48: error: extra qualification 'TCPPacket::' on member 'ece'
> TCPPacket.h:49: error: extra qualification 'TCPPacket::' on member 'cwr'
> make[3]: *** [Collector.o] Error 1
diff -urN src~/IPv4Address.h src/IPv4Address.h
--- src~/IPv4Address.h 2006-03-06 16:12:49.000000000 +0000
+++ src/IPv4Address.h 2006-03-06 16:13:03.000000000 +0000
@@ -13,7 +13,7 @@
IPv4Address(IPv4Address &na) { a=na.toStruct(); }
bool operator==( const IPv4Address & ) const;
bool operator!=( const IPv4Address & ) const;
- char * IPv4Address::ptr() const;
+ char * ptr() const;
friend ostream & operator<<( ostream &, const IPv4Address &);
struct in_addr toStruct() const;
private:
diff -urN src~/TCPPacket.h src/TCPPacket.h
--- src~/TCPPacket.h 2006-03-06 16:12:49.000000000 +0000
+++ src/TCPPacket.h 2006-03-06 16:13:29.000000000 +0000
@@ -29,24 +29,24 @@
class TCPPacket
{
public:
- TCPPacket::TCPPacket( const u_char *data, unsigned int data_len );
- TCPPacket::TCPPacket( TCPPacket & orig );
- seq_t TCPPacket::getSeq() const;
- seq_t TCPPacket::getAck() const;
+ TCPPacket( const u_char *data, unsigned int data_len );
+ TCPPacket( TCPPacket & orig );
+ seq_t getSeq() const;
+ seq_t getAck() const;
bool isFlagSet(unsigned int);
unsigned short headerLen() const { return header_len; };
portnum_t srcPort() const;
portnum_t dstPort() const;
- bool TCPPacket::fin() const;
- bool TCPPacket::syn() const;
- bool TCPPacket::rst() const;
- bool TCPPacket::psh() const;
- bool TCPPacket::ack() const;
- bool TCPPacket::urg() const;
- bool TCPPacket::ece() const;
- bool TCPPacket::cwr() const;
+ bool fin() const;
+ bool syn() const;
+ bool rst() const;
+ bool psh() const;
+ bool ack() const;
+ bool urg() const;
+ bool ece() const;
+ bool cwr() const;
friend ostream & operator<<( ostream &, const TCPPacket &);
private:
--
Martin Michlmayr
http://www.cyrius.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]