You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2006/04/19 16:42:15 UTC

DO NOT REPLY [Bug 39352] New: - jsvc links to 32-bit JVM when compiled for (64-bit) sparcv9

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39352>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39352

           Summary: jsvc links to 32-bit JVM when compiled for (64-bit)
                    sparcv9
           Product: Commons
           Version: unspecified
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Daemon
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: jeffrey.k.carroll@nasa.gov


This is a report on misbehavior of the search algorithm in native/location.c.

I am building from the source included in the binary distribution of Tomcat 5.5.16.

uname -a reports:
SunOS iempsoa1 5.10 Generic_118822-27 sun4u sparc SUNW,Sun-Fire-880

config.guess reports sparc-sun-solaris2.10. 

ls -laR runs to 4k lines of text, so I will attach the file separately if I can
figure out how. I'm not sure it's relevant, though.

configure is identifying $host_cpu as "sparc", and thus location.c finds the
jvm.cfg for the 32-bit JVM, terminating with the messages

18/04/2006 15:35:12 7724 jsvc64 debug: Using default JVM in /usr/java/jre/lib/sp
arc/client/libjvm.so
18/04/2006 15:35:12 7724 jsvc64 debug: Attemtping to load library /usr/java/jre/
lib/sparc/client/libjvm.so
18/04/2006 15:35:12 7724 jsvc64 error: Cannot dynamically link to /usr/java/jre/
lib/sparc/client/libjvm.so
18/04/2006 15:35:12 7724 jsvc64 error: ld.so.1: jsvc64: fatal: /usr/java/jre/lib
/sparc/client/libjvm.so: wrong ELF class: ELFCLASS32


I intend to fix the problem for my purposes by hacking location_jvm_cfg[], but I
know that's not a good solution for the general case.

Everything works flawlessly on the 32-bit JVM. Given that, and given the
disclaimers all over jvm.cfg, I don't know whether you'll consider this worth
fixing or not.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 39352] - jsvc links to 32-bit JVM when compiled for (64-bit) sparcv9

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39352>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39352





------- Additional Comments From jeffrey.k.carroll@nasa.gov  2006-04-19 16:09 -------
Here's the patch I made to fix the problem on my system:

[carrojk@iempsoa1 native]$ diff location.c.old location.c
52a53
>     "$JAVA_HOME/jre/lib/sparcv9/jvm.cfg", /* 64-bit JRE */
114a116
>     "$JAVA_HOME/jre/lib/sparcv9/server/libjvm.so", /* sparcv9 JRE */

I am NOT suggesting this as a patch to be applied to the distribution.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 39352] - jsvc links to 32-bit JVM when compiled for (64-bit) sparcv9

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39352>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39352





------- Additional Comments From jeffrey.k.carroll@nasa.gov  2006-04-19 14:59 -------
Created an attachment (id=18135)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18135&action=view)
output from ls -laR on the machine in question


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 39352] - [daemon] jsvc links to 32-bit JVM when compiled for (64-bit) sparcv9

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39352>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39352


ebourg@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|jsvc links to 32-bit JVM    |[daemon] jsvc links to 32-
                   |when compiled for (64-bit)  |bit JVM when compiled for
                   |sparcv9                     |(64-bit) sparcv9




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org