compile err

Eddie Kohler kohler at icir.org
Mon Jul 22 15:55:49 EDT 2002


Hi YongKang,

> When installing click, I configured with option --disable-int64, and
> the g++ version is 2.96.

I believe the problem is that the old IPReassembler::PacketInfo structure,

    struct PacketLink {
	uint32_t padding[2];	// preserve paint annotation
	WritablePacket *bucket_next;
	ChunkLink chunk;
    };

is too large on your platform. Maybe your pointers are 64 bits.

Try the anonymous CVS version of Click. Its version of PacketLink,

    struct PacketInfo {
	uint32_t padding[3];	// preserve paint annotation
	ChunkLink chunk;
    };

should fit fine.

Alternatively you can change "uint32_t padding[2];" into "uint32_t
padding[1];", like so:

    struct PacketLink {
	uint32_t padding[1];	// preserve paint annotation
	ChunkLink chunk;
	WritablePacket *bucket_next;
    };

Or get rid of the padding altogether.

E




More information about the click mailing list