Php-java-bridge Installation Issues

Source: Internet
Author: User
Tags scalar zts
PHP version 5.4.27
JDK version 1.6.0_25
Php-java-bridge version 5.5.4.1

Make prompt: Make: * * * [Java.lo] Error 1

The JDK dropped from 1.8 to 1.6, Php-java-bridge from 5.4.4.1 to 5.4.4.2 to 5.5.4.1, all the same.

Do not know how to troubleshoot this problem, online search for a long time, also did not find a solution ...

test@iz23mo1jjurz:/alidata/server/javabridge/php-java-bridge-5.5.4.1# make/bin/bash/alidata/server/javabridge/ Php-java-bridge-5.5.4.1/libtool--mode=compile cc-dextension_dir= "\"/alidata/server/php/lib/php/extensions/ No-debug-non-zts-20100525\ ""-I.-i/alidata/server/javabridge/php-java-bridge-5.5.4.1-dphp_atom_inc-i/alidata/ server/javabridge/php-java-bridge-5.5.4.1/include-i/alidata/server/javabridge/php-java-bridge-5.5.4.1/main-i/ alidata/server/javabridge/php-java-bridge-5.5.4.1-i/alidata/server/php/include/php-i/alidata/server/php/ include/php/main-i/alidata/server/php/include/php/tsrm-i/alidata/server/php/include/php/zend-i/alidata/server/ php/include/php/ext-i/alidata/server/php/include/php/ext/date/lib-i/alidata/server/jdk/java/include-i/alidata/ Server/jdk/java/include/linux-d_reentrant-dhave_config_h-g-o2-pthread-c/alidata/server/javabridge/php-java-bri Dge-5.5.4.1/java.c-o java.lo mkdir. Libs cc-dextension_dir=\ "/alidata/server/php/lib/php/extensions/no-Debug-non-zts-20100525\ "-I.-i/alidata/server/javabridge/php-java-bridge-5.5.4.1-dphp_atom_inc-i/alidata/server /javabridge/php-java-bridge-5.5.4.1/include-i/alidata/server/javabridge/php-java-bridge-5.5.4.1/main-i/alidata /server/javabridge/php-java-bridge-5.5.4.1-i/alidata/server/php/include/php-i/alidata/server/php/include/php/ main-i/alidata/server/php/include/php/tsrm-i/alidata/server/php/include/php/zend-i/alidata/server/php/include/ php/ext-i/alidata/server/php/include/php/ext/date/lib-i/alidata/server/jdk/java/include-i/alidata/server/jdk/ Java/include/linux-d_reentrant-dhave_config_h-g-o2-pthread-c/alidata/server/javabridge/php-java-bridge-5.5.4.1 /java.c-fpic-dpic-o. Libs/java.o/alidata/server/javabridge/php-java-bridge-5.5.4.1/java.c:120:1: Error:unknown Type name ' Function_entry '/alidata/server/javabridge/php-java-bridge-5.5.4.1/java.c:121:3: Warning:braces around scalar initializer [enabled by default]/alidata/server/javabridge/php-java-bridge-5.5.4.1/jAva.c:121:3: Warning: (near initialization for ' java_functions[0] ') [enabled by default]/alidata/server/javabridge/ Php-java-bridge-5.5.4.1/java.c:121:3: Warning:initialization makes integer from pointer without a cast [enabled by Defaul T]/alidata/server/javabridge/php-java-bridge-5.5.4.1/java.c:121:3: Warning: (near initialization for ' Java_ FUNCTIONS[0] [enabled by Default]/alidata/server/javabridge/php-java-bridge-5.5.4.1/java.c:121:3: Error: initializer element is not computable at load Time/alidata/server/javabridge/php-java-bridge-5.5.4.1/java.c:121:3: Error: (near initialization for ' java_functions[0] ')/alidata/server/javabridge/php-java-bridge-5.5.4.1/java.c : 121:3: warning:excess elements in scalar initializer [enabled by default]/alidata/server/javabridge/ Php-java-bridge-5.5.4.1/java.c:121:3: Warning: (near initialization for ' java_functions[0] ') [enabled by default]/ Alidata/server/javabridge/php-java-bridge-5.5.4.1/java.c:121:3: warning:excess elements in scalar initializeR [enabled by Default]/alidata/server/javabridge/php-java-bridge-5.5.4.1/java.c:121:3: Warning: (near initialization For ' java_functions[0] ') [Enabled by Default]/alidata/server/javabridge/php-java-bridge-5.5.4.1/java.c:121:3: Warning:excess elements in scalar initializer [enabled by DEFAULT]/ALIDATA/SERVER/JAVABRIDGE/PHP-JAVA-BRIDGE-5.5.4.1/ Java.c:121:3: Warning: (near initialization for ' java_functions[0] ') [enabled by default]/alidata/server/javabridge/ Php-java-bridge-5.5.4.1/java.c:121:3: warning:excess elements in scalar initializer [enabled by default]/alidata/ Server/javabridge/php-java-bridge-5.5.4.1/java.c:121:3: Warning: (near initialization for ' java_functions[0] ') [ Enabled by Default]/alidata/server/javabridge/php-java-bridge-5.5.4.1/java.c:122:3: warning:braces around scalar initializer [enabled by Default]/alidata/server/javabridge/php-java-bridge-5.5.4.1/java.c:122:3: Warning: (near Initialization for ' java_functions[1] ') [enabled by default]/alidata/server/javabridge/Php-java-bridge-5.5.4.1/java.c:122:3: Warning:initialization makes integer from pointer without a cast [enabled by Defaul T]/alidata/server/javabridge/php-java-bridge-5.5.4.1/java.c:122:3: Warning: (near initialization for ' Java_ FUNCTIONS[1] [enabled by Default]/alidata/server/javabridge/php-java-bridge-5.5.4.1/java.c:122:3: warning:excess elements in scalar initializer [enabled by Default]/alidata/server/javabridge/php-java-bridge-5.5.4.1/java.c:122:3: Warning: (near initialization for ' java_functions[1] ') [enabled by default]/alidata/server/javabridge/ Php-java-bridge-5.5.4.1/java.c:122:3: warning:excess elements in scalar initializer [enabled by default]/alidata/ Server/javabridge/php-java-bridge-5.5.4.1/java.c:122:3: Warning: (near initialization for ' java_functions[1] ') [ Enabled by Default]/alidata/server/javabridge/php-java-bridge-5.5.4.1/java.c:128:3: Warning:initialization from Incompatible pointer type [enabled by default]/alidata/server/javabridge/php-java-bridge-5.5.4.1/jAva.c:128:3: Warning: (near initialization for ' java_module_entry.functions ') [enabled by Default]make: * * * [Java.lo] Err or 1


Reply to discussion (solution)

It's settled.
Edit JAVA.C This file
Change Function_entry to Zend_function_entry
Make through

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.