View previous topic :: View next topic |
Author |
Message |
Rune n00b


Joined: 07 Oct 2002 Posts: 29 Location: Winnipeg
|
Posted: Tue Oct 15, 2002 2:54 am Post subject: |
|
|
kkj wrote: | I got this error, when I tried the script..
Code: | GEFILE64_SOURCE -D__GNU__ -D_REENTRANT -fcheck-new -DLITTLE_ENDIAN -w -c /root/build/src/hotspot/src/share/vm/runtime/java.cpp
In file included from ../generated/incls/_java.cpp.incl:225,
from /root/build/src/hotspot/src/share/vm/runtime/java.cpp:10:
/root/build/src/hotspot/src/share/vm/opto/loopnode.hpp:311: friend declaration
requires class-key, i.e. `friend class IdealLoopTree'
make[3]: *** [java.o] Error 1
make[3]: Leaving directory `/root/build/src/control/build/linux-i386/hotspot-i386/tmp/linux_i486_compiler2/product'
make[2]: *** [the_vm] Error 2
make[2]: Leaving directory `/root/build/src/control/build/linux-i386/hotspot-i386/tmp/linux_i486_compiler2/product'
make[1]: *** [product] Error 2
make[1]: Leaving directory `/root/build/src/control/build/linux-i386/hotspot-i386/tmp'
make: *** [product] Error 2
|
|
does anyone know why this error happens as i got it also. tried un-merging openmotif and it didnt fix a thing. all my flags/dir settings are correct using the script in the second post. |
|
Back to top |
|
 |
Rune n00b


Joined: 07 Oct 2002 Posts: 29 Location: Winnipeg
|
Posted: Tue Oct 15, 2002 2:56 am Post subject: |
|
|
only double posting because for some reason it doesnt show my real reply
edit: and it's another one of those infamous need 2 replies to show the next page bugs i have run into with almost every forum software
edit #2: ok apparently you must have the patches from http://tushar.lfsforum.org/files/JavaFromScratch/ otherwise the compile will die quite quickly after you start it. Now all I need to do is wait another couple hours to see if this works. |
|
Back to top |
|
 |
epvipas n00b

Joined: 13 Oct 2002 Posts: 9 Location: Lincoln UK
|
Posted: Tue Oct 15, 2002 9:26 pm Post subject: |
|
|
It seems that no one is having much luck with getting java or any other plugins to work on gentoo 1.4.
I am running gentoo 1.4 in a dual boot with Windows XP. I regularly go into a java-based chat room and find that I am completely unable to get into this with Mozilla, Konquereor or Opera. I am able to get in with the old version of netscape that ebuilds with gentoo.
I wish to run java applets and was wondering what was the best way to go about this. I am willing to be unprincipled and use precompiled binaries if necessary.
Has anyone had any luck with anything except netscape. I tried installing a binary version of netscape 7.0 but this simply crashed
Ed |
|
Back to top |
|
 |
Scott_the_Great n00b

