after lots of time of building, i get: javac: invalid flag: -source Usage: javac <options> <source files> where possible options include: -g Generate all debugging info -g:none Generate no debugging info -g:{lines,vars,source} Generate only some debugging info -O Optimize; may hinder debugging or enlarge class file -nowarn Generate no warnings -verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are used -classpath <path> Specify where to find user class files -sourcepath <path> Specify where to find input source files -bootclasspath <path> Override location of bootstrap class files -extdirs <dirs> Override location of installed extensions -d <directory> Specify where to place generated class files -encoding <encoding> Specify character encoding used by source files -target <release> Generate class files for specific VM version make[4]: *** [.compile.classlist] Error 2 make[4]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r1/work/j2sdk/j2se/make/java/java'
This is because the ebuild requires jdk-1.4, while you only have blackdown-jdk-1.3. I have fixed the ebuild so it now enforces this, sorry for the mistake, ( note the blackdown-jdk-1.4 ebuild is a ~arch ebuild so you need to enable the testing tree ) Cretin
Calculating dependencies ...done! >>> emerge (1 of 2) dev-java/java-sdk-docs-1.4.1 to / >>> Unpacking source... !!! ERROR: The ebuild did not complete successfully. !!! Function src_unpack, Line 2, Exitcode 0 !!! Please download j2sdk-1_4_1-doc.zip from http://java.sun.com/j2se/1.4.1/download.html and move it to /usr/portage/distfiles
cretin, please update the ebuild to reflect the proper url to download the files from (the sun one, and it asks you to register etc) btw i am still building, now with 1.4 beta i have been told that building without blackdown worked at it is
The above comment I made only caused problems with doc in the USE vars - I removed it since it wanted to download about 30-40Mb of crap ;) Sorry, who are you calling a cretin?
LOL look for the "assigned to" at the top of this bug page
ROTFL!! Oh dear. I shall recover gracefully. God - what a mess just for OpenOffice
it's done building but loading a java webpage it crashes :(
Might as well reopen this to keep all the potential bugs in, Will try and replicate the build error with blackdown, mine seems to work.... The only Cretin
Francisco Le
Francisco León, Could you post, if you have them, the error files made by mozilla and java, The java ones are found in your home dir and are named hs_**.log or similar
Created attachment 5560 [details] Log of crash
Created attachment 5561 [details] Hs error file
This is because of motif. What versions of motif have you got installed? The only supported version is lesstif-0.93.36. Although java will happily staticly link to openmotif it will crash onstartup if done so. That is why on the latest ebuilds openmotif is blocked, because it can only link sucessfully to lesstif. After the compile you can reinstall openmotif as it is statically linked so will not effect java. Cretin
But how did i compile with openmotif if it's blocked? I did not, i uninstalled it before compiling, and i dont even have it installed now, i only have tif and lesstif
Ok, but do you have two tif libraries installed, lesstif and tif? ( I was not aware of the tif library ) This could be the problem. The ebuild requires lesstif only to be installed. If not, then I am at a loss regarding the error. This is definatly a motif error, as the logs point to that.
Do you have tif installed? I can unistall it and add it later, but i promise i dont have openmotif installed... I don't want to lose another 3 hours compiling this thing if i am not sure it's gonna work...
Well tif is definatly the problem here then, Is it a gentoo package, so that I can block it for others? I didn't have tif installed or any other clones except for lesstif when I compiled it. Also a good idea for large buggy ebuilds, like this one, is to emerge ccache to speed up recompiles. Anyway, good luck, and it should work now, Stefan
i dont remember what installed tif, sorry. I am gonna recompile and post back in about 3 hours
btw it's tiff, and it's an image format. Why would this crash java? I think mplayer installed it... So no, that's not the reason why it crashes. Maybe i should compile it with sun's jre instead of buggy blackdown, what do you think?
tiff will not effect it. Could you do a search for libXm.a on your system, this is the motif library java tries to link to. You could try and compile with sun's jdk 1.4, just suitably set your java-config. Also you should try to clean out the /usr/lib/mozilla/plugins dir of old javaplugings, maybe one of those is loading instead and is using the new java librarys causing a crash .... ( I'm rapidly running out of ideas, you may have to send me the binaries ) Stefan
there are lots of libXm files, and they all belong to lesstif so i guess it's okay. I am downloading sun's jdk to use it and test.
I've just updated the ebuild to check for valid versions of java, so do a emerge rsync before you start. Also check which version of java you are using before you start and set it accordingly using the tool java-config (see java-config --help ) Many thanks for your patience
Hi, This is my java-config --list-available-vms [blackdown-jdk-1.4.1_beta] Blackdown JDK 1.4.1_beta (/etc/env.d/java/20blackdown-jdk-1.4.1_beta) and when I run emerge sun-j2sdk, I got These are the packages that I would merge, in order. Calculating dependencies emerge: there are no masked or unmasked ebuilds to satisfy "virtual/jdk-1.4" (from ebuild / dev-java/sun-j2sdk-1.4.0-r1 merge). Have I missed something?
it's a new "bug" cretin just added ;) seriously, i had that too after he just updated the ebuild today. just emerge sun-jdk by yourself
It is because the default jdk is blackdown, and it's 1.4 version is masked, so emerge tries to install that one and fails. So either put ~x86 in your ACCEPT_KEYWORDS or emerge you prefered jdk manually.
STILL crashes.... >:-<
Can you remerge lesstif and then: Run the command: updatedb && locate libXm.a and find out what packages provide these files. You should only find /usr/lib/libXm.a which is provided by x11-libs/lesstif-0.93.36 could you also do a "ls -l /usr/lib/mozilla/plugins". Please could you then report the results? many thanks, we WILL get to the bottom of this!
This might be due to a bad copy of lesstif compiled with the wring configure options. I have updated the ebuilds, and am remerging it now, wait out ....
i uninstalled lesstif and reinstalled it before compiling java yesterday, and libXm.a was owned by lesstif so that's all right. Thanks for having so much patience
Well I have found the problem and have released a new version, -r2 with the fix. It seems the problem was any version of motif apart from the sun compiled one causes problems. My plugin ran well for the sites I tested, but ppl pointed out crashes on other sites which still affected me. (eg. news.bbc.co.uk works) The -r2 ebuild should be in portage soon, it compiles java using sun's openmotif. This version now crashes less, and works on sites which didn't work before. Lesstif and openmotif are now both blocked, for the same reasons as before. Anyone want to try? ( or have ppl had enough! )
Hey, i just got 512mb more ram so i need something to test it with :) Will try to compile java for the THIRD time as soon as i see -r2. However, you said that now you are using sun's openmotif to compile java, and you also say that openmotif is still blocked? (i think you meant plain motif) Anyway i will try it... Please test chat.cantv.net and chat.webmaster.com for me. In cantv just type a nick choose any channel and hit the button
I have finished compiling the -r2 ebuild and tested it, It now works for those two websites with no visable errors which I can see. If it works for you also aswell I will close this bug, unmask the ebuild. In the future I will try to use an open source motif, till then ...
It is my honor to close this bug :) FIXED (ram really helps, less than 2 hours this time) Thanks to cretin for making this possible