[TYPO3-50-general] JavaBridge and PHP6

Andreas Förthner Andreas.Foerthner at netlogix.de
Mon Jun 4 20:11:33 CEST 2007


Hi again,

I am a step further on. Now the JavaBridge starts up, at least phpinfo() 
tells me so. But if I try to run the Jackrabbit tests I get a zero 
response in my browser (that means nothing is returned and squid sends 
an error) and in my syslog there is the following php error:

PHP Warning:  Wrong parameter count for Java:: 
                                                    __construct() in 
/var/www/Packages/phpCRJackrabbit/Classes/T3P_phpCRJackrabbit_S 
 
impleCredentials.php on line 45

Does anybody know if this is a problem of the php6 compilation or the 
javabridge oder the php code?

I have no idea why this doesn't work.

Thanks to all!

Greets Andi


Andreas Förthner schrieb:
> Hi all,
> 
> as Robert raised the php version for TYPO3 5.0 I am now on the run to 
> compile php6. That worked fine so far, but the PHP-Java-Bridge won't 
> compile.
> 
> I used the phpize of the php6 and ran ./configure 
> --with-php-config=/usr/local/php6/bin/php-config --with-java=/usr/
> 
> but make runs in the following error.
> 
> /usr/src/php-java-bridge-4.0.8a/php_java_snprintf.c: In function 
> 'java_conv_fp':
> /usr/src/php-java-bridge-4.0.8a/php_java_snprintf.c:221: warning: 
> incompatible implicit declaration of built-in function 'strlen'
> /usr/src/php-java-bridge-4.0.8a/php_java_snprintf.c:222: warning: 
> incompatible implicit declaration of built-in function 'memcpy'
> /usr/src/php-java-bridge-4.0.8a/php_java_snprintf.c: In function 
> 'java_cvt':
> /usr/src/php-java-bridge-4.0.8a/php_java_snprintf.c:357: warning: 
> incompatible implicit declaration of built-in function 'memmove'
> /usr/src/php-java-bridge-4.0.8a/php_java_snprintf.c: In function 
> 'format_converter':
> /usr/src/php-java-bridge-4.0.8a/php_java_snprintf.c:934: warning: 
> incompatible implicit declaration of built-in function 'strlen'
> /usr/src/php-java-bridge-4.0.8a/php_java_snprintf.c:1023: warning: 
> incompatible implicit declaration of built-in function 'strlen'
> /usr/src/php-java-bridge-4.0.8a/php_java_snprintf.c:1025: warning: 
> incompatible implicit declaration of built-in function 'strchr'
> /usr/src/php-java-bridge-4.0.8a/php_java_snprintf.c:1062: error: cast 
> specifies function type
> /usr/src/php-java-bridge-4.0.8a/php_java_snprintf.c: In function 
> 'strx_printv':
> /usr/src/php-java-bridge-4.0.8a/php_java_snprintf.c:1156: error: array 
> subscript is not an integer
> make: *** [php_java_snprintf.lo] Error 1
> 
> 
> Does anybody know what's going wrong there? It compiled wonderful with 
> php5 and the same versions of autotools. Is it a gcc problem? I used gcc 
> version 4.1.1. On a debian etch.
> 
> Would be great if someone could help me.
> 
> Greets Andi
> 
> PS.: The old compiled java.so doesn't work ;-)


More information about the TYPO3-project-5_0-general mailing list