Joined: 08 Aug 2002 Posts: 21
|
Posted: Wed Oct 16, 2002 8:32 pm Post subject: |
|
|
Yes, my install works fine (in mozilla-1.1).
I used (and somewhat wrote/tweaked, I guess) the ebuild posted earlier in this thread.
I've seen a lot of people saying that it (the ebuild) doesn't work for them, but little information that might be helpful in figuring out what might be going wrong. (There were, of course, probably a couple people who didn't feel it was necessary to pay attention to my "notes" section on the how to get it to work...)
I'm willing to tweak that ebuild more (so that at least some of the notes would not be required) but I'm more interested in getting some more people to have success with it first.
If anyone has tried it, or wants to try it, let me know exactly what problems you have, and I can try to help out.
---Scott (happily using java in mozilla-1.1 compiled with gcc3.2!) |
|
Back to top |
|
 |
yokem55 Guru

Joined: 18 Apr 2002 Posts: 360 Location: Oregon
|
Posted: Wed Oct 16, 2002 9:45 pm Post subject: |
|
|
Should this work also for mozilla 1.0.1? 1.1 is still too buggy for my tastes (try surfing around ebay for a little bit w/ 1.1 and you'll find out in short order when you "go back") so I'm trying to get Java working with that version instead.....I managed to get the ebuild to compile and install properly, and it works under konq (but not using the plugin, just pointing konq to the java executable), but mozilla, although it recognizes the plugin, crashes and burns whenever it hits a site with a java applet....
I'm also unable to get flash, arcroread, or realplayer to work properly either. Flash causes a crash and burn, as does acroread, and moz won't even recognize the realplayer plugin, so the problem may be bigger than just java. I tried rebuilding moz 1.01 with -gtk2 in my use to see if that helped to no avail....I'm beginning to start pulling my hair out....maybe I'll build the vanilla moz 1.0. |
|
Back to top |
|
 |
dreamer3 Guru

Joined: 24 Sep 2002 Posts: 553
|
Posted: Thu Oct 17, 2002 1:59 am Post subject: |
|
|
Scott_the_Great wrote: | P.S. If anybody actually uses this ebuild with success, I'll probably look into fixing some of the "notes" mentioned above... |
I followed all your notes and now have the Java SDK 1.4 plugin compiled and working with my Mozilla 1.0.1. Not sure how stable it is yet, but it appears to load Yahoo Chat and ICQ2Go. I can't seem to get ICQ2Go to function correctly without a slew of errors, but I don't know if this is simply ICQ2Go or the Java's problem.
You can pass either the -n (don't overwrite) or -o (overwrite) to unzip when unzipping the sun sources to avoid the prompt. I chose the -n option since it's just a text file and not important to the bulid process anyways.
Also, should unzip be added to the builds list of dependencies? It IS needed afterall to unzip the files from SUN and it's not part of a base Gentoo install I don't believe... just a thought.
I can't recall any "gotchas" I had... just read the notes, followed them and used your ebuild with the modifications I describe above. Haven't re-emerged openmotif yet, but I'm sure this won't be a big deal... |
|
Back to top |
|
 |
dreamer3 Guru

Joined: 24 Sep 2002 Posts: 553
|
Posted: Thu Oct 17, 2002 2:12 am Post subject: |
|
|
Ok, further testing reveals that the Java applet support works but it's very quirky... I don't think something is right. In Yahoo chat I can't type more than like 2 char without the entry box somehow losing the focus and needing another click to get back in in (every 2 chars it does this). Clicking the "Send" button does nothing, though hitting enter sends the message.
Dialogs and preferences and stuff SEEM to work, but lots of quirky happenings. |
|
Back to top |
|
 |
Lovechild Advocate


Joined: 17 May 2002 Posts: 2858 Location: Århus, Denmark
|
Posted: Sun Oct 20, 2002 2:14 am Post subject: |
|
|
The ebuild now works for me (dumb me forgot step2 - as pointed out to me, I feel dumb now) - but Scott, you might want to remember that zip is a dependency for the sun-j2sdk - at least it failed the first time around for me because I didn't have that installed.
Also could expect be used to answer the overwrite question, so that this would require on interaction ?
My new Java 1.4.0 works beautifully in Konqueror, now to get Flash back on GCC3 (much harder, no source - and I don't want GCC2 stuff installed)
Thank you very much. |
|
Back to top |
|
 |
SlCKB0Y Tux's lil' helper

Joined: 07 Jul 2002 Posts: 105 Location: Sydney, Australia
|
Posted: Sun Oct 20, 2002 2:41 am Post subject: |
|
|
I managed to pull all the needed files off the two sites except i couldnt find
j2sdk-1_4_0-mozilla_headers-unix.zip
is this still on the java site? or is it no longer needed or something? |
|
Back to top |
|
 |
simbloke n00b

Joined: 19 Oct 2002 Posts: 8 Location: UK
|
Posted: Sun Oct 20, 2002 6:01 pm Post subject: |
|
|
SlCKB0Y wrote: | I managed to pull all the needed files off the two sites except i couldnt find
j2sdk-1_4_0-mozilla_headers-unix.zip
is this still on the java site? or is it no longer needed or something? |
I've just started doing this...
On the Sun page near the start of the miserable chain of pages leading to the source download there is another link that says something like 'Mozilla binaries'. Well, follow that and go through a similarly miserable set of pages to finally download the mozilla headers.
Jeez, Sun need to get a grip of their website!
Mine's compiling now, fingers crossed...
Sim |
|
Back to top |
|
 |
yokem55 Guru

Joined: 18 Apr 2002 Posts: 360 Location: Oregon
|
Posted: Sun Oct 20, 2002 8:11 pm Post subject: |
|
|
Okay, I got Java working using the shell script. Java applets are now working in Moz 1.0.1. In order to get flash and acrobat reader working I had to follow the instruction in this thread:
https://forums.gentoo.org/viewtopic.php?t=4753
Those instructions don't apply for plugins in Mozilla 1.1.
Now I still cannot get the native RealPlayer plugin to be even recognized by mozilla, and the Crossover plugins, while recognized, are not activated, and their mime types don't get registered in mozilla. Ideally, I would be able to have those plugins working as well. |
|
Back to top |
|
 |
_SkeLeToN_ Guru


Joined: 12 Sep 2002 Posts: 506 Location: Montreal,Canada
|
Posted: Sun Oct 20, 2002 9:15 pm Post subject: |
|
|
Hey guys where do I download those file from sun webpage. Their site is so darn hard to get files and stuff ....
j2sdk-1_4_0-src-scsl.zip
- j2sdk-1_4_0-motif-linux-i386.zip
- j2sdk-1_4_0-mozilla_headers-unix.zip |
|
Back to top |
|
 |
pac1085 n00b


Joined: 25 Sep 2002 Posts: 18 Location: Rochester, NY, USA
|
Posted: Mon Oct 21, 2002 11:15 pm Post subject: |
|
|
Thanks for the ebuild, it worked flawlessly for me!
Scott_the_Great wrote: | YAY, I've got java working!!!
NOTES:
1. In order to get my ebuild to work, I was forced to un-emerge (-C) "openmotif" as per various other threads on the forums. You can probably try using "/usr/lib/portage/bin/quickpkg" to store the already-merged version, and then have emerge (or ebuild) simply re-install from that package. (I have not yet tried the re-install step for openmotif...)
2. You'll need to copy "/usr/portage/dev-java/sun-jdk/files/sun-jdk-1.4.0" into the files directory under the ebuild as "sun-j2sdk-1.4.0".
3. You'll have to run "ebuild sun-j2sdk-1.4.0-r1.ebuild digest" in order to build the digests.
4. The script will report errors if you haven't downloaded the required files from SUN and put them in "/usr/portage/distfiles". However, I believe that if you don't have any of them, it will die with an error telling you which one is missing and where to get it from. After it dies, however, it may be necessary to run an "ebuild ... clean" in order to get the working directory reset. (This may not be necessary if you use "emerge" instead of "ebuild"...)
5. While doing the "unpack" it asks for you to say "y" once (to overwrite a file). I assume that there's an easy way to add a "-f" to this procedure, but I was more interested in the fact that it worked...
Okay, here's my ebuild for "dev-java/sun-j2sdk-1.4.0-r1.ebuild":
Code: |
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvs/portage/dev-java/sun-j2sdk/sun-j2sdk-1.4.0-r1.ebuild,v 1.1 2002/10/10 00:43:27 scotth Exp $
# quick half-automated build-script to build J2SDK 1.4 from source
# 2002-09-29 by Jeroen Versteeg
. /usr/portage/eclass/inherit.eclass
inherit java
SUN_BINARY="j2sdk-1_4_0_02-linux-i586.bin"
HOMEPAGE="http://java.sun.com/j2se/1.4/download.html"
SUN_SOURCES="j2sdk-1_4_0-motif-linux-i386.zip
j2sdk-1_4_0-src-scsl.zip
j2sdk-1_4_0-mozilla_headers-unix.zip"
HOMEPAGE_SRC="http://wwws.sun.com/software/java2/download.html"
OLD_LIBSTDCPP="libstdc++-libc6.1-1.so.2.bz2"
HOMEPAGE_OLD="http://www.linuxfromscratch.org/~timothy/misc/"
SDK_PATCHES="j2sdk-1.4.0-fix-intl-files.patch.bz2
j2sdk-1.4.0-gcc3-syntax.patch.bz2
j2sdk-1.4.0-link-jpda-2-libjvm.patch.bz2
j2sdk-1.4.0-remove-fixed-paths.patch.bz2"
HOMEPAGE_PATCH="http://tushar.lfsforum.org/files/JavaFromScratch/"
S=${WORKDIR}/j2sdk1.4.0_02
SRC_URI="${HOMEPAGE_OLD}${OLD_LIBSTDCPP}"
for F in $SDK_PATCHES; do
SRC_URI="${SRC_URI} ${HOMEPAGE_PATCH}${F}"
done
DESCRIPTION="Sun's J2SE Development Kit, version 1.4.0"
LICENCE="sun-bcla"
SLOT="1.4"
KEYWORDS="x86 -ppc"
DEPEND="virtual/glibc
>=dev-java/java-config-0.2.5"
RDEPEND="$DEPEND"
PROVIDE="virtual/jre-1.4
virtual/jdk-1.4
virtual/java-scheme-2"
src_unpack() {
if [ ! -f ${DISTDIR}/${SUN_BINARY} ] ; then
die "Please download ${SUN_BINARY} from ${HOMEPAGE} (select the \"Linux self-extracting file\" package format of the SDK) and move it to ${DISTDIR}. Note: You can find archived releases from http://java.sun.com/products/archive/"
fi
tail +336 ${DISTDIR}/${SUN_BINARY} > install.sfx
chmod +x install.sfx
./install.sfx || die
rm install.sfx
cd ${S}/jre/lib/i386
bzip2 -dc ${DISTDIR}/libstdc++-libc6.1-1.so.2.bz2 > ./libstdc++-libc6.1-1.so.2
chmod a+x ./libstdc++-libc6.1-1.so.2
for F in ${SUN_SOURCES}; do
if [ ! -f ${DISTDIR}/${F} ]; then
die "Please download ${F} from ${HOMEPAGE_SRC} and move it to ${DISTDIR}."
fi
done
mkdir ${S}/src
cd ${S}/src
for F in ${SUN_SOURCES}; do
unzip ${DISTDIR}/${F};
done
cd ${S}/src
# apply various patches (somewhat optional)
bzip2 -dc ${DISTDIR}/j2sdk-1.4.0-gcc3-syntax.patch.bz2 > ./j2sdk-1.4.0-gcc3-syntax.patch
patch -p 1 < j2sdk-1.4.0-gcc3-syntax.patch
bzip2 -dc ${DISTDIR}/j2sdk-1.4.0-remove-fixed-paths.patch.bz2 > ./j2sdk-1.4.0-remove-fixed-paths.patch
patch -p 1 < j2sdk-1.4.0-remove-fixed-paths.patch
bzip2 -dc ${DISTDIR}/j2sdk-1.4.0-fix-intl-files.patch.bz2 > ./j2sdk-1.4.0-fix-intl-files.patch
patch -p 1 < j2sdk-1.4.0-fix-intl-files.patch
bzip2 -dc ${DISTDIR}/j2sdk-1.4.0-link-jpda-2-libjvm.patch.bz2 > ./j2sdk-1.4.0-link-jpda-2-libjvm.patch
patch -p 1 < j2sdk-1.4.0-link-jpda-2-libjvm.patch
rm ${S}/src/*.patch
}
src_compile() {
# system specific C(XX) flags:
MY_CFLAGS="${CFLAGS}"
MY_CXXFLAGS="${CXXFLAGS}"
# build dir for java sources
export SRC=${S}/src
cd ${S}
export JAVA_HOME=${S}
# copy-paste from http://tushar.lfsforum.org/javafromscratch.txt
export ALT_BOOTDIR="$JAVA_HOME"
export ALT_MOTIF_DIR=$SRC
export ALT_MOZILLA_PATH=$SRC
export ALT_DEVTOOLS_PATH="/usr/local/bin"
export MILESTONE="jv_compiled"
export BUILD_NUMBER=`date +%Y-%m-%d`
export DEV_ONLY=true
export OTHER_LDFLAGS="-lpthread"
unset JAVA_HOME
unset CLASSPATH
export CFLAGS=""
export CXXFLAGS=""
export OTHER_CFLAGS="$MY_CFLAGS"
export OTHER_CXXFLAGS="$MY_CXXFLAGS"
export MAKE_VERBOSE=true
export INSANE=true
cd $SRC/control/make
make || exit 1
}
src_install() {
dodir /opt/${P}
cp -a ${S}/src/control/build/linux-i386/j2sdk-image/* ${D}/opt/${P}
if [ "`use mozilla`" ] ; then
dodir /usr/lib/mozilla/plugins
dosym /opt/${P}/jre/plugin/i386/ns610/libjavaplugin_oji140.so /usr/lib/mozilla/plugins/
fi
set_java_env ${FILESDIR}/${VMHANDLE}
}
pkg_postinst() {
java_pkg_postinst
}
|
Let me know of any success (or failures) that you may encounter.
Good Luck.
P.S. If anybody actually uses this ebuild with success, I'll probably look into fixing some of the "notes" mentioned above...
---Scott |
_________________ Always standing, I am a tree awaiting the lightning. -Samael, Crown |
|
Back to top |
|
 |
Mnemia Guru


Joined: 17 May 2002 Posts: 476
|
Posted: Wed Oct 23, 2002 6:23 am Post subject: |
|
|
The inanity of Sun's website is a royal pain. I wish these companies wouldn't make us jump through so many hoops to get this stuff. Oh well, at least I lied on all my info during registration.
It's handy to remember the zip code for somewhere you USED to live when these sites try to "validate" your address
Oops, I guess I'm in violation of the license agreement. Like I care, especially after they made their website such a pain. They can try to find me
But on a more positive note, the ebuild works great!!! Thanks a lot.
Now, does anyone know why none of the commercial JVMs have started to support gcc3.2 in their binary releases? This makes little sense to me considering that it will soon be the standard for all distros and that at least one major distro (Mandrake?) already uses it. |
|
Back to top |
|
 |
stegmaie n00b

Joined: 31 Aug 2002 Posts: 34
|
Posted: Wed Oct 23, 2002 8:16 am Post subject: CFLAGS ignored? |
|
|
Hi!
I'm having problems with my own compiled Java (I did it manually as described in the LFS article) and the Math.Pow method... perhaps you all want to have a look at my other post in Portage/Programming...
So I decided to build it again using the ebuild with less optimzations. The ebuild works fine. But: I wanted to compile using "-march=athlon-xp -O2 -pipe". Because I didn't know exactly whether the settings in make.conf are used, I changed the ebuild to use these flags (I directly added the flags to MY_CFLAGS and MY_CXXFLAGS). Everytime I had a look at the compilation, my march=... flag didn't show up, -O3 and a bunch of other flags were used... are my settings ignored? Doing it manually without the ebuild these settings were used... as far as I can remember. And the sad thing... Math.pow doesn't work with the fresh compile, too. Any ideas?
stegmaie |
|
Back to top |
|
 |
Scott_the_Great n00b

Joined: 08 Aug 2002 Posts: 21
|
Posted: Wed Oct 23, 2002 8:29 pm Post subject: |
|
|
Okay, I spent some time editing the ebuild, but I haven't yet bothered to re-compile my system so I have no idea if it really works or not.
However, there are a couple of simple changes which can make things a little prettier:
1. Change the DEPEND to:
Code: | DEPEND="virtual/glibc
>=dev-java/java-config-0.2.5
app-arch/unzip
sys-devel/patch
sys-apps/bzip2
sys-apps/portage"
|
2. Add "-o" to the unzip command: (should force overwritting, according to man page)
Code: | unzip -o ${DISTDIR}/${F}
|
3. At the beginning of src_compile() add:
Code: | # craziness (the plugin doesn't seem to actually work if openmotif is installed...)
local openmotif_version = `ls /var/db/pkg/x11-libs | grep openmotif`
if [ "$openmotif_version" != "" ]; then
/usr/lib/portage/bin/quickpkg /var/db/pkg/x11-libs/${openmotif_version}
emerge -C openmotif
fi
|
4. At the end of src_compile() add:
Code: | # Re-emerge openmotif if we "un-merged" it earlier...
if [ "$openmotif_version" != "" ]; then
emerge --usepkg /usr/portage/packages/All/${openmotif_version}.tbz2
fi
|
I will look into the CFLAGS issue when I re-compile my plugin with these changes to the script (perhaps tonight...)
Thanks for all the suggestions and success stories.
---Scott |
|
Back to top |
|
 |
Lovechild Advocate


Joined: 17 May 2002 Posts: 2858 Location: Århus, Denmark
|
Posted: Wed Oct 23, 2002 9:10 pm Post subject: |
|
|
ok Scott, the -o thing works but the openmotif thing doesn't
Here's what it get's me.
/usr/sbin/ebuild.sh: line 95: local: `=': not a valid identifier
/usr/sbin/ebuild.sh: line 95: local: `openmotif-2.2.2-r1': not a valid identifier
Also, might we not also just be able to add the copying of the sun-jdk file in the ebuild? |
|
Back to top |
|
 |
stegmaie n00b

Joined: 31 Aug 2002 Posts: 34
|
Posted: Thu Oct 24, 2002 8:29 am Post subject: |
|
|
I played a bit yesterday... obviously the jvm is built using fixed flags. I found them in the file gcc.make somewhere below src/hotspot/... There is no special optimization other than -O3 and no -march flag.
I tried to reduce -O3 to -O2, but therewith it doesn't finish the build... I don't know why. So, I tried adding -march=i686 as it obviously is considered to be stable. Therewith it compiled, but Math.pow again produced wrong results. BTW: If I run the class file compiled with my java using a different jvm (original sun), everything is fine, so only the jvm seems to be affected.
I really don't know what to do next... perhaps I have a look at the used patches... |
|
Back to top |
|
 |
Lovechild Advocate


Joined: 17 May 2002 Posts: 2858 Location: Århus, Denmark
|
Posted: Thu Oct 24, 2002 8:33 am Post subject: |
|
|
Also, compile seems to fail on the unstable branch now, I'm guessing Java no likely gcc3.2-r2 or glibc 2.3.1 |
|
Back to top |
|
 |
IWBCMAN Guru


Joined: 25 Jun 2002 Posts: 474
|
Posted: Thu Oct 24, 2002 10:15 am Post subject: |
|
|
I went ahead and did some thing foolish , I switsched to UNSTABLE- at this point everything seems to be working but......now java (my own compiled j2sdk) has bit the dust(reports something about relocation error!). I followed Tushars hints a while back and compiled my own j2sdk- it never worked with the mozilla 1.0-1.1 series, only with 1.2a/b did it work-(i mean the libjavaplugin-the rest worked fine). Now my libjavaplugin doesn't work anymore, again. So I decided to try to compile j2sdk again. I copied the ebuild script and shell script from the first page of this forum and tried both, to no avail...
For the life of me I cannot figure out where all the files go
I have downloaded all of the files(from sun and from tushar)
the ebuild script simply bombs giving a non-meaningful error. the shell script can't figure out where the patches are to be applied....
I trully appreciate the work that many here have offered, but I cannot figure out where I need to put what in order to get either the ebuild or the shell script to function....
I even tried stripping the shell script down to being nothing more than a list of exports- I named it 'build'
Quote: |
#! /bin/bash
# system specific C(XX) flags:
MY_FLAGS="-march=i686 -O2 -pipe"
# build-root
BUILD_ROOT=/usr/local/src/java
# build dir for java sources
export SRC=$BUILD_ROOT
#cd $BUILD_ROOT
export JAVA_HOME=$BUILD_ROOT
# copy-paste from http://tushar.lfsforum.org/javafromscratch.txt
export ALT_BOOTDIR="$JAVA_HOME"
export ALT_MOTIF_DIR=$SRC
export ALT_MOZILLA_PATH=$SRC
export ALT_DEVTOOLS_PATH="/usr/local/bin"
export MILESTONE="jv_compiled"
export BUILD_NUMBER=`date +%Y-%m-%d`
export DEV_ONLY=true
export OTHER_LDFLAGS="-lpthread"
unset JAVA_HOME
unset CLASSPATH
export CFLAGS=""
export CXXFLAGS=""
export OTHER_CFLAGS="$MY_FLAGS"
export OTHER_CXXFLAGS="$MY_FLAGS"
export MAKE_VERBOSE=true
export INSANE=true
#cd $BUILD_ROOT/control/make
#make
|
I created a directory called
/usr/local/src/java
I then linked, smybolically, /opt/sun-jdk-1.4.0/bin to /usr/local/src/java/bin
I copied all of the files and patches to this directory(usr/local/src/java)
I unipped everything in this directory(usr/local/src/java)
I applied all of the patches, went with a hitch, ie. patcth -p1 < gcc3-insanity.......
then I edited the "build" file and tried to make sure the paths were all right
then I did a
source build
and then
cd ./control/make &&
make
.....
no luck, 4 hours later it bombs.....
I had also uninstalled openmotif
and this is not my first attempt-and I had already succeffully cxompiled the sucker-but now it doesn't want to work anymore
with this in mind:
using either the shell script or the ebuild
a) which directories need to be created in order to get either of these to work
b) where should the bzip2 patches be located
c) where should the .zip files be located
My basic problem is that I find it difficult to unravel the level of indirection used in scripts as regards the path-I know absolute paths are boring, inflexible, yada yada-but my brain cells aren't what they used to be. I studied bothe the shell script and the ebuild to no avail, and I followed the steps described her in painstaking detail...one day I will find a script which does something I fully comprehend-and then I will understand the relations-but Iuntil then I am stumbling in the dark-I end up taking the "half-automated" part of these script and turning it into a "non-automated" wannabe-script......
any help would be greatly appreciated.... |
|
Back to top |
|
 |
okram n00b

Joined: 06 Aug 2002 Posts: 74 Location: Taipei, Taiwan
|
Posted: Fri Oct 25, 2002 3:30 am Post subject: openmotif tip from tushar |
|
|
Well, I keep having the same old problems and got a very nice tip from tushar: don't unmerge openmotif, just rename libXm.a to libXm.a.save, do your work and give it its original name back. That bit works, but for the rest there are still weird problems.
Weirdest of all is that I gave up on compiling my own java, returned to precompiled mozilla with precompiled java (sun-jdk-1.4.1) and the precompiled, binary plugin now only works if libXm.a is not around to mess things up (i.e. renamed). Any ideas why this should now affect precompiled binaries, too? |
|
Back to top |
|
 |
OmniVector n00b

Joined: 21 Oct 2002 Posts: 37 Location: Rochester, NY
|
Posted: Fri Oct 25, 2002 7:04 am Post subject: |
|
|
I wrote this script for compiling and installing java
http://tristan.halo43.com/files/gentoojava1.4.0.tar.bz2
just tar -xvjpf the file, and run install.sh as root.
the rest is done for you
i'd make an ebuild script if i knew how, but this works so eh. _________________ -Tristan |
|
Back to top |
|
 |
jest3r n00b

Joined: 23 Oct 2002 Posts: 3
|
Posted: Tue Oct 29, 2002 3:37 pm Post subject: OmniVectors Script -- thanks! |
|
|
After I ran your script I had to manually fix the mozilla plugin link to the java plugin .. and now Java works great in Mozilla .. thanks .. back to playing Java Euchre  |
|
Back to top |
|
 |
_SkeLeToN_ Guru


Joined: 12 Sep 2002 Posts: 506 Location: Montreal,Canada
|
Posted: Tue Oct 29, 2002 4:53 pm Post subject: |
|
|
Yeah I had to do the samething and the weird thing is that the symlink was good even if the path to the plugin was wrong... anyways it works now yeah.  |
|
Back to top |
|
 |
Cloim Tux's lil' helper

Joined: 02 Aug 2002 Posts: 99
|
Posted: Wed Oct 30, 2002 1:25 am Post subject: |
|
|
Alright. I opted to try this. After a few hours the compile fails with Code: | ciEnv.o: No space left on device |
At least it's something I understand this time around. But how much space do I need? This is on a 1 Gb partition that has worked successfully on everything I've emerged (X, KDE, Gnome, etc). There was 134 Mb of gunk in portages temp dir, but still...
I have a larger partition I can move the build to, just thought I'd warn the next guy. |
|
Back to top |
|
 |
|