I fixed this by #include'ing <stddef.h> after <sys/types.h> in
"src/regex.c".
-lipp
>> -----Original Message-----
>> From: Vin Shelton [mailto:shelton@icd.teradyne.com]
>> Sent: Monday, August 13, 2001 7:36 AM
>> To: Ben Wing
>> Cc: XEmacs Patches List
>> Subject: Re: [COMMIT] unsigned-removal patch
>>
>>
>> I can not build 21.5 on Solaris 2.5 as of this morning's CVS.
>> (SunOS-4.1.4 works fine, though.)
>>
>> Apparently ptrdiff_t is no longer defined on the Solaris
>> 2.5 platform:
>>
>> gcc -c -O2 -pipe -ffast-math -fno-exceptions -I. -I../src
>> -I/u/shelton/new/src/xemacs-21.5-2001-08-13/lib-src
>> -I/u/shelton/new/src/xemacs-21.5-2001-08-13/src
>> -DHAVE_CONFIG_H -I/u/shelton/new/SunOS-5.5/include \
>> -DINHIBIT_STRING_HEADER
>> /u/shelton/new/src/xemacs-21.5-2001-08-13/src/regex.c
>> /u/shelton/new/src/xemacs-21.5-2001-08-13/src/regex.c: In
>> function `regex_compile':
>> /u/shelton/new/src/xemacs-21.5-2001-08-13/src/regex.c:2061:
>> `ptrdiff_t' undeclared (first use in this function)
>>
>> Here's the configure command I used:
>>
>> /u/shelton/new/src/xemacs-21.5-2001-08-13/configure
>> --prefix=/u/shelton/new/SunOS-5.5/xemacs-21.5-2001-08-13
>> --with-gcc --site-includes=/u/shelton/new/SunOS-5.5/include
>> --site-libraries=/u/shelton/new/SunOS-5.5/lib
>> --infopath=/u/shelton/new/info --with-mule=no
>> --compiler=gcc '--cflags=-O2 -pipe -ffast-math
>> -fno-exceptions' --with-dialogs=no --with-widgets=no
>> --package-path=/u/shelton/new/site-packages::/u/shelton/new/
>> xemacs-packages --debug=no --error-checking=none
>>
>> Here's the output of 'uname -a':
>> SunOS ise4 5.5.1 Generic_103640-34 sun4m sparc
>>
>> I don't have time to investigate this in any depth right now because
>> my day job is NT-based, but I will be happy to provide any
>> info I can.
>> Let me know what additional info is needed.
>>
>> - vin
>>
>> --
>> In a minute there is time
>> For decisions and revisions which a minute will reverse.
>> T.S. Eliot
>> [URL:
http://www.cs.amherst.edu/~ccm/prufrock.html]
>>