Re: [PHP-DEV] sapi/servlet configuration error
Sebastian Bergmann wrote: Ray Hunter wrote: Does anyone have an idea about what i need to do to fix this? I just tested sapi/servlet with Tomcat 4.1.12 on Windows and the segfaults I experienced prior to the Tony's patch are still there: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0xC34AB15 Function=zend_startup_module+0xD5 Library=E:\home\php\php4\Release_TS_inline\php4ts.dll Current Java thread: at net.php.servlet.startup(Native Method) at net.php.servlet.init(servlet.java:156) I have the same problem under Linux. Akos -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] sapi/servlet configuration error
I can even get it to compile on linux at all. I keep getting errors with java.c On Thu, 2002-12-05 at 23:36, Sebastian Bergmann wrote: Ray Hunter wrote: Does anyone have an idea about what i need to do to fix this? I just tested sapi/servlet with Tomcat 4.1.12 on Windows and the segfaults I experienced prior to the Tony's patch are still there: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0xC34AB15 Function=zend_startup_module+0xD5 Library=E:\home\php\php4\Release_TS_inline\php4ts.dll Current Java thread: at net.php.servlet.startup(Native Method) at net.php.servlet.init(servlet.java:156) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:924) - locked 031B4BF8 (a org.apache.catalina.core.StandardWrapper) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658) - locked 031B4BF8 (a org.apache.catalina.core.StandardWrapper) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) Dynamic libraries: 0x0040 - 0x00406000 c:\programme\java\bin\java.exe 0x7788 - 0x77901000 C:\WINNT\System32\ntdll.dll 0x77DA - 0x77DFD000 C:\WINNT\system32\ADVAPI32.dll 0x77E7 - 0x77F33000 C:\WINNT\system32\KERNEL32.DLL 0x77D2 - 0x77D91000 C:\WINNT\system32\RPCRT4.DLL 0x7800 - 0x78046000 C:\WINNT\system32\MSVCRT.dll 0x6D33 - 0x6D45C000 c:\programme\java\jre\bin\client\jvm.dll 0x77E0 - 0x77E65000 C:\WINNT\system32\USER32.dll 0x77F4 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL 0x7754 - 0x77571000 C:\WINNT\System32\WINMM.dll 0x6D1D - 0x6D1D7000 c:\programme\java\jre\bin\hpi.dll 0x6D30 - 0x6D30D000 c:\programme\java\jre\bin\verify.dll 0x6D21 - 0x6D229000 c:\programme\java\jre\bin\java.dll 0x6D32 - 0x6D32D000 c:\programme\java\jre\bin\zip.dll 0x6D2D - 0x6D2DE000 C:\Programme\Java\jre\bin\net.dll 0x74FC - 0x74FC9000 C:\WINNT\System32\WSOCK32.dll 0x74FA - 0x74FB3000 C:\WINNT\System32\WS2_32.DLL 0x74F9 - 0x74F98000 C:\WINNT\System32\WS2HELP.DLL 0x7783 - 0x7783C000 C:\WINNT\System32\rnr20.dll 0x7797 - 0x77994000 C:\WINNT\System32\DNSAPI.DLL 0x7731 - 0x77323000 C:\WINNT\System32\iphlpapi.dll 0x774F - 0x774F5000 C:\WINNT\System32\ICMP.DLL 0x772F -
[PHP-DEV] sapi/servlet configuration error
I am trying to configure php with the servlet and i am getting the following errors: /home/rhunter/src/php4/sapi/servlet/servlet.c: In function `Java_net_php_servlet_startup': /home/rhunter/src/php4/sapi/servlet/servlet.c:261: warning: passing arg 2 of `php_module_startup' from incompatible pointer type make: *** No rule to make target `sapi/servlet/java.c', needed by `sapi/servlet/java.lo'. Stop. Additional info: /bin/sh libtool --silent --mode=compile gcc -Isapi/servlet/ -I/home/rhunter/src/php4/sapi/servlet/ -DPHP_ATOM_INC -I/home/rhunter/src/php4/include -I/home/rhunter/src/php4/main -I/home/rhunter/src/php4 -I/home/rhunter/src/php4/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/mysql -I/usr/local/sablot/include -I/usr/local/j2sdk1.4.0_03/include #include 4 jni.h jni_md.h -D_REENTRANT -I/home/rhunter/src/php4/TSRM -g -O2 -pthread -DZTS -prefer-pic -c /home/rhunter/src/php4/sapi/servlet/servlet.c -o sapi/servlet/servlet.lo System:Redhat 7.3 PHP: cvs Java: jsdk 1.4.0_03 Servlet: Tomcat 4.1.12 Does anyone have an idea about what i need to do to fix this? -- Ray Hunter email: [EMAIL PROTECTED] www:http://venticon.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] sapi/servlet configuration error
On Thu, 5 Dec 2002, Ray Hunter wrote: make: *** No rule to make target `sapi/servlet/java.c', needed by `sapi/servlet/java.lo'. Stop. It looks like the sapi/servlet/Makefile.frag is not being added to your Makefile. Can you verify that there is no line in your main Makefile that starts with sapi/servlet/java.c : ? Perhaps you could try changing the line (from sapi/servlet/config.m4) PHP_ADD_MAKEFILE_FRAGMENT(sapi/servlet/Makefile.frag) to just PHP_ADD_MAKEFILE_FRAGMENT In case $ext_srcdir is something other than 'sapi/servlet' for some reason. -Tony -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] sapi/servlet configuration error
This is the line in my Makefile: sapi/servlet/java.lo: sapi/servlet/java.c $(LIBTOOL) --mode=compile $(CC) -Isapi/servlet/ -I/home/rhunter/src/php4/sapi/servlet/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -prefer-pic -c sapi/servlet/java.c -o sapi/servlet/java.lo Is that correct? On Thu, 2002-12-05 at 12:36, Tony J. White wrote: On Thu, 5 Dec 2002, Ray Hunter wrote: make: *** No rule to make target `sapi/servlet/java.c', needed by `sapi/servlet/java.lo'. Stop. It looks like the sapi/servlet/Makefile.frag is not being added to your Makefile. Can you verify that there is no line in your main Makefile that starts with sapi/servlet/java.c : ? Perhaps you could try changing the line (from sapi/servlet/config.m4) PHP_ADD_MAKEFILE_FRAGMENT(sapi/servlet/Makefile.frag) to just PHP_ADD_MAKEFILE_FRAGMENT In case $ext_srcdir is something other than 'sapi/servlet' for some reason. -Tony -- Ray Hunter email: [EMAIL PROTECTED] www:http://venticon.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] sapi/servlet configuration error
On Thu, 5 Dec 2002, Ray Hunter wrote: This is the line in my Makefile: sapi/servlet/java.lo: sapi/servlet/java.c $(LIBTOOL) --mode=compile $(CC) -Isapi/servlet/ -I/home/rhunter/src/php4/sapi/servlet/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -prefer-pic -c sapi/servlet/java.c -o sapi/servlet/java.lo Is that correct? That chunk is added by the macro PHP_ADD_SOURCES() in sapi/servlet/config.m4. If there is no line that _starts_ with 'sapi/servlet/java.c :', then the sapi/servlet/Makefile.frag is not being included properly. If it's not, try changing the PHP_ADD_MAKEFILE_FRAGMENT like I indicated, then run: make clean rm -r configure autom4te.cache ./buildconf ./configure --with... make You will need to have installed the required packages to do this though (e.g. automake, autoconfig, etc. ) -Tony -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] sapi/servlet configuration error
Ray Hunter wrote: Does anyone have an idea about what i need to do to fix this? I just tested sapi/servlet with Tomcat 4.1.12 on Windows and the segfaults I experienced prior to the Tony's patch are still there: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0xC34AB15 Function=zend_startup_module+0xD5 Library=E:\home\php\php4\Release_TS_inline\php4ts.dll Current Java thread: at net.php.servlet.startup(Native Method) at net.php.servlet.init(servlet.java:156) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:924) - locked 031B4BF8 (a org.apache.catalina.core.StandardWrapper) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658) - locked 031B4BF8 (a org.apache.catalina.core.StandardWrapper) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) Dynamic libraries: 0x0040 - 0x00406000 c:\programme\java\bin\java.exe 0x7788 - 0x77901000 C:\WINNT\System32\ntdll.dll 0x77DA - 0x77DFD000 C:\WINNT\system32\ADVAPI32.dll 0x77E7 - 0x77F33000 C:\WINNT\system32\KERNEL32.DLL 0x77D2 - 0x77D91000 C:\WINNT\system32\RPCRT4.DLL 0x7800 - 0x78046000 C:\WINNT\system32\MSVCRT.dll 0x6D33 - 0x6D45C000 c:\programme\java\jre\bin\client\jvm.dll 0x77E0 - 0x77E65000 C:\WINNT\system32\USER32.dll 0x77F4 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL 0x7754 - 0x77571000 C:\WINNT\System32\WINMM.dll 0x6D1D - 0x6D1D7000 c:\programme\java\jre\bin\hpi.dll 0x6D30 - 0x6D30D000 c:\programme\java\jre\bin\verify.dll 0x6D21 - 0x6D229000 c:\programme\java\jre\bin\java.dll 0x6D32 - 0x6D32D000 c:\programme\java\jre\bin\zip.dll 0x6D2D - 0x6D2DE000 C:\Programme\Java\jre\bin\net.dll 0x74FC - 0x74FC9000 C:\WINNT\System32\WSOCK32.dll 0x74FA - 0x74FB3000 C:\WINNT\System32\WS2_32.DLL 0x74F9 - 0x74F98000 C:\WINNT\System32\WS2HELP.DLL 0x7783 - 0x7783C000 C:\WINNT\System32\rnr20.dll 0x7797 - 0x77994000 C:\WINNT\System32\DNSAPI.DLL 0x7731 - 0x77323000 C:\WINNT\System32\iphlpapi.dll 0x774F - 0x774F5000 C:\WINNT\System32\ICMP.DLL 0x772F - 0x77307000 C:\WINNT\System32\MPRAPI.DLL 0x750C - 0x750D C:\WINNT\System32\SAMLIB.DLL 0x750E - 0x7512F000