Here's an RSSOwl 1.2 SRPM (and itext dependency SRPM) suitable for submission to FE:
http://people.redhat.com/green/FE/devel/
This is based on the work that Robin Green and Andrew Overholt did.
I modified itext to not encode images in JPEG (since we don't support that yet), and rssowl was modified to use standard JCE classes instead of the bundled BlowfishJ.jar. I also had to tweak the SWT code a little to work with the version we ship.
It seems to work well for me (with my pr13212.so hack). It would be nice if others could try it before I go through the submission process.
Thanks,
AG
Anthony Green wrote:
Here's an RSSOwl 1.2 SRPM (and itext dependency SRPM) suitable for submission to FE:
http://people.redhat.com/green/FE/devel/
This is based on the work that Robin Green and Andrew Overholt did.
I modified itext to not encode images in JPEG (since we don't support that yet), and rssowl was modified to use standard JCE classes instead of the bundled BlowfishJ.jar. I also had to tweak the SWT code a little to work with the version we ship.
It seems to work well for me (with my pr13212.so hack). It would be nice if others could try it before I go through the submission process.
Thanks,
AG
-- fedora-devel-java-list mailing list fedora-devel-java-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-devel-java-list
I get the following trying to build itext on FC4:
BUILD FAILED /export/home/orion/redhat/itext-1.3/itext/src/build.xml:88: The following error occurred while executing this line: /export/home/orion/redhat/itext-1.3/itext/src/ant/site.xml:41: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison
perhaps a missing BuildRequires? Have you tried building in mock?
On Wed, 2006-01-04 at 10:27 -0700, Orion Poplawski wrote:
I get the following trying to build itext on FC4:
BUILD FAILED /export/home/orion/redhat/itext-1.3/itext/src/build.xml:88: The following error occurred while executing this line: /export/home/orion/redhat/itext-1.3/itext/src/ant/site.xml:41: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison
perhaps a missing BuildRequires?
ant-trax I think.
Have you tried building in mock?
No, I've never used mock before and only recently heard of it. Any pointers?
AG
Anthony Green wrote:
On Wed, 2006-01-04 at 10:27 -0700, Orion Poplawski wrote:
I get the following trying to build itext on FC4:
BUILD FAILED /export/home/orion/redhat/itext-1.3/itext/src/build.xml:88: The following error occurred while executing this line: /export/home/orion/redhat/itext-1.3/itext/src/ant/site.xml:41: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison
perhaps a missing BuildRequires?
ant-trax I think.
ant-trax is installed. Here is some more info:
lowagie.com: [mkdir] Created dir: /export/home/orion/redhat/itext-1.3/itext/build/lowagie [copy] Copying 5 files to /export/home/orion/redhat/itext-1.3/itext/build/lowagie/images [copy] Copying 5 files to /export/home/orion/redhat/itext-1.3/itext/build/lowagie/ant [copy] Copying 1 file to /export/home/orion/redhat/itext-1.3/itext/build/lowagie [copy] Copying 1 file to /export/home/orion/redhat/itext-1.3/itext/build/lowagie [copy] Copying 1 file to /export/home/orion/redhat/itext-1.3/itext/build/lowagie [copy] Copying 1 file to /export/home/orion/redhat/itext-1.3/itext/build/lowagie [copy] Copying 1 file to /export/home/orion/redhat/itext-1.3/itext/build/lowagie [xslt] DEPRECATED - xalan processor is deprecated. Use trax instead. [xslt] DEPRECATED - xslp processor is deprecated. Use trax instead. [xslt] java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.XslpLiaison [xslt] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) [xslt] at java.security.AccessController.doPrivileged(Native Method) [xslt] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) [xslt] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [xslt] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) [xslt] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) [xslt] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) [xslt] at java.lang.Class.forName0(Native Method) [xslt] at java.lang.Class.forName(Class.java:164) [xslt] at org.apache.tools.ant.taskdefs.XSLTProcess.loadClass(XSLTProcess.java:419) [xslt] at org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSLTProcess.java:397) [xslt] at org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProcess.java:619) [xslt] at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:213) [xslt] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [xslt] at org.apache.tools.ant.Task.perform(Task.java:364) [xslt] at org.apache.tools.ant.Target.execute(Target.java:341) [xslt] at org.apache.tools.ant.Target.performTasks(Target.java:369) [xslt] at org.apache.tools.ant.Project.executeTarget(Project.java:1214) [xslt] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) [xslt] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [xslt] at org.apache.tools.ant.Task.perform(Task.java:364) [xslt] at org.apache.tools.ant.Target.execute(Target.java:341) [xslt] at org.apache.tools.ant.Target.performTasks(Target.java:369) [xslt] at org.apache.tools.ant.Project.executeTarget(Project.java:1214) [xslt] at org.apache.tools.ant.Project.executeTargets(Project.java:1062) [xslt] at org.apache.tools.ant.Main.runBuild(Main.java:673) [xslt] at org.apache.tools.ant.Main.startAnt(Main.java:188) [xslt] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) [xslt] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) [xslt] java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.XalanLiaison [xslt] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) [xslt] at java.security.AccessController.doPrivileged(Native Method) [xslt] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) [xslt] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [xslt] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) [xslt] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) [xslt] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) [xslt] at java.lang.Class.forName0(Native Method) [xslt] at java.lang.Class.forName(Class.java:164) [xslt] at org.apache.tools.ant.taskdefs.XSLTProcess.loadClass(XSLTProcess.java:419) [xslt] at org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSLTProcess.java:402) [xslt] at org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProcess.java:616) [xslt] at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:213) [xslt] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [xslt] at org.apache.tools.ant.Task.perform(Task.java:364) [xslt] at org.apache.tools.ant.Target.execute(Target.java:341) [xslt] at org.apache.tools.ant.Target.performTasks(Target.java:369) [xslt] at org.apache.tools.ant.Project.executeTarget(Project.java:1214) [xslt] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) [xslt] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [xslt] at org.apache.tools.ant.Task.perform(Task.java:364) [xslt] at org.apache.tools.ant.Target.execute(Target.java:341) [xslt] at org.apache.tools.ant.Target.performTasks(Target.java:369) [xslt] at org.apache.tools.ant.Project.executeTarget(Project.java:1214) [xslt] at org.apache.tools.ant.Project.executeTargets(Project.java:1062) [xslt] at org.apache.tools.ant.Main.runBuild(Main.java:673) [xslt] at org.apache.tools.ant.Main.startAnt(Main.java:188) [xslt] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) [xslt] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
No, I've never used mock before and only recently heard of it. Any pointers?
http://fedoraproject.org/wiki/Projects/Mock?action=show
On Wed, 2006-01-04 at 12:01 -0700, Orion Poplawski wrote:
Anthony Green wrote:
On Wed, 2006-01-04 at 10:27 -0700, Orion Poplawski wrote:
I get the following trying to build itext on FC4:
BUILD FAILED /export/home/orion/redhat/itext-1.3/itext/src/build.xml:88: The following error occurred while executing this line: /export/home/orion/redhat/itext-1.3/itext/src/ant/site.xml:41: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison
perhaps a missing BuildRequires?
ant-trax I think.
ant-trax is installed. Here is some more info:
I have no idea what this is. I tried building on FC4 and didn't have this problem -- but I did hit another problem that is unlikely to be fixed in FC4 (missing methods in libgcj's AWT implementation).
I think RSSOwl will have to be for FC5 and greater only.
Thanks for the mock pointer.
AG
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Anthony Green wrote:
I have no idea what this is. I tried building on FC4 and didn't have this problem -- but I did hit another problem that is unlikely to be
I haven't tried to build the package myself yet (libgcj 4.0.x is missing Font.getStringBounds() among other things), but try this:
Add near the top:
BuildRequires: ant-trax BuildRequires: jaxp_transform_impl
Add right before the call to ant/setting of CLASSPATH:
export OPT_JAR_LIST="ant/ant-trax jaxp_transform_impl"
It is good practice to *always* set OPT_JAR_LIST and CLASSPATH. In fact, the %ant macro could force these to empty if they don't exist; otherwise, these things crop up with ant's auto-loading, which we don't want during a build.
- -- Sincerely,
David Walluck david@zarb.org
On Wed, 2006-01-04 at 17:00 -0500, David Walluck wrote:
Add near the top:
BuildRequires: ant-trax BuildRequires: jaxp_transform_impl
Add right before the call to ant/setting of CLASSPATH:
export OPT_JAR_LIST="ant/ant-trax jaxp_transform_impl"
Thanks. I made these changes and submitted both itext and RSSOwl to Fedora Extras for review.
AG
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Anthony Green wrote:
I modified itext to not encode images in JPEG (since we don't support
Classpath 0.19 seems to have support for this, so I figured gcj 4.1 would as well.
that yet), and rssowl was modified to use standard JCE classes instead of the bundled BlowfishJ.jar. I also had to tweak the SWT code a little
JPackage has a somewhat old version of blowfish-j that could have been brought over. I guess avoiding extra dependencies could be a good thing.
It seems to work well for me (with my pr13212.so hack). It would be nice if others could try it before I go through the submission process.
itext doesn't build on gcj 4.0.2. I am going to update to the latest 4.1.0 in devel and see how it goes.
- -- Sincerely,
David Walluck david@zarb.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
David Walluck wrote:
itext doesn't build on gcj 4.0.2. I am going to update to the latest 4.1.0 in devel and see how it goes.
I am trying to build eclipse with gcc version 4.1.0 20051222 (Red Hat 4.1.0-0.11) since a new libgcj is required for itext and rssowl.
[exec] Building Linux GTK AMD64 version of SWT [exec] gcc -O2 -Wall -DSWT_VERSION=3139 -DLINUX -DGTK - -I/usr/lib/jvm/java-1.4.2-gcj/include - -I/usr/lib/jvm/java-1.4.2-gcj/include/linux -fpic -DSWT_PTR_SIZE_64 -c swt.c [exec] In file included from swt.h:24, [exec] from swt.c:13: [exec] /usr/lib/jvm/java-1.4.2-gcj/include/jni.h:164: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jint' [exec] /usr/lib/jvm/java-1.4.2-gcj/include/jni.h:165: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void' [exec] /usr/lib/jvm/java-1.4.2-gcj/include/jni.h:175: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jint' [exec] /usr/lib/jvm/java-1.4.2-gcj/include/jni.h:178: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jint' [exec] /usr/lib/jvm/java-1.4.2-gcj/include/jni.h:181: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jint' [exec] /usr/lib/jvm/java-1.4.2-gcj/include/jni.h:190: error: expected specifier-qualifier-list before 'jboolean' [exec] /usr/lib/jvm/java-1.4.2-gcj/include/jni.h:216: error: expected specifier-qualifier-list before 'jint' [exec] /usr/lib/jvm/java-1.4.2-gcj/include/jni.h:1526: error: expected specifier-qualifier-list before 'jint' [exec] /usr/lib/jvm/java-1.4.2-gcj/include/jni.h:1560: error: expected specifier-qualifier-list before 'jint' [exec] /usr/lib/jvm/java-1.4.2-gcj/include/jni.h:1575: error: expected specifier-qualifier-list before 'jint' [exec] swt.c:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jint' [exec] swt.c: In function 'throwOutOfMemory': [exec] swt.c:24: error: 'const struct JNINativeInterface' has no member named 'FindClass' [exec] swt.c:26: error: 'const struct JNINativeInterface' has no member named 'ThrowNew' [exec] make: *** [swt.o] Error 1
- -- Sincerely,
David Walluck david@zarb.org
* David Walluck david@zarb.org [2006-01-05 22:45]:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
David Walluck wrote:
itext doesn't build on gcj 4.0.2. I am going to update to the latest 4.1.0 in devel and see how it goes.
I am trying to build eclipse with gcc version 4.1.0 20051222 (Red Hat 4.1.0-0.11) since a new libgcj is required for itext and rssowl.
I don't know what's causing your error, but 4.1.0-0.12 is the latest and has a bug fix that was crucial (... perhaps just for i386, though ...). I didn't have this problem when I built, though. Want me to verify that it still builds? I did a build yesterday on my i386 laptop and it made it all the way through.
Andrew
"David" == David Walluck david@zarb.org writes:
David> [exec] gcc -O2 -Wall -DSWT_VERSION=3139 -DLINUX -DGTK David> -I/usr/lib/jvm/java-1.4.2-gcj/include David> -I/usr/lib/jvm/java-1.4.2-gcj/include/linux -fpic -DSWT_PTR_SIZE_64 -c David> swt.c David> [exec] In file included from swt.h:24, David> [exec] from swt.c:13: David> [exec] /usr/lib/jvm/java-1.4.2-gcj/include/jni.h:164: error: David> expected '=', ',', ';', 'asm' or '__attribute__' before 'jint'
This is odd. Here's the line from jni.h:
extern JNIEXPORT jint JNICALL JNI_OnLoad (JavaVM *, void *);
I would assume that the problem is that we're somehow picking up the wrong jni_md.h -- I would say that we're missing jni_md.h but I would expect another error message if that were the case.
Could you run that compilation command by hand, but instead of '-c', use '-E'? Then save the output, compress it (it will probably be huge), and email it to me. That might help.
Tom
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Tom Tromey wrote:
I would assume that the problem is that we're somehow picking up the wrong jni_md.h -- I would say that we're missing jni_md.h but I would expect another error message if that were the case.
This was it, I think. You of course were able to figure it out faster than I did, but I didn't get your email until later.
For whatever reason, jni_md.h in java-gcj-compat was not symlinked to the real jni_md.h. I checked the java-gcj-compat spec and it does appear to be setting the links up correctly, and after reinstalling the java-gcj-compat rpm, it seems fine.
Inside jni.h there's an #include <jni_md.h>, and these are in the internal compiler directories. So, if the -I/usr/lib/jvm/java-1.4.2-gcj specified on the command line takes precedence over the internal compiler directories, then the jni_md.h -> jni.h header would have been included instead of the real jni_md.h in the internal compiler directory (without warning I guess...).
Now, my larger issue seems to be I am running out of memory during the aot-compile-rpm stage of the eclipse build (I have 1G RAM). The problem is that the machine doesn't necessarily lock up but it crawls for a few hours (very unresponsive to mouse movements or key presses). Is it really normal for the system to become so unresponsive like this? A rogue process like this should eventually be killed by the kernel at least.
Eventually, I am getting an internal compiler error, so it might not be available memory after all. I will try with the latest gcc rpm now.
- -- Sincerely,
David Walluck david@zarb.org
java-devel@lists.fedoraproject.org