|
From: <php...@li...> - 2007-12-14 16:02:40
|
Hi Jost:
It's me again. Because I doesn't find any solution after do the same =
again and again I decide to compile a DLL for Win32 and PHP 5.2.5. =
Following the instructions in the README file I do this:
BRIDGE_VERSION=3D"'cat ./VERSION'"
PHP_JAVA=3D""
COND_GCJ=3D0
EXTENSION_NAME=3DJAVA
PHP_JAVA_BIN=3D"javaw"
EXTENSION_DIR=3D"D:/Server/PHP/ext" -> Here is where my .dll reside
PHP=3D"D:/Server/PHP" -> Here is my PHP=20
=20
SYS_INCLUDE=3D"C:/MinGW/include" -> Here ir where MinGW was installed
GCC=3Dgcc
for i in init_cfg.c init_cfg.h; do=20
sed "s*@PHP_JAVA@*${PHP_JAVA}*
s*@COND_GCJ@*${COND_GCJ}*
s*@PHP_JAVA_BIN@*${PHP_JAVA_BIN}*
s*@EXTENSION@*${EXTENSION_NAME}*
s*@BRIDGE_VERSION@*${BRIDGE_VERSION}*" \
<./${i}.in >./${i}
done
$GCC -w -I$SYS_INCLUDE -I. -I$PHP -I$PHP/main -I$PHP/Zend -I$PHP/TSRM =
-D"TSRM_EXPORTS" -D"LIBZEND_EXPORTS" -D"ZTS" -D"_MBCS" -DCOMPILE_DL_JAVA =
-DCFG_JAVA_SOCKET_INET -DEXTENSION_DIR=3D\"$EXTENSION_DIR\" -c *.c
i386-pc-mingw32-dllwrap --export-all-symbols -k *.o -L$PHP -lphp5ts =
-lws2_32 -o php_java.dll
Then this generate errors, see below:
Error:
$ for i in C:/init_cfg.c C:/init_cfg.h; do=20
> sed "s*@PHP_JAVA@*${PHP_JAVA}*
> s*@COND_GCJ@*${COND_GCJ}*
> s*@PHP_JAVA_BIN@*${PHP_JAVA_BIN}*
> s*@EXTENSION@*${EXTENSION_NAME}*
> s*@BRIDGE_VERSION@*${BRIDGE_VERSION}*" \
> <./${i}.in >./${i}
> done
sh: ./init_cfg.c.in: No such file or directory
sh: ./init_cfg.h.in: No such file or directory
$ $GCC -w -I$SYS_INCLUDE -I. -I$PHP -I$PHP/main -I$PHP/Zend -I$PHP/TSRM =
-D"TSRM_EXPORTS" -D"LIBZEND_EXPORTS" -D"ZTS" -D"_MBC
S" -DCOMPILE_DL_JAVA -DCFG_JAVA_SOCKET_INET =
-DEXTENSION_DIR=3D\"$EXTENSION_DIR\" -c *.c
gcc.exe: *.c: Invalid argument
gcc.exe: no input files
$ i386-pc-mingw32-dllwrap --export-all-symbols -k *.o -L$PHP -lphp5ts =
-lws2_32 -o php_java.dll
sh: i386-pc-mingw32-dllwrap: command not found
What I'm doing wrong?
Cheers and thanks again
Ing. Reynier P=E9rez Mira
Universidad de las Ciencias Inform=E1ticas=20
> -----Mensaje original-----
> De: php...@li... =
[mailto:php-java-
> bri...@li...] En nombre de =
php-java-bridge-
> us...@li...
> Enviado el: jueves, 13 de diciembre de 2007 04:14 pm
> Para: php...@li...
> Asunto: Re: [Php-java-bridge-users] Why ...
>=20
> Hi
>=20
> > Jost, when I do this and following every step in the Installation =
Guide
> if I do a phpinfo() I
>=20
> hrm, there is no Java related information in pages generated by =
phpinfo().
>=20
>=20
> > the Apache Logs i have the same error every time I restart Apache. =
So
> ... what can I do for
>=20
> Just remove it. Again, please see our FAQ section "error in the =
Apache..."
> for details.
>=20
>=20
> Regards,
> Jost Boekemeier
>=20
>=20
>=20
> __________________________________ Ihre erste Baustelle?
> Wissenswertes f=FCr Bastler und Hobby Handwerker. www.yahoo.de/clever
>=20
> =
-------------------------------------------------------------------------=
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> =
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl=
a
> ce
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|