From: <php...@li...> - 2006-12-05 15:05:16
|
Thanks Jon. I have tried factoring the cmd into parts. phpize seems to work. the configure command produces many very similar blocks like this: cd . && /bin/sh ./config.status Makefile depfiles config.status: creating Makefile config.status: executing depfiles commands make[2]: *** No rule to make target `ltmain.sh'. Stop. checking for ANSI C header files... (cached) yes checking.... . . with the checking statements continuing. Is this a problem? The command completes with no summary error. the 3rd and final command, make, quickly bails with the error on its first compile attempt (java.c): /bin/sh /opt/local/etc/php-java-bridge-3.0.7a/libtool --mode=compile gcc -DEXTENSION_DIR="\"/usr/local/php5/lib/php/extensions/no-debug- non-zts-20060613\"" -I. -I/opt/local/etc/php-java-bridge-3.0.7a - DPHP_ATOM_INC -I/opt/local/etc/php-java-bridge-3.0.7a/include -I/opt/ local/etc/php-java-bridge-3.0.7a/main -I/opt/local/etc/php-java- bridge-3.0.7a -I/usr/local/php5/include/php -I/usr/local/php5/include/ php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/ php/Zend -I/usr/local/php5/include/php/ext -I/usr/local/php5/include/ php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/local/etc/php- java-bridge-3.0.7a/java.c -o java.lo gcc -DEXTENSION_DIR=\"/usr/local/php5/lib/php/extensions/no-debug-non- zts-20060613\" -I. -I/opt/local/etc/php-java-bridge-3.0.7a - DPHP_ATOM_INC -I/opt/local/etc/php-java-bridge-3.0.7a/include -I/opt/ local/etc/php-java-bridge-3.0.7a/main -I/opt/local/etc/php-java- bridge-3.0.7a -I/usr/local/php5/include/php -I/usr/local/php5/include/ php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/ php/Zend -I/usr/local/php5/include/php/ext -I/usr/local/php5/include/ php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/local/etc/php-java- bridge-3.0.7a/java.c -fno-common -DPIC -o .libs/java.o /opt/local/etc/php-java-bridge-3.0.7a/java.c: In function 'zm_startup_java': /opt/local/etc/php-java-bridge-3.0.7a/java.c:1965: error: 'zif_java___call' undeclared (first use in this function) /opt/local/etc/php-java-bridge-3.0.7a/java.c:1965: error: (Each undeclared identifier is reported only once /opt/local/etc/php-java-bridge-3.0.7a/java.c:1965: error: for each function it appears in.) /opt/local/etc/php-java-bridge-3.0.7a/java.c:1966: error: 'zif_java___get' undeclared (first use in this function) /opt/local/etc/php-java-bridge-3.0.7a/java.c:1967: error: 'zif_java___set' undeclared (first use in this function) /opt/local/etc/php-java-bridge-3.0.7a/java.c:1977: warning: assignment from incompatible pointer type /opt/local/etc/php-java-bridge-3.0.7a/java.c:1981: warning: assignment from incompatible pointer type make: *** [java.lo] Error 1 Any notion of which include it is missing? Dennis On 4-Dec-06, at 4:08 PM, php...@li... wrote: > Hi, > > I would suggest running all of the build statements separately so > you can better dubug your build. Here are my build steps from Mac > OS X 10.4.8: > > 1) www:/www/php-java-bridge-3.1.8 jkoerber$ /usr/local/php5/bin/ > phpize (must run phpize from your active php5 directory) > 2) Set up the env variable to tell the build where Java is on the > Mac: www:/www/php-java-bridge-3.1.8 jkoerber$export JAVA_HOME=/ > System/Library/Frameworks/JavaVM.framework/Home > 3) www:/www/php-java-bridge-3.1.8 jkoerber$ ./configure --with-java= > $JAVA_HOME > 4) www:/www/php-java-bridge-3.1.8 jkoerber$ make > 5) www:/www/php-java-bridge-3.1.8 jkoerber$ sudo sh install.sh > (instead of make install) > > This seems to work well for me on Mac OSX Tiger client and on Server. > > Good luck. > > Jon Koerber > > > On Dec 4, 2006, at 12:55 PM, php-java-bridge- > us...@li... wrote: > >> I am attempting to build 3.0.7a from source on Mac OS X (10.4.8) >> and am following closely Clark Freifeld's post from June-- >> >> "Installing php-java-bridge on Mac OS X (10.4.6) G5 PPC, from >> source." >> >> I am getting a gcc error when I execute the >> phpize, configure etc command: >> >> phpize && ./configure --with-java=$JAVA_HOME && make >> >> namely >> >> /opt/local/etc/php-java-bridge-3.0.7a/java.c: In function >> 'zm_startup_java': >> /opt/local/etc/php-java-bridge-3.0.7a/java.c:1965: error: >> 'zif_java___call' undeclared (first use in this function) >> >> java.c is the first file it attempts to compile. >> >> Perhaps Clark or someone who has done this could >> make a suggestion. >> >> >> --------------------------------------------------------------------- >> ---- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys - and earn >> cash >> http://www.techsay.com/default.php? >> page=join.php&p=sourceforge&CID=DEVDEV_______________________________ >> ________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV________________________________ > _______________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |