O arquivo .c corrigido que eu baixei da URL abaixo não combina com o arquivo .h, portanto, um problema de compilação. Isso significa que devo corrigi-lo por espera para que este projeto seja atualizado.
wget link
está agora quebrado
Estou seguindo a resposta neste tópico para criar o módulo perl para php.
Os passos curtos são:
export PHP_PREFIX="/usr"
export PERL_PREFIX="/usr"
$PHP_PREFIX/bin/phpize
./configure --with-perl=$PERL_PREFIX --with-php-config=$PHP_PREFIX/bin/php-config
make
Eu recebo o seguinte erro no make.
Estou no ubuntu 12.04 x64
ubuntu@myhostname:/software/perl-1.0.1$ make
/bin/bash /software/perl-1.0.1/libtool --mode=compile cc -I. -I/software/perl-1.0.1 -DPHP_ATOM_INC -I/software/perl-1.0.1/include -I/software/perl-1.0.1/main -I/software/perl-1.0.1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.14/CORE -c /software/perl-1.0.1/php_perl.c -o php_perl.lo
libtool: compile: cc -I. -I/software/perl-1.0.1 -DPHP_ATOM_INC -I/software/perl-1.0.1/include -I/software/perl-1.0.1/main -I/software/perl-1.0.1 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.14/CORE -c /software/perl-1.0.1/php_perl.c -fPIC -DPIC -o .libs/php_perl.o
/software/perl-1.0.1/php_perl.c:208:3: warning: initialization from incompatible pointer type [enabled by default]
/software/perl-1.0.1/php_perl.c:208:3: warning: (near initialization for 'php_perl_object_handlers.call_method') [enabled by default]
/software/perl-1.0.1/php_perl.c:211:3: warning: initialization from incompatible pointer type [enabled by default]
/software/perl-1.0.1/php_perl.c:211:3: warning: (near initialization for 'php_perl_object_handlers.get_class_name') [enabled by default]
/software/perl-1.0.1/php_perl.c:235:3: warning: initialization from incompatible pointer type [enabled by default]
/software/perl-1.0.1/php_perl.c:235:3: warning: (near initialization for 'php_perl_proxy_handlers.call_method') [enabled by default]
/software/perl-1.0.1/php_perl.c:238:3: warning: initialization from incompatible pointer type [enabled by default]
/software/perl-1.0.1/php_perl.c:238:3: warning: (near initialization for 'php_perl_proxy_handlers.get_class_name') [enabled by default]
/software/perl-1.0.1/php_perl.c: In function 'php_perl_sv_to_zval_noref':
/software/perl-1.0.1/php_perl.c:554:7: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type [enabled by default]
/usr/lib/perl/5.14/CORE/proto.h:3565:21: note: expected 'STRLEN * const' but argument is of type 'int *'
/software/perl-1.0.1/php_perl.c:601:18: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'unsigned int' [-Wformat]
/software/perl-1.0.1/php_perl.c: In function 'php_perl_call_method':
/software/perl-1.0.1/php_perl.c:694:11: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type [enabled by default]
/usr/lib/perl/5.14/CORE/proto.h:3565:21: note: expected 'STRLEN * const' but argument is of type 'int *'
/software/perl-1.0.1/php_perl.c: In function 'php_perl_call':
/software/perl-1.0.1/php_perl.c:757:11: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type [enabled by default]
/usr/lib/perl/5.14/CORE/proto.h:3565:21: note: expected 'STRLEN * const' but argument is of type 'int *'
/software/perl-1.0.1/php_perl.c: In function 'php_perl_write_property':
/software/perl-1.0.1/php_perl.c:1194:11: error: 'value' undeclared (first use in this function)
/software/perl-1.0.1/php_perl.c:1194:11: note: each undeclared identifier is reported only once for each function it appears in
/software/perl-1.0.1/php_perl.c: In function 'php_perl_get_properties':
/software/perl-1.0.1/php_perl.c:1546:24: error: 'zend_op' has no member named 'op1_type'
/software/perl-1.0.1/php_perl.c:1547:29: error: 'znode' has no member named 'constant'
/software/perl-1.0.1/php_perl.c:1548:12: error: 'znode' has no member named 'literal'
/software/perl-1.0.1/php_perl.c:1548:12: error: 'znode' has no member named 'constant'
/software/perl-1.0.1/php_perl.c:1548:12: error: 'znode' has no member named 'literal'
/software/perl-1.0.1/php_perl.c:1548:12: error: 'znode' has no member named 'constant'
/software/perl-1.0.1/php_perl.c:1549:12: error: 'znode' has no member named 'literal'
/software/perl-1.0.1/php_perl.c:1549:12: error: 'znode' has no member named 'constant'
/software/perl-1.0.1/php_perl.c:1549:12: error: 'znode' has no member named 'literal'
/software/perl-1.0.1/php_perl.c:1549:12: error: 'znode' has no member named 'constant'
/software/perl-1.0.1/php_perl.c:1550:12: error: 'znode' has no member named 'literal'
/software/perl-1.0.1/php_perl.c:1550:12: error: 'znode' has no member named 'constant'
/software/perl-1.0.1/php_perl.c:1550:12: error: 'znode' has no member named 'literal'
/software/perl-1.0.1/php_perl.c:1550:12: error: 'znode' has no member named 'constant'
/software/perl-1.0.1/php_perl.c:1551:12: error: 'znode' has no member named 'literal'
/software/perl-1.0.1/php_perl.c:1551:12: error: 'znode' has no member named 'constant'
/software/perl-1.0.1/php_perl.c:1551:12: error: 'znode' has no member named 'literal'
/software/perl-1.0.1/php_perl.c:1551:12: error: 'znode' has no member named 'constant'
/software/perl-1.0.1/php_perl.c:1552:12: error: 'znode' has no member named 'literal'
/software/perl-1.0.1/php_perl.c:1552:12: error: 'znode' has no member named 'constant'
/software/perl-1.0.1/php_perl.c:1552:12: error: 'znode' has no member named 'literal'
/software/perl-1.0.1/php_perl.c:1552:12: error: 'znode' has no member named 'constant'
/software/perl-1.0.1/php_perl.c: In function 'php_perl_get_class_name':
/software/perl-1.0.1/php_perl.c:1606:5: warning: passing argument 1 of 'strcpy' discards 'const' qualifier from pointer target type [enabled by default]
/usr/include/x86_64-linux-gnu/bits/string3.h:103:1: note: expected 'char * __restrict__' but argument is of type 'const char *'
/software/perl-1.0.1/php_perl.c:1618:7: warning: passing argument 1 of 'strcpy' discards 'const' qualifier from pointer target type [enabled by default]
/usr/include/x86_64-linux-gnu/bits/string3.h:103:1: note: expected 'char * __restrict__' but argument is of type 'const char *'
/software/perl-1.0.1/php_perl.c:1619:7: warning: passing argument 1 of 'strcpy' discards 'const' qualifier from pointer target type [enabled by default]
/usr/include/x86_64-linux-gnu/bits/string3.h:103:1: note: expected 'char * __restrict__' but argument is of type 'const char *'
/software/perl-1.0.1/php_perl.c:1624:7: warning: passing argument 1 of 'strcpy' discards 'const' qualifier from pointer target type [enabled by default]
/usr/include/x86_64-linux-gnu/bits/string3.h:103:1: note: expected 'char * __restrict__' but argument is of type 'const char *'
/software/perl-1.0.1/php_perl.c:1629:7: warning: passing argument 1 of 'strcpy' discards 'const' qualifier from pointer target type [enabled by default]
/usr/include/x86_64-linux-gnu/bits/string3.h:103:1: note: expected 'char * __restrict__' but argument is of type 'const char *'
/software/perl-1.0.1/php_perl.c:1634:7: warning: passing argument 1 of 'strcpy' discards 'const' qualifier from pointer target type [enabled by default]
/usr/include/x86_64-linux-gnu/bits/string3.h:103:1: note: expected 'char * __restrict__' but argument is of type 'const char *'
/software/perl-1.0.1/php_perl.c: In function 'php_perl_clone':
/software/perl-1.0.1/php_perl.c:1716:7: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'unsigned int' [-Wformat]
/software/perl-1.0.1/php_perl.c: In function 'zm_info_perl':
/software/perl-1.0.1/php_perl.c:1893:3: warning: unknown conversion type character 'v' in format [-Wformat]
/software/perl-1.0.1/php_perl.c: In function 'zim_Perl_eval':
/software/perl-1.0.1/php_perl.c:1955:13: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type [enabled by default]
/usr/lib/perl/5.14/CORE/proto.h:3565:21: note: expected 'STRLEN * const' but argument is of type 'int *'
make: *** [php_perl.lo] Error 1
O arquivo .c corrigido que eu baixei da URL abaixo não combina com o arquivo .h, portanto, um problema de compilação. Isso significa que devo corrigi-lo por espera para que este projeto seja atualizado.
wget link
está agora quebrado