You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Clemens Eisserer <li...@gmail.com> on 2005/08/11 03:40:37 UTC
Compile error with GCJ
Hello,
I am trying to compile Jetty-5.1 with gcj which also has a dependency
to Log4j, however I am not able to compile Log4J with GCJ when using
the "old" ABI which I am forced to use.
This is what I get:
org/apache/commons/logging/impl/Log4JCategoryLog.java: In class
`org.apache.commons.logging.impl.Log4JCategoryLog':
org/apache/commons/logging/impl/Log4JCategoryLog.java: In constructor
`(java.lang.String)':
org/apache/commons/logging/impl/Log4JCategoryLog.java:91: Fehler:
cannot find file for class org.apache.log4j.Category
org/apache/commons/logging/impl/Log4JCategoryLog.java:104: Fehler:
cannot find file for class org.apache.log4j.Category
org/apache/commons/logging/impl/Log4JCategoryLog.java:104: durch
frühere Fehlerverwirrt, Abbruch
and in fact I am not able to fins a class Category - so is the jar
incomplete which is distributed? Are there any tricks to fool gcj to
compile Log4J properly?
Thank you in advance, lg Clemens
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Compile error with GCJ
Posted by Curt Arnold <ca...@apache.org>.
On Aug 10, 2005, at 10:20 PM, Clemens Eisserer wrote:
> Hi Curt,
>
>
>> It appears that your compilation failure is in Jakarta Commons
>> Logging (http://jakarta.apache.org/commons) and not log4j. Jakarta
>> Commons Logging would reference org.apache.log4j.Category but would
>> not provide it and the messages appear to be consistent with not
>> having log4j on your compile path.
>>
>
> Thank for clearing this up ... seems I completly misunderstood some
> things. But it seems I know get how projects are related.
>
> Hmm, it seems I am out of luck, when I try to just compile log4j to
> shared library GCJ seems to be fairly angry:
>
> [ce@lukihost PalmeNG]$ gcj log4j-1.2.11.jar -shared -o log4j.so
> org/apache/log4j/AsyncAppender.java:0: Fehler: non-static method
> 'org.apache.log4j.AsyncAppender.close()' overrides static method
> org/apache/log4j/AsyncAppender.java:0: Fehler: non-static method
> 'org.apache.log4j.AsyncAppender.requiresLayout()' overrides static
> method
My initial reaction is that the "Error: non-static..." messages are
bogus.
> org/apache/log4j/chainsaw/LoadXMLAction.java: In class
> `org.apache.log4j.chainsaw.LoadXMLAction':
> org/apache/log4j/chainsaw/LoadXMLAction.java: In constructor
> `(javax.swing.JFrame,org.apache.log4j.chainsaw.MyTableModel)':
> org/apache/log4j/chainsaw/LoadXMLAction.java:52: Fehler: cannot find
> file for class javax.xml.parsers.SAXParserFactory
> org/apache/log4j/chainsaw/LoadXMLAction.java:52: Fehler: cannot find
> file for class javax.xml.parsers.SAXParserFactory
> org/apache/log4j/chainsaw/LoadXMLAction.java:52: Fehler: cannot find
> file for class javax.xml.parsers.SAXParser
> org/apache/log4j/chainsaw/LoadXMLAction.java:77: Fehler: cannot find
> file for class javax.xml.parsers.SAXParserFactory
> org/apache/log4j/chainsaw/LoadXMLAction.java:77: durch frühere Fehler
> verwirrt,Abbruch
These appear to suggest that the javax.xml.parsers package is not
available. This should be part of the GNU Classpath library on GCJ.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Compile error with GCJ
Posted by Clemens Eisserer <li...@gmail.com>.
Hi Curt,
> It appears that your compilation failure is in Jakarta Commons
> Logging (http://jakarta.apache.org/commons) and not log4j. Jakarta
> Commons Logging would reference org.apache.log4j.Category but would
> not provide it and the messages appear to be consistent with not
> having log4j on your compile path.
Thank for clearing this up ... seems I completly misunderstood some
things. But it seems I know get how projects are related.
Hmm, it seems I am out of luck, when I try to just compile log4j to
shared library GCJ seems to be fairly angry:
[ce@lukihost PalmeNG]$ gcj log4j-1.2.11.jar -shared -o log4j.so
org/apache/log4j/AsyncAppender.java:0: Fehler: non-static method
'org.apache.log4j.AsyncAppender.close()' overrides static method
org/apache/log4j/AsyncAppender.java:0: Fehler: non-static method
'org.apache.log4j.AsyncAppender.requiresLayout()' overrides static
method
org/apache/log4j/BasicConfigurator.java: In class
`org.apache.log4j.BasicConfigurator':
org/apache/log4j/BasicConfigurator.java: In method
`org.apache.log4j.BasicConfigurator.configure()':
org/apache/log4j/PatternLayout.java:0: Fehler: non-static method
'org.apache.log4j.PatternLayout.activateOptions()' overrides static
method
org/apache/log4j/WriterAppender.java:0: Fehler: non-static method
'org.apache.log4j.WriterAppender.close()' overrides static method
org/apache/log4j/WriterAppender.java:0: Fehler: non-static method
'org.apache.log4j.WriterAppender.requiresLayout()' overrides static
method
org/apache/log4j/HTMLLayout.class: At top level:
org/apache/log4j/HTMLLayout.java:0: Fehler: non-static method
'org.apache.log4j.HTMLLayout.activateOptions()' overrides static
method
org/apache/log4j/SimpleLayout.java:0: Fehler: non-static method
'org.apache.log4j.SimpleLayout.activateOptions()' overrides static
method
org/apache/log4j/helpers/DateLayout.java:0: Fehler: non-static method
'org.apache.log4j.helpers.DateLayout.activateOptions()' overrides
static method
org/apache/log4j/chainsaw/LoadXMLAction.java: In class
`org.apache.log4j.chainsaw.LoadXMLAction':
org/apache/log4j/chainsaw/LoadXMLAction.java: In constructor
`(javax.swing.JFrame,org.apache.log4j.chainsaw.MyTableModel)':
org/apache/log4j/chainsaw/LoadXMLAction.java:52: Fehler: cannot find
file for class javax.xml.parsers.SAXParserFactory
org/apache/log4j/chainsaw/LoadXMLAction.java:52: Fehler: cannot find
file for class javax.xml.parsers.SAXParserFactory
org/apache/log4j/chainsaw/LoadXMLAction.java:52: Fehler: cannot find
file for class javax.xml.parsers.SAXParser
org/apache/log4j/chainsaw/LoadXMLAction.java:77: Fehler: cannot find
file for class javax.xml.parsers.SAXParserFactory
org/apache/log4j/chainsaw/LoadXMLAction.java:77: durch frühere Fehler
verwirrt,Abbruch
However its still 3.4.2 so maybe it will work after updating my gcj to
4.0. Or maybe I'll even have to hack commons-logging to not use log4j
:-(
Thanks for all the patience, lg Clemens
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Compile error with GCJ
Posted by Curt Arnold <ca...@apache.org>.
On Aug 10, 2005, at 8:40 PM, Clemens Eisserer wrote:
> Hello,
>
> I am trying to compile Jetty-5.1 with gcj which also has a dependency
> to Log4j, however I am not able to compile Log4J with GCJ when using
> the "old" ABI which I am forced to use.
>
> This is what I get:
>
> org/apache/commons/logging/impl/Log4JCategoryLog.java: In class
> `org.apache.commons.logging.impl.Log4JCategoryLog':
> org/apache/commons/logging/impl/Log4JCategoryLog.java: In constructor
> `(java.lang.String)':
> org/apache/commons/logging/impl/Log4JCategoryLog.java:91: Fehler:
> cannot find file for class org.apache.log4j.Category
> org/apache/commons/logging/impl/Log4JCategoryLog.java:104: Fehler:
> cannot find file for class org.apache.log4j.Category
> org/apache/commons/logging/impl/Log4JCategoryLog.java:104: durch
> frühere Fehlerverwirrt, Abbruch
>
> and in fact I am not able to fins a class Category - so is the jar
> incomplete which is distributed? Are there any tricks to fool gcj to
> compile Log4J properly?
>
> Thank you in advance, lg Clemens
It appears that your compilation failure is in Jakarta Commons
Logging (http://jakarta.apache.org/commons) and not log4j. Jakarta
Commons Logging would reference org.apache.log4j.Category but would
not provide it and the messages appear to be consistent with not
having log4j on your compile path.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org