Mantis - Quercus
Viewing Issue Advanced Details
2139 minor always 11-04-07 15:57 11-05-07 18:46
koreth  
ferg  
normal  
closed 3.1.4  
fixed  
none    
none 3.1.4  
0002139: Compile fails with undefined symbol
Getting a few similar instances of this error:

GEN: com.caucho.quercus.expr.ProRequiredExpr$1
[14:43:45.233] Compiling _quercus/_Users/_sgrimm/_www/_lib/_elections__php.java
[14:43:45.837] com.caucho.java.JavaCompileException: /Users/sgrimm/www/html/WEB-INF/work/_quercus/_Users/_sgrimm/_www/_lib/_elections__php.java:660: cannot find symbol
[14:43:45.837] symbol : variable ook
[14:43:45.837] location: class _quercus._Users._sgrimm._www._lib._elections__php.fun_candidate_dbget_info
[14:43:45.837] v_parties = fun_political_party_get_names.call(env, ook.eval(env)).copyReturn();
[14:43:45.837] ^
[14:43:45.837] 1 error
[14:43:45.837] at com.caucho.java.InternalCompiler.executeInt(InternalCompiler.java:220)
[14:43:45.837] at com.caucho.java.InternalCompiler.compileInt(InternalCompiler.java:84)
[14:43:45.837] at com.caucho.java.AbstractJavaCompiler.run(AbstractJavaCompiler.java:98)
[14:43:45.837] at java.lang.Thread.run(Thread.java:613)

The line of code in question is totally innocuous:

  $parties = political_party_get_names();

In general the compiler is working; several hundred PHP files compile successfully before it gets to this one and bombs out.
I am running a locally built copy of most of Resin (latest svn version as of noon November 4 with a couple local hacks, nothing in the area of PHP parsing) with the pro.jar from the November 3 snapshot.

Notes
(0002449)
nam   
11-05-07 18:09   
Can you provide us with a copy or the offending subset of elections.php? That would help us immensely to track down the issue.
(0002450)
ferg   
11-05-07 18:46   
php/376e