Bug 57725 - build jikes to support encoding
Summary: build jikes to support encoding
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Archie Cobbs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-08 02:00 UTC by Palle Girgensohn
Modified: 2003-11-17 20:19 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (813 bytes, patch)
2003-10-08 02:00 UTC, Palle Girgensohn
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Palle Girgensohn 2003-10-08 02:00:31 UTC
This patch makes jikes build with encoding support.
Encoding support is necessary to use jikes at least with apache-tomcat-4.1.27.
Comment 1 Archie Cobbs freebsd_committer freebsd_triage 2003-10-08 04:29:45 UTC
Responsible Changed
From-To: freebsd-ports-bugs->archie

Port maintainer.
Comment 2 Archie Cobbs 2003-10-08 04:32:06 UTC
Palle Girgensohn wrote:
> This patch makes jikes build with encoding support.
> Encoding support is necessary to use jikes at least with apache-tomcat-4.1.27.

Last time I checked, doing this caused jikes to randomly segfault.

Has anything changed to fix that?

Cheers,
-Archie

__________________________________________________________________________
Archie Cobbs     *    Halloo Communications    *     http://www.halloo.com
Comment 3 Palle Girgensohn 2003-10-08 09:37:43 UTC
I haven't had this problem, not yet anyway, but I can do some testing and 
share the results.

Regards,
Palle

--On tisdag, oktober 07, 2003 20.32.06 -0700 Archie Cobbs 
<archie@dellroad.org> wrote:

> Palle Girgensohn wrote:
>> This patch makes jikes build with encoding support.
>> Encoding support is necessary to use jikes at least with
>> apache-tomcat-4.1.27.
>
> Last time I checked, doing this caused jikes to randomly segfault.
>
> Has anything changed to fix that?
>
> Cheers,
> -Archie
>
> __________________________________________________________________________
> Archie Cobbs     *    Halloo Communications    *     http://www.halloo.com
Comment 4 Palle Girgensohn 2003-10-09 16:21:40 UTC
It seems to work just fine. I grabbed the class-library tar ball, unpacked 
it and ran jikes on all the files. No problem. Jikes is linked with 
libiconv-1.9.1_1 (latest). There are comments about iconv in the TODO file, 
btw, that indicated there has been trouble. As I said, it seems to work 
fine now.

Regards,
Palle

rambutan:sablevm-class-library-1.0.9$ time find . -name \*.java -print0 | 
xargs -0 jikes -g -d classes -bootclasspath src:classes -classpath 
src:classes -sourcepath src

Issued 1 lexical warning in 
"src/gnu/java/rmi/registry/RegistryImpl_Stub.java":

    60.   private static java.lang.reflect.Method $method_bind_0;
                                                  ^------------^
*** Lexical Warning: The use of "$" in an identifier, while legal, is 
strongly discouraged, since it can conflict with compiler-generated names. 
If you are trying to access a nested type, use "." instead of "$".

real    0m7.286s
user    0m3.489s
sys     0m0.474s
rambutan:sablevm-class-library-1.0.9$ echo $?
0
rambutan:sablevm-class-library-1.0.9$ find classes -type f -name \*class | 
wc
    1928    1928   88000
rambutan:sablevm-class-library-1.0.9$ find src -type f -name \*java | wc
    1628    1628   64158
rambutan:sablevm-class-library-1.0.9$ time find . -name \*.java -print0 | 
xargs -0 jikes -encoding ISO-8859-1 -g -d classes -bootclasspath 
src:classes -classpath src:classes -sourcepath src

Issued 1 lexical warning in 
"src/gnu/java/rmi/registry/RegistryImpl_Stub.java":

    60.   private static java.lang.reflect.Method $method_bind_0;
                                                  ^------------^
*** Lexical Warning: The use of "$" in an identifier, while legal, is 
strongly discouraged, since it can conflict with compiler-generated names. 
If you are trying to access a nested type, use "." instead of "$".

real    0m8.596s
user    0m4.459s
sys     0m0.539s
rambutan:sablevm-class-library-1.0.9$ echo $?
0
rambutan:sablevm-class-library-1.0.9$


--On onsdag, oktober 08, 2003 09.04.09 -0700 Archie Cobbs 
<archie@dellroad.org> wrote:

> Palle Girgensohn wrote:
>> I haven't had this problem, not yet anyway, but I can do some testing
>> and  share the results.
>
> Thanks, that would be great... for example, I found that compiling
> the entire class library for SableVM (a free Java VM) - aka the
> "classpath" project - would trigger this problem.
>
> Classpath is at http://www.gnu.org/software/classpath
>
> Cheers,
> -Archie
>
> __________________________________________________________________________
> Archie Cobbs     *    Halloo Communications    *     http://www.halloo.com
Comment 5 Archie Cobbs freebsd_committer freebsd_triage 2003-11-17 20:18:46 UTC
State Changed
From-To: open->closed

Patch applied.. thanks!