On parisc-linux, gcc defines size_t as unsigned int: # 1 "<built-in>" #define __SIZE_TYPE__ unsigned int This mismatch causes dash to fail to build because of a malloc parameter mismatch. --- klibc-1.1.3.orig/include/bits32/bitsize/stddef.h +++ klibc-1.1.3/include/bits32/bitsize/stddef.h @@ -6,7 +6,7 @@ #define _BITSIZE_STDDEF_H #define _SIZE_T -#if defined(__s390__) || defined(__hppa__) || defined(__cris__) +#if defined(__s390__) || defined(__cris__) typedef unsigned long size_t; #else typedef unsigned int size_t; * Canonical Ltd * Ubuntu Service and Support * +1 514 691 7221 * Linux for Human Beings.
Jeff Bailey wrote:> On parisc-linux, gcc defines size_t as unsigned int: > > # 1 "<built-in>" > #define __SIZE_TYPE__ unsigned int > > This mismatch causes dash to fail to build because of a malloc parameter > mismatch. >Hmmm... do we know how far back that gcc has had these defines? In many ways the cleanest would be to simply use them. -hpa
Le vendredi 09 d?cembre 2005 ? 13:12 -0800, H. Peter Anvin a ?crit :> Jeff Bailey wrote: > > On parisc-linux, gcc defines size_t as unsigned int: > > > > # 1 "<built-in>" > > #define __SIZE_TYPE__ unsigned int > > > > This mismatch causes dash to fail to build because of a malloc parameter > > mismatch. > > > > Hmmm... do we know how far back that gcc has had these defines? In many > ways the cleanest would be to simply use them.Thanks to Kyle McMartin for this. gcc-2.7.2 had it as well. * Canonical Ltd * Ubuntu Service and Support * +1 514 691 7221 * Linux for Human Beings.