[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#44654: dpkg: seg faults w/2.3.17; problem traced to sysinfo()



> Ok, I forgot about 64bit machines. BTW also your '20-' is obviously
> _wrong_ because you are supposing that sizeof(long)-sizeof(short) is 2.

Good point

> +	unsigned long totalbig __attribute__((packed));	/* Total big memory size */
> +	unsigned long freebig __attribute__((packed));	/* Available big memory size */

That doesnt work on the ARM3

The best I have so far is

	struct _foo
	{
		...
		...
	}

	struct real_foo
	{
		...
		...
		char pad [64-sizeof(struct _foo)] __attribute((packed));
	}


Reply to: