From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yh0-f52.google.com (mail-yh0-f52.google.com [209.85.213.52]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B2695E0076F for ; Sat, 15 Feb 2014 04:03:45 -0800 (PST) Received: by mail-yh0-f52.google.com with SMTP id a41so12662497yho.11 for ; Sat, 15 Feb 2014 04:03:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+3jBh/YW6abiDUOqwixRrKqvwygtkuVPfy/tSfWnn6o=; b=yfFDuvTq6KmUs6Jfe+xqc+l3amU1LqOBIXlrFfVJnIw0exx2WqJMua4jRU7XVMoB/6 jd1cA6STD9njdNv/CEvpvZwf3Q45r8bzbcjroaCZD18+Iw6tqnR7FtxahF7E7aHNIcoE nTs5xKwAI6u27YyE0pvmZg600iyn5brtRqoj+E1gFpnnwaCjjsuYpRgl6thjnpeuLZ+f IPi9oSrsm3BelaYn1N8bJ9/gIB9JT3Ce86NPsDl2oXfy7DD6zmHjNmQMTGH7yW2K1R7W 0tcZ6FDVpMoOu68aFN/hbewVw7dOnLRQwGIjBHSRdSvc+5ECrGrf+1sSlkSBbxvtvS2O YZxg== MIME-Version: 1.0 X-Received: by 10.236.163.137 with SMTP id a9mr62010yhl.150.1392465824645; Sat, 15 Feb 2014 04:03:44 -0800 (PST) Received: by 10.170.130.5 with HTTP; Sat, 15 Feb 2014 04:03:44 -0800 (PST) In-Reply-To: <5D91AAAA-D703-484D-943A-6E8D1FF6644A@gmail.com> References: <5D91AAAA-D703-484D-943A-6E8D1FF6644A@gmail.com> Date: Sat, 15 Feb 2014 17:33:44 +0530 Message-ID: From: Ashish Dalela To: Khem Raj Cc: Yocto list discussion Subject: Re: meta-java compilation failure X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Feb 2014 12:03:49 -0000 Content-Type: multipart/alternative; boundary=20cf301d406cd7094904f270b606 --20cf301d406cd7094904f270b606 Content-Type: text/plain; charset=ISO-8859-1 Thanks for your help. I tried that now I'm seeing another issue during cacao configure: checking where jni_md.h is installed... /usr/local/classpath/include checking /usr/local/classpath/include/jni_md.h usability... no checking /usr/local/classpath/include/jni_md.h presence... no checking for /usr/local/classpath/include/jni_md.h... no configure: error: cannot find jni_md.h Configure failed. The contents of all config.log files follows to aid debugging In the cacao .bb file, I see the --with-jni_md_h option, but it doesn't show up in the configure that is being done. EXTRA_OECONF_class-native = "\ --enable-debug \ --with-vm-zip=${datadir}/cacao/vm.zip \ --disable-libjvm \ \ --with-classpath-libdir=${libdir_jni}:${libdir} \ --with-classpath-includedir=${includedir}/classpath \ --with-classpath-classes=${datadir}/classpath/glibj.zip \ \ --with-java-runtime-library-classes=${datadir}/classpath/glibj.zip \ --with-java-runtime-library-libdir=${libdir_jni}:${libdir} \ --with-jni_md_h=${includedir}/classpath \ --with-jni_h=${includedir}/classpath \ --disable-test-dependency-checks \ " /scratch/yocto/build/tmp/work/i586-poky-linux/cacao/1.6.1-r0/cacao-1.6.1/configure --build=x86_64-linux --host=i586-poky-linux --target=i586-poky-linux --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib/cacao --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/scratch/akda/iotg-yocto/build/tmp/sysroots/qemux86 On Thu, Feb 13, 2014 at 8:47 PM, Khem Raj wrote: > > On Feb 12, 2014, at 11:35 PM, Ashish Dalela > wrote: > > I see these in my tree: > > build/tmp/sysroots/x86_64-linux/usr/share/java/gnumail-1.1.2.jar > ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/source/javax/mail > ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/javamail.providers.in > ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/javamail.providers > ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/javamail.address.map.in > ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/javamail.address.map > ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/classes/javax/mail > ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/javamail.charset.map > > ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/META-INF/javamail.default.address.map > > ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/META-INF/javamail.default.providers > > ./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/META-INF/javamail.charset.map > > Since I'm building java, I should not have to import an external JAR right? > > > Its due to weird race condition. > > bitbake -cclean log4j-native gnumail-native > > and then bitbake log4j-native see if that works > > > Thanks > -Ashish > > > > On Thu, Feb 13, 2014 at 12:59 PM, Gaurang Shastri wrote: > >> Hi, >> >> The main error is >> DEBUG: Executing shell function do_compile >> | ---------- >> | 1. WARNING in src/main/java/org/apache/log4j/spi/NOPLogger.java (at >> line 59) >> | void closeNestedAppenders() { >> | ^^^^^^^^^^^^^^^^^^^^^^ >> | The method NOPLogger.closeNestedAppenders() does not override the >> inherited method from Category since it is private to a different package >> | ---------- >> | ---------- >> | 2. ERROR in src/main/java/org/apache/log4j/net/SMTPAppender.java (at >> line 1) >> | /* >> | ^ >> | The type javax.mail.Transport cannot be resolved. It is indirectly >> referenced from required .class files >> | ---------- >> | 3. ERROR in src/main/java/org/apache/log4j/net/SMTPAppender.java (at >> line 39) >> | import javax.mail.Transport; >> | ^^^^^^^^^^^^^^^^^^^^ >> | The import javax.mail.Transport cannot be resolved >> | ---------- >> | 4. ERROR in src/main/java/org/apache/log4j/net/SMTPAppender.java (at >> line 416) >> | Transport.send(msg); >> | ^^^^^^^^^ >> | Transport cannot be resolved >> >> Do your java contain mail.jar ?? >> >> //Gaurang >> >> >> >> On Thu, Feb 13, 2014 at 6:46 AM, Ashish Dalela wrote: >> >>> >>> Hi >>> >>> I'm facing the below compilation failure while doing "bitbake >>> openjdk-7-jre". Any suggestions on how to fix this? >>> >>> Thanks! >>> >>> Log data follows: >>> | DEBUG: Executing shell function do_compile >>> | ---------- >>> | 1. WARNING in src/main/java/org/apache/log4j/spi/NOPLogger.java (at >>> line 59) >>> | void closeNestedAppenders() { >>> | ^^^^^^^^^^^^^^^^^^^^^^ >>> | The method NOPLogger.closeNestedAppenders() does not override the >>> inherited method from Category since it is private to a different package >>> | ---------- >>> | ---------- >>> | 2. ERROR in src/main/java/org/apache/log4j/net/SMTPAppender.java (at >>> line 1) >>> | /* >>> | ^ >>> | The type javax.mail.Transport cannot be resolved. It is indirectly >>> referenced from required .class files >>> | ---------- >>> | 3. ERROR in src/main/java/org/apache/log4j/net/SMTPAppender.java (at >>> line 39) >>> | import javax.mail.Transport; >>> | ^^^^^^^^^^^^^^^^^^^^ >>> | The import javax.mail.Transport cannot be resolved >>> | ---------- >>> | 4. ERROR in src/main/java/org/apache/log4j/net/SMTPAppender.java (at >>> line 416) >>> | Transport.send(msg); >>> | ^^^^^^^^^ >>> | Transport cannot be resolved >>> | ---------- >>> | ---------- >>> | 5. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5InputDialog.java (at >>> line 38) >>> | public class LogFactor5InputDialog extends LogFactor5Dialog { >>> | ^^^^^^^^^^^^^^^^^^^^^ >>> | The serializable class LogFactor5InputDialog does not declare a static >>> final serialVersionUID field of type long >>> | ---------- >>> | 6. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5InputDialog.java (at >>> line 88) >>> | hide(); >>> | ^^^^^^ >>> | The method hide() from the type Dialog is deprecated >>> | ---------- >>> | 7. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5InputDialog.java (at >>> line 96) >>> | hide(); >>> | ^^^^^^ >>> | The method hide() from the type Dialog is deprecated >>> | ---------- >>> | 8. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5InputDialog.java (at >>> line 103) >>> | hide(); >>> | ^^^^^^ >>> | The method hide() from the type Dialog is deprecated >>> | ---------- >>> | ---------- >>> | 9. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/LogBrokerMonitor.java (at line >>> 826) >>> | JMenuItem menuItem = result; >>> | ^^^^^^^^ >>> | The local variable menuItem is never read >>> | ---------- >>> | 10. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/LogBrokerMonitor.java (at line >>> 945) >>> | JMenuItem exitMI; >>> | ^^^^^^ >>> | The local variable exitMI is never read >>> | ---------- >>> | 11. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/LogBrokerMonitor.java (at line >>> 1097) >>> | LogFactor5ErrorDialog error = new LogFactor5ErrorDialog( >>> | ^^^^^ >>> | The local variable error is never read >>> | ---------- >>> | 12. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/LogBrokerMonitor.java (at line >>> 1277) >>> | fonts = tk.getFontList(); >>> | ^^^^^^^^^^^^^ >>> | The method getFontList() from the type Toolkit is deprecated >>> | ---------- >>> | 13. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/LogBrokerMonitor.java (at line >>> 1459) >>> | LogFactor5ErrorDialog error = new LogFactor5ErrorDialog( >>> | ^^^^^ >>> | The local variable error is never read >>> | ---------- >>> | 14. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/LogBrokerMonitor.java (at line >>> 1506) >>> | LogFactor5ErrorDialog error = new LogFactor5ErrorDialog( >>> | ^^^^^ >>> | The local variable error is never read >>> | ---------- >>> | 15. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/LogBrokerMonitor.java (at line >>> 1569) >>> | LogFactor5ErrorDialog error = new LogFactor5ErrorDialog( >>> | ^^^^^ >>> | The local variable error is never read >>> | ---------- >>> | 16. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/LogBrokerMonitor.java (at line >>> 1586) >>> | LogFactor5ErrorDialog error = new LogFactor5ErrorDialog( >>> | ^^^^^ >>> | The local variable error is never read >>> | ---------- >>> | ---------- >>> | 17. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/FilteredLogTableModel.java (at >>> line 39) >>> | public class FilteredLogTableModel >>> | ^^^^^^^^^^^^^^^^^^^^^ >>> | The serializable class FilteredLogTableModel does not declare a static >>> final serialVersionUID field of type long >>> | ---------- >>> | ---------- >>> | 18. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5LoadingDialog.java (at >>> line 35) >>> | public class LogFactor5LoadingDialog extends LogFactor5Dialog { >>> | ^^^^^^^^^^^^^^^^^^^^^^^ >>> | The serializable class LogFactor5LoadingDialog does not declare a >>> static final serialVersionUID field of type long >>> | ---------- >>> | ---------- >>> | 19. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5Dialog.java (at line 42) >>> | public abstract class LogFactor5Dialog extends JDialog { >>> | ^^^^^^^^^^^^^^^^ >>> | The serializable class LogFactor5Dialog does not declare a static >>> final serialVersionUID field of type long >>> | ---------- >>> | 20. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5Dialog.java (at line 69) >>> | super.show(); >>> | ^^^^^^ >>> | The method show() from the type Dialog is deprecated >>> | ---------- >>> | ---------- >>> | 21. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5ErrorDialog.java (at >>> line 38) >>> | public class LogFactor5ErrorDialog extends LogFactor5Dialog { >>> | ^^^^^^^^^^^^^^^^^^^^^ >>> | The serializable class LogFactor5ErrorDialog does not declare a static >>> final serialVersionUID field of type long >>> | ---------- >>> | 22. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/LogFactor5ErrorDialog.java (at >>> line 60) >>> | hide(); >>> | ^^^^^^ >>> | The method hide() from the type Dialog is deprecated >>> | ---------- >>> | ---------- >>> | 23. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/categoryexplorer/CategoryImmediateEditor.java >>> (at line 93) >>> | CategoryNode node = (CategoryNode) path.getLastPathComponent(); >>> | ^^^^ >>> | The local variable node is never read >>> | ---------- >>> | 24. WARNING in >>> src/main/java/org/apache/log4j/lf5/viewer/categoryexplorer/CategoryImmediateEditor.java >>> (at line 94) >>> | boolean rv = false; >>> | ^^ >>> | The local variable rv is never read >>> | ---------- >>> | ---------- >>> | 25. WARNING in >>> src/main/java/org/apache/log4j/lf5/LogLevelFormatException.java (at line 30) >>> | public class LogLevelFormatException extends Exception { >>> | ^^^^^^^^^^^^^^^^^^^^^^^ >>> | The serializable class LogLevelFormatException does not declare a >>> static final serialVersionUID field of type long >>> | ---------- >>> | ---------- >>> | 26. WARNING in >>> src/main/java/org/apache/log4j/lf5/util/LogFileParser.java (at line 162) >>> | LogFactor5ErrorDialog error = new LogFactor5ErrorDialog( >>> | ^^^^^ >>> | The local variable error is never read >>> | ---------- >>> | 27. WARNING in >>> src/main/java/org/apache/log4j/lf5/util/LogFileParser.java (at line 171) >>> | _loadDialog.hide(); >>> | ^^^^^^ >>> | The method hide() from the type Dialog is deprecated >>> | ---------- >>> | ---------- >>> | 28. WARNING in >>> src/main/java/org/apache/log4j/lf5/util/AdapterLogRecord.java (at line 33) >>> | public class AdapterLogRecord extends LogRecord { >>> | ^^^^^^^^^^^^^^^^ >>> | The serializable class AdapterLogRecord does not declare a static >>> final serialVersionUID field of type long >>> | ---------- >>> | ---------- >>> | 29. WARNING in src/main/java/org/apache/log4j/lf5/LogLevel.java (at >>> line 42) >>> | public class LogLevel implements java.io.Serializable { >>> | ^^^^^^^^ >>> | The serializable class LogLevel does not declare a static final >>> serialVersionUID field of type long >>> | ---------- >>> | ---------- >>> | 30. WARNING in src/main/java/org/apache/log4j/lf5/LogRecord.java (at >>> line 33) >>> | public abstract class LogRecord implements java.io.Serializable { >>> | ^^^^^^^^^ >>> | The serializable class LogRecord does not declare a static final >>> serialVersionUID field of type long >>> | ---------- >>> | ---------- >>> | 31. WARNING in src/main/java/org/apache/log4j/lf5/Log4JLogRecord.java >>> (at line 32) >>> | public class Log4JLogRecord extends LogRecord { >>> | ^^^^^^^^^^^^^^ >>> | The serializable class Log4JLogRecord does not declare a static final >>> serialVersionUID field of type long >>> | ---------- >>> | ---------- >>> | 32. WARNING in >>> src/main/java/org/apache/log4j/chainsaw/DetailPanel.java (at line 37) >>> | class DetailPanel >>> | ^^^^^^^^^^^ >>> | The serializable class DetailPanel does not declare a static final >>> serialVersionUID field of type long >>> | ---------- >>> | 33. WARNING in >>> src/main/java/org/apache/log4j/chainsaw/DetailPanel.java (at line 42) >>> | private static final Logger LOG = >>> | ^^^ >>> | The field DetailPanel.LOG is never read locally >>> | ---------- >>> | ---------- >>> | 34. WARNING in src/main/java/org/apache/log4j/chainsaw/Main.java (at >>> line 44) >>> | public class Main >>> | ^^^^ >>> | The serializable class Main does not declare a static final >>> serialVersionUID field of type long >>> | ---------- >>> | ---------- >>> | 35. WARNING in >>> src/main/java/org/apache/log4j/chainsaw/LoadXMLAction.java (at line 40) >>> | class LoadXMLAction >>> | ^^^^^^^^^^^^^ >>> | The serializable class LoadXMLAction does not declare a static final >>> serialVersionUID field of type long >>> | ---------- >>> | ---------- >>> | 36. WARNING in >>> src/main/java/org/apache/log4j/chainsaw/MyTableModel.java (at line 37) >>> | class MyTableModel >>> | ^^^^^^^^^^^^ >>> | The serializable class MyTableModel does not declare a static final >>> serialVersionUID field of type long >>> | ---------- >>> | 37. WARNING in >>> src/main/java/org/apache/log4j/chainsaw/MyTableModel.java (at line 142) >>> | private Priority mPriorityFilter = Priority.DEBUG; >>> | ^^^^^ >>> | The field Priority.DEBUG is deprecated >>> | ---------- >>> | ---------- >>> | 38. WARNING in src/main/java/org/apache/log4j/chainsaw/ExitAction.java >>> (at line 29) >>> | class ExitAction >>> | ^^^^^^^^^^ >>> | The serializable class ExitAction does not declare a static final >>> serialVersionUID field of type long >>> | ---------- >>> | ---------- >>> | 39. WARNING in >>> src/main/java/org/apache/log4j/chainsaw/ControlPanel.java (at line 40) >>> | class ControlPanel extends JPanel { >>> | ^^^^^^^^^^^^ >>> | The serializable class ControlPanel does not declare a static final >>> serialVersionUID field of type long >>> | ---------- >>> | 40. WARNING in >>> src/main/java/org/apache/log4j/chainsaw/ControlPanel.java (at line 42) >>> | private static final Logger LOG = >>> | ^^^ >>> | The field ControlPanel.LOG is never read locally >>> | ---------- >>> >>> >>> _______________________________________________ >>> yocto mailing list >>> yocto@yoctoproject.org >>> https://lists.yoctoproject.org/listinfo/yocto >>> >>> >> > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > > > --20cf301d406cd7094904f270b606 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks for your help. I tried that now I'm seeing anot= her issue during cacao configure:

checking where jni_md.= h is installed... /usr/local/classpath/include
checking /usr/loca= l/classpath/include/jni_md.h usability... no
checking /usr/local/classpath/include/jni_md.h presence... no
checking for /usr/local/classpath/include/jni_md.h... no
config= ure: error: cannot find jni_md.h
Configure failed. The contents o= f all config.log files follows to aid debugging
=A0
In the cacao .bb file, I see the =A0--with-jni_md_h opti= on, but it doesn't show up in the configure that is being done.

EXTRA_OECONF_class-native =3D "\
=A0 = =A0 --enable-debug \
=A0 =A0 --with-vm-zip=3D${datadir}/cacao/vm.zip \
=A0 =A0 --= disable-libjvm \
=A0 =A0 \
=A0 =A0 --with-classpath-lib= dir=3D${libdir_jni}:${libdir} \
=A0 =A0 --with-classpath-included= ir=3D${includedir}/classpath \
=A0 =A0 --with-classpath-classes=3D${datadir}/classpath/glibj.zip \
=A0 =A0 \
=A0 =A0 --with-java-runtime-library-classes=3D$= {datadir}/classpath/glibj.zip \
=A0 =A0 --with-java-runtime-libra= ry-libdir=3D${libdir_jni}:${libdir} \
=A0 =A0 --with-jni_md_h=3D${includedir}/classpath \
=A0 =A0 = --with-jni_h=3D${includedir}/classpath \
=A0 =A0 --disable-test-d= ependency-checks \
"

/sc= ratch/yocto/build/tmp/work/i586-poky-linux/cacao/1.6.1-r0/cacao-1.6.1/confi= gure --build=3Dx86_64-linux --host=3Di586-poky-linux --target=3Di586-poky-l= inux --prefix=3D/usr --exec_prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/= usr/sbin --libexecdir=3D/usr/lib/cacao --datadir=3D/usr/share --sysconfdir= =3D/etc --sharedstatedir=3D/com --localstatedir=3D/var --libdir=3D/usr/lib = --includedir=3D/usr/include --oldincludedir=3D/usr/include --infodir=3D/usr= /share/info --mandir=3D/usr/share/man --disable-silent-rules --disable-depe= ndency-tracking --with-libtool-sysroot=3D/scratch/akda/iotg-yocto/build/tmp= /sysroots/qemux86





=


O= n Thu, Feb 13, 2014 at 8:47 PM, Khem Raj <raj.khem@gmail.com> wrote:

On Feb 12, 2014, at 11:35 PM, Ashish Dalela <ashish.dalela@gmail= .com> wrote:

I see these in my tree:

build/tmp/sysroots/x86_64-linux/usr/share/java/gnumail-1.1.2.jar
./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/source/javax/ma= il
./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/javamail.providers.in
./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/javamail.providers
./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/javamail.address.map.in
./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/javamail.address.map=
./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/classes/javax/= mail
./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/javamail.c= harset.map
./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1.2/META-INF/javamail.de= fault.address.map
./x86_64-linux/gnumail-native/1.1.2-r1/mail-1.1= .2/META-INF/javamail.default.providers
./x86_64-linux/gnumail-nat= ive/1.1.2-r1/mail-1.1.2/META-INF/javamail.charset.map

Since I'm building java, I should not have to= import an external JAR right?

Its due to weird race condition.=A0

bitbake -cclean log4j-native gnumail-native

and th= en bitbake log4j-native see if that works

<= blockquote type=3D"cite">

Thanks
-Ashish



On Thu, Feb 13, 2014 at 12:59 PM, Gaurang Shastr= i <gmshastri@gmail.com> wrote:
Hi,

The main error is=A0
=A0DEBUG: Execu= ting shell function do_compile
| ----------
| 1. WARNING in src/main/java/org/apache/log4j/spi/NOPLogger.java (at lin= e 59)
| =A0= =A0 =A0 void closeNestedAppenders() {
| =A0 =A0 =A0 = =A0 =A0 =A0^^^^^^^^^^^^^^^^^^^^^^
| The method NOPLogger.closeNestedAppenders() does n= ot override the inherited method from Category since it is private to a dif= ferent package
| ----------
| ----------
| 2. ERROR i= n src/main/java/org/apache/log4j/net/SMTPAppender.java (at line 1)
| =A0 =A0 =A0 /*=
| =A0 =A0 = =A0 ^
| The= type javax.mail.Transport cannot be resolved. It is indirectly referenced = from required .class files
| ----------
| 3. ERROR in = src/main/java/org/apache/log4j/net/SMTPAppender.java (at line 39)
| =A0 =A0 =A0 import javax.mail.Transport;
| =A0 =A0 =A0 =A0 =A0 =A0 =A0^^^^^^^^^^^^^^= ^^^^^^
| Th= e import javax.mail.Transport cannot be resolved
| ----------
| 4. ERROR in = src/main/java/org/apache/log4j/net/SMTPAppender.java (at line 416)
| =A0 =A0 =A0 Transport.send(msg);
| =A0 =A0 =A0 ^^^^^^^^^
| Transport cannot be resolved

= Do your java contain mail.jar ??

//Gaurang



On Thu, Feb 13, 2014 at 6:46 AM, Ashish Da= lela <ashish.dalela@gmail.com> wrote:

<= div>Hi

I'm facing the below compilation failur= e while doing "bitbake openjdk-7-jre". Any suggestions on how to = fix this?

Thanks!

Log data follows:
| DEBUG: Executing shell fu= nction do_compile
| ----------
| 1. WARNING in src/main= /java/org/apache/log4j/spi/NOPLogger.java (at line 59)
| =A0 =A0 = =A0 void closeNestedAppenders() {
| =A0 =A0 =A0 =A0 =A0 =A0^^^^^^^^^^^^^^^^^^^^^^
| The method= NOPLogger.closeNestedAppenders() does not override the inherited method fr= om Category since it is private to a different package
| --------= --
| ----------
| 2. ERROR in src/main/java/org/apache/log4j/ne= t/SMTPAppender.java (at line 1)
| =A0 =A0 =A0 /*
| =A0 = =A0 =A0 ^
| The type javax.mail.Transport cannot be resolved. It = is indirectly referenced from required .class files
| ----------
| 3. ERROR in src/main/java/org/apache/log4j/ne= t/SMTPAppender.java (at line 39)
| =A0 =A0 =A0 import javax.mail.= Transport;
| =A0 =A0 =A0 =A0 =A0 =A0 =A0^^^^^^^^^^^^^^^^^^^^
| The import javax.mail.Transport cannot be resolved
| ----------
| 4. ERROR in src/main/java/org/apache/log4j/ne= t/SMTPAppender.java (at line 416)
| =A0 =A0 =A0 Transport.send(ms= g);
| =A0 =A0 =A0 ^^^^^^^^^
| Transport cannot be resol= ved
| ----------
| ----------
| 5. WARNING in src/main= /java/org/apache/log4j/lf5/viewer/LogFactor5InputDialog.java (at line 38)
| =A0 =A0 =A0 public class LogFactor5InputDialog extends LogFactor= 5Dialog {
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^^^^^^^^^^^^^^^^^^^^^
| The serializable class LogFactor5InputDialog does not declare a static= final serialVersionUID field of type long
| ----------
| 6. WARNING in src/main/java/org/apache/log4j/lf5/viewer/LogFactor5InputD= ialog.java (at line 88)
| =A0 =A0 =A0 hide();
| =A0 =A0 =A0 ^^^^^^
| The m= ethod hide() from the type Dialog is deprecated
| ----------
| 7. WARNING in src/main/java/org/apache/log4j/lf5/viewer/LogFactor5I= nputDialog.java (at line 96)
| =A0 =A0 =A0 hide();
| =A0 =A0 =A0 ^^^^^^
| The m= ethod hide() from the type Dialog is deprecated
| ----------
| 8. WARNING in src/main/java/org/apache/log4j/lf5/viewer/LogFactor5I= nputDialog.java (at line 103)
| =A0 =A0 =A0 hide();
| =A0 =A0 =A0 ^^^^^^
| The m= ethod hide() from the type Dialog is deprecated
| ----------
| ----------
| 9. WARNING in src/main/java/org/apache/log4j= /lf5/viewer/LogBrokerMonitor.java (at line 826)
| =A0 =A0 =A0 JMenuItem menuItem =3D result;
| =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 ^^^^^^^^
| The local variable menuItem is nev= er read
| ----------
| 10. WARNING in src/main/java/org= /apache/log4j/lf5/viewer/LogBrokerMonitor.java (at line 945)
| =A0 =A0 =A0 JMenuItem exitMI;
| =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 ^^^^^^
| The local variable exitMI is never read
| ----------
| 11. WARNING in src/main/java/org/apache/log4j/lf= 5/viewer/LogBrokerMonitor.java (at line 1097)
| =A0 =A0 =A0 LogFactor5ErrorDialog error =3D new LogFactor5ErrorDialo= g(
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^^^^= ^
| The local variable error is never read
| ----------=
| 12. WARNING in src/main/java/org/apache/log4j/lf5/viewer/LogBr= okerMonitor.java (at line 1277)
| =A0 =A0 =A0 fonts =3D tk.getFontList();
| =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0^^^^^^^^^^^^^
| The method getFontList() from = the type Toolkit is deprecated
| ----------
| 13. WARNI= NG in src/main/java/org/apache/log4j/lf5/viewer/LogBrokerMonitor.java (at l= ine 1459)
| =A0 =A0 =A0 LogFactor5ErrorDialog error =3D new LogFactor5ErrorDialo= g(
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^^^^= ^
| The local variable error is never read
| ----------=
| 14. WARNING in src/main/java/org/apache/log4j/lf5/viewer/LogBr= okerMonitor.java (at line 1506)
| =A0 =A0 =A0 LogFactor5ErrorDialog error =3D new LogFactor5ErrorDialo= g(
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^^^^= ^
| The local variable error is never read
| ----------=
| 15. WARNING in src/main/java/org/apache/log4j/lf5/viewer/LogBr= okerMonitor.java (at line 1569)
| =A0 =A0 =A0 LogFactor5ErrorDialog error =3D new LogFactor5ErrorDialo= g(
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^^^^= ^
| The local variable error is never read
| ----------=
| 16. WARNING in src/main/java/org/apache/log4j/lf5/viewer/LogBr= okerMonitor.java (at line 1586)
| =A0 =A0 =A0 LogFactor5ErrorDialog error =3D new LogFactor5ErrorDialo= g(
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^^^^= ^
| The local variable error is never read
| ----------=
| ----------
| 17. WARNING in src/main/java/org/apache/log4j/lf5/viewer/FilteredLogTable= Model.java (at line 39)
| =A0 =A0 =A0 public class FilteredLogTab= leModel
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^^^^^^^^^^^^^^^^= ^^^^^
| The serializable class FilteredLogTableModel does not dec= lare a static final serialVersionUID field of type long
| ----------
| ----------
| 18. WARNING in src/mai= n/java/org/apache/log4j/lf5/viewer/LogFactor5LoadingDialog.java (at line 35= )
| =A0 =A0 =A0 public class LogFactor5LoadingDialog extends LogF= actor5Dialog {
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^^^^^^^^^^^^^^^^^^^^^^^
=
| The serializable class LogFactor5LoadingDialog does not declare a st= atic final serialVersionUID field of type long
| ----------
=
| ----------
| 19. WARNING in src/main/java/org/apache/log4j/lf5/viewer/LogFactor5D= ialog.java (at line 42)
| =A0 =A0 =A0 public abstract class LogFa= ctor5Dialog extends JDialog {
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 ^^^^^^^^^^^^^^^^
| The serializable class LogFactor5Dialog does not declare a static fi= nal serialVersionUID field of type long
| ----------
| = 20. WARNING in src/main/java/org/apache/log4j/lf5/viewer/LogFactor5Dialog.j= ava (at line 69)
| =A0 =A0 =A0 super.show();
| =A0 =A0 =A0 =A0 =A0 =A0 ^^^^^^=
| The method show() from the type Dialog is deprecated
| ----------
| ----------
| 21. WARNING in src/main/ja= va/org/apache/log4j/lf5/viewer/LogFactor5ErrorDialog.java (at line 38)
| =A0 =A0 =A0 public class LogFactor5ErrorDialog extends LogFactor5Dia= log {
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^^^^^^^^^^^^^^^^^^= ^^^
| The serializable class LogFactor5ErrorDialog does not decla= re a static final serialVersionUID field of type long
| ----------
| 22. WARNING in src/main/java/org/apache/log4j= /lf5/viewer/LogFactor5ErrorDialog.java (at line 60)
| =A0 =A0 =A0= hide();
| =A0 =A0 =A0 ^^^^^^
| The method hide() from = the type Dialog is deprecated
| ----------
| ----------
| 23. WARNING in src/mai= n/java/org/apache/log4j/lf5/viewer/categoryexplorer/CategoryImmediateEditor= .java (at line 93)
| =A0 =A0 =A0 CategoryNode node =3D (CategoryN= ode) path.getLastPathComponent();
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^^^^
| The local va= riable node is never read
| ----------
| 24. WARNING in= src/main/java/org/apache/log4j/lf5/viewer/categoryexplorer/CategoryImmedia= teEditor.java (at line 94)
| =A0 =A0 =A0 boolean rv =3D false;
| =A0 =A0 =A0 =A0 =A0 = =A0 =A0 ^^
| The local variable rv is never read
| ----= ------
| ----------
| 25. WARNING in src/main/java/org/= apache/log4j/lf5/LogLevelFormatException.java (at line 30)
| =A0 =A0 =A0 public class LogLevelFormatException extends Exception {=
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^^^^^^^^^^^^^^^^^^^^^^^=
| The serializable class LogLevelFormatException does not declar= e a static final serialVersionUID field of type long
| ----------
| ----------
| 26. WARNING in src/mai= n/java/org/apache/log4j/lf5/util/LogFileParser.java (at line 162)
| =A0 =A0 =A0 LogFactor5ErrorDialog error =3D new LogFactor5ErrorDialog(
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^^^^^
<= div>| The local variable error is never read
| ----------
| 27. WARNING in src/main/java/org/apache/log4j/lf5/util/LogFileParser.j= ava (at line 171)
| =A0 =A0 =A0 _loadDialog.hide();
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 ^^^^^^
| The method hide() from the type Dialog is deprec= ated
| ----------
| ----------
| 28. WARNING = in src/main/java/org/apache/log4j/lf5/util/AdapterLogRecord.java (at line 3= 3)
| =A0 =A0 =A0 public class AdapterLogRecord extends LogRecord {
<= div>| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^^^^^^^^^^^^^^^^
| T= he serializable class AdapterLogRecord does not declare a static final seri= alVersionUID field of type long
| ----------
| ----------
| 29. WARNING in src/mai= n/java/org/apache/log4j/lf5/LogLevel.java (at line 42)
| =A0 =A0 = =A0 public class LogLevel implements java.io.Serializable {
| =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^^^^^^^^
| The serializable class LogLevel does not declare a static final seri= alVersionUID field of type long
| ----------
| --------= --
| 30. WARNING in src/main/java/org/apache/log4j/lf5/LogRecord.= java (at line 33)
| =A0 =A0 =A0 public abstract class LogRecord implements java.io.Seria= lizable {
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 ^^^^^^^^^
| The serializable class LogRecord does not declare= a static final serialVersionUID field of type long
| ----------
| ----------
| 31. WARNING in src/mai= n/java/org/apache/log4j/lf5/Log4JLogRecord.java (at line 32)
| = =A0 =A0 =A0 public class Log4JLogRecord extends LogRecord {
| =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^^^^^^^^^^^^^^
| The serializable class Log4JLogRecord does not declare a static fina= l serialVersionUID field of type long
| ----------
| --= --------
| 32. WARNING in src/main/java/org/apache/log4j/chainsaw= /DetailPanel.java (at line 37)
| =A0 =A0 =A0 class DetailPanel
| =A0 =A0 =A0 =A0 =A0 =A0 ^^= ^^^^^^^^^
| The serializable class DetailPanel does not declare a= static final serialVersionUID field of type long
| ----------
| 33. WARNING in src/main/java/org/apache/log4j/chainsaw/DetailPane= l.java (at line 42)
| =A0 =A0 =A0 private static final Logger LOG =3D
| =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^^^
|= The field DetailPanel.LOG is never read locally
| ----------
| ----------
| 34. WARNING in src/main/java/org/apache/log= 4j/chainsaw/Main.java (at line 44)
| =A0 =A0 =A0 public class Main
| =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0^^^^
| The serializable class Main does not declar= e a static final serialVersionUID field of type long
| ----------=
| ----------
| 35. WARNING in src/main/java/org/apache/log4j/chainsaw/LoadXMLAction= .java (at line 40)
| =A0 =A0 =A0 class LoadXMLAction
| = =A0 =A0 =A0 =A0 =A0 =A0 ^^^^^^^^^^^^^
| The serializable class Lo= adXMLAction does not declare a static final serialVersionUID field of type = long
| ----------
| ----------
| 36. WARNING in src/mai= n/java/org/apache/log4j/chainsaw/MyTableModel.java (at line 37)
|= =A0 =A0 =A0 class MyTableModel
| =A0 =A0 =A0 =A0 =A0 =A0 ^^^^^^^= ^^^^^
| The serializable class MyTableModel does not declare a static final seria= lVersionUID field of type long
| ----------
| 37. WARNI= NG in src/main/java/org/apache/log4j/chainsaw/MyTableModel.java (at line 14= 2)
| =A0 =A0 =A0 private Priority mPriorityFilter =3D Priority.DEBUG;
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^^^^^
| The field Priority.DE= BUG is deprecated
| ----------
| ----------
| 38. WARNING in src/main/java/org/apache/log4j/chainsaw/ExitAction.ja= va (at line 29)
| =A0 =A0 =A0 class ExitAction
| =A0 = =A0 =A0 =A0 =A0 =A0 ^^^^^^^^^^
| The serializable class ExitActio= n does not declare a static final serialVersionUID field of type long
| ----------
| ----------
| 39. WARNING in src/mai= n/java/org/apache/log4j/chainsaw/ControlPanel.java (at line 40)
|= =A0 =A0 =A0 class ControlPanel extends JPanel {
| =A0 =A0 =A0 = =A0 =A0 =A0 ^^^^^^^^^^^^
| The serializable class ControlPanel does not declare a static final = serialVersionUID field of type long
| ----------
| 40. = WARNING in src/main/java/org/apache/log4j/chainsaw/ControlPanel.java (at li= ne 42)
| =A0 =A0 =A0 private static final Logger LOG =3D
| =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^^^
|= The field ControlPanel.LOG is never read locally
| ----------


_______________________________________________
yocto mailing list
yocto@yoctoproj= ect.org
https://lists.yoctoproject.org/listinfo/yocto



_______________________________________________
yocto mailing list
yocto@yoctoprojec= t.org
https://lists.yoctoproject.org/listinfo/yocto


--20cf301d406cd7094904f270b606--