sinto muito, nao foi minha intencao apenas nao queria q a mensagem ficasse
muito grande entao ai vai:

o configure foi o seguinte:

/* ./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-config-file-path=/usr/local/apache2/conf \
--with-pgsql=/usr/local/pgsql \
--with-openssl \
--enable-debug \
--with-zlib=/usr \
--with-zlib-dir=/usr \
--with-readline=/usr \
--enable-ftp \
--with-gd \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--with-bz2=/usr/bin \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-xpm-dir=/usr/lib \
--with-freetype-dir=/usr/lib \
--with-libxml-dir=/usr/lib \
--with-bison=/usr/share
*/

dai na hora do make deu uns erros no arquivo
php/php-5.1.4/ext/standard/string.c
apos ter passado por todo o configure tipo esses dai:

/home/iraziel/compila/php/php-5.1.4/ext/standard/string.c: At top level:
/home/iraziel/compila/php/php-5.1.4/ext/standard/string.c:3429: error:
syntax error before 'cmp'
/home/iraziel/compila/php/php-5.1.4/ext/standard/string.c:3429: error: stray
'\31' in program
/home/iraziel/compila/php/php-5.1.4/ext/standard/string.c:3429: warning:
type defaults to 'int' in declaration of 'len'
/home/iraziel/compila/php/php-5.1.4/ext/standard/string.c:3429: error:
's2_len' undeclared here (not in a function)
/home/iraziel/compila/php/php-5.1.4/ext/standard/string.c:3429: error:
's1_len' undeclared here (not in a function)
/home/iraziel/compila/php/php-5.1.4/ext/standard/string.c:3429: error:
'offset' undeclared here (not in a function)
/home/iraziel/compila/php/php-5.1.4/ext/standard/string.c:3429: warning:
data definition has no type or storage class
/home/iraziel/compila/php/php-5.1.4/ext/standard/string.c:3430: error:
syntax error before '{' token
/home/iraziel/compila/php/php-5.1.4/ext/standard/string.c: In function
'zif_setlocale':
/home/iraziel/compila/php/php-5.1.4/ext/standard/string.c:3811: warning:
dereferencing type-punned pointer will break strict-aliasing rules
/home/iraziel/compila/php/php-5.1.4/ext/standard/string.c: In function
'zif_str_word_count':
/home/iraziel/compila/php/php-5.1.4/ext/standard/string.c:4732: warning:
pointer targets in passing argument 1 of 'php_charmask' differ in signedness
make: ** [ext/standard/string.lo] Erro 1

dai fui no arquivo dito e vi o seguinte:

na linha 3429 (do jeitinho q tava la colei):
PHP_FUNCTION(str_ireplace)cmplen = (uint) (len ? len : MAX(s2_len, (s1_len
- offset)));
{
    php_str_replace_common(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
}

na linha 4902:

cmplen  = (uint) (len ? len : MAX(s2_len, (s1_len - offset)));

if (!cs) {
        RETURN_LONG(zend_binary_strncmp(s1 + offset, (s1_len - offset), s2,
s2_len, cmp_len));
    } else {
        RETURN_LONG(zend_binary_strncasecmp(s1 + offset, (s1_len - offset),
s2, s2_len, cmp_len));
    }
}

dai vi q no arquivo original nao aparece na linha 3429

PHP_FUNCTION(str_ireplace)cmplen = (uint) (len ? len : MAX(s2_len, (s1_len
- offset)));

 e sim somente

PHP_FUNCTION(str_ireplace)

dai comentei essa linha

no arquivo original aparece tudo certo cmp_len e nao 'cmplen' - entao
troquei

depois de um make e make install novamente tudo deu certo.

e ai sera um bug?
-- 
ubuntu-br mailing list
[email protected]
www.ubuntu-br.org
https://lists.ubuntu.com/mailman/listinfo/ubuntu-br

Responder a