Re: [PHP-I18N] intl 1.0.0RC1

[email protected] (Stanislav Malyshev) Tue, 27 May 2008 18:45:40 -0500
Newsgroups php.i18n
Organization Zend Technologies
Message-ID <[email protected]>
Hi!

> It now refuses to install on php 5.2.3, i.e. ubuntu 7.10.  (Wasn't the
> plan to include the required macros in the ./configure script (or
> whatever) so that it could install on more PHP installations.)

Well, I'm not sure how these macros can be included without conflicting 
with 5.2.4 where these macros are already defined in system config. If 
you know how to do it please send a patch.

> /tmp/pear/temp/intl/collator/collator_sort.c  -fPIC -DPIC -o
> collator/.libs/collator_sort.o
> /tmp/pear/temp/intl/collator/collator_sort.c:30: error: conflicting
> types for 'ptrdiff_t'
> /usr/lib/gcc/i486-linux-gnu/4.1.3/include/stddef.h:152: error: previous
> declaration of 'ptrdiff_t' was here

Something is wrong here - this line is specifically surrounded with
#if !defined(HAVE_PTRDIFF_T) && !defined(_PTRDIFF_T_DEFINED)
how happens it's executed?
My php_config.h has #define HAVE_PTRDIFF_T 1 - does yours? If not, does 
your configure.in have check for ptrdiff?
-- 
Stanislav Malyshev, Zend Software Architect
[email protected]   http://www.zend.com/
(408)253-8829   MSN: [email protected]