Hi there,

I just began using Freenet a few days ago. I am totally impressed by the philosophy of 
the project, and the functionality has been improving steadily (I've been methodically 
gathering node references and adding them to my seednodes file so that each time I 
need to restart the node, it begins life a little smarter than the last time.) These 
node refs are available at <http://www.dartmouth.edu/~marionba/noderefs.html>

I am running the June 1 snapshot on OS X 10.1 on a G4 466MHz. The configure script 
only needed two very minor tweaks to run properly, which I sent to David McNab but he 
told me I should send them to the devl list, which I will do. But I thought I'd post 
them here as well. Apologies if these glitches are already known to everyone.

1- On OS X the compiler is called cc. the configure script only looks for gcc, so it 
thought I had no compiler.
 
2- The "make install" portion of the process looks for /usr/src/bin/install. On OS X, 
this is located in /usr/bin/install.
 
I fixed both problems with symlinks. Like I said, so minor they're hardly worth 
considering for the next release, but new users may find them vexing. At the very 
least, you can add OS X to the official "successfully compiled on these platforms" 
list. (Assuming the user has the OS X Developer Tools, of course.)

Now for the problem part. Yesterday I tried to get the June 2 snapshot running on a 
fairly stock RH 7.2 install on my PC. Did not go well. I got the "Kaffe configure 
script did not detect GNU gmp" error, and I found a long thread in the mailing list 
archive on the Kaffe site that addressed this problem, but none of their suggested 
fixes worked for me (or the guy who'd posted to the list initially) and the thread 
sort of petered out with no real resolution. From the Freenet support archive, I found 
this:

===========================================================
>From [EMAIL PROTECTED]  Mon Sep 10 20:59:33 2001
From: [EMAIL PROTECTED] (Thomas Formella)
Date: Mon, 10 Sep 2001 21:59:33 +0200
Subject: [freenet-support] I can't install Freenet
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

nestorac wrote:
> 
> I have a RedHat 7.1 O.S. with kaffe 1.0.6-3 and gmp 3.1.1-3 installed
> into a AMD K-7 processor with 258 Mb of Ram and 40 Gb of hard disk.
> My problem is that I type "./freenet_config ./freenetrc" in the
> installation directory as root ("/home/Nestor/Documentos/Freenet") and
> it gives me this error message:
> 
> [root@localhost Freenet]# ./freenet_config ./freenetrc
> 
> + java Freenet.scripts.Setup ./freenetrc
> java.lang.ExceptionInInitializerError: [exception was
> kaffe.util.SupportDisabled: GNU gmp was not found by Kaffe configure
> script]

The easiest way would be to use IBMs JDK
http://www-106.ibm.com/developerworks/java/jdk/linux130/?dwzone=java
If not possible, the following note may help you (taken from the README
file):

NOTES ON USING KAFFE
--------------------

Freenet requires Kaffe to be built with the gmp (GNU multiple precision)
library.  If you build Kaffe from source, check that the 'configure'
script correctly detects your gmp library before issuing 'make'.  You
need to see both of these lines of output:

  checking for mpz_get_d in -lgmp... yes
  checking for gmp.h... yes

Kaffe-1.0.6's configure did not correctly detect libgmp3 and needed to
be tweaked slightly (mpz_get_d -> __gmpz_get_d in several places).

The compiler used is 'kjc' which you can download from
http://www.dms.at/

There is also a bug in Kaffe-1.0.6's BigInteger library that causes
problems. Patching Kaffe with the following patch will fix it:

--- kaffe/libraries/clib/math/BigInteger.c      Fri Jul 21 17:41:26 2000
+++ kaffe-1.0.6/libraries/clib/math/BigInteger.c        Sun Sep 24
15:09:19 2000
@@ -508,7 +508,7 @@
 
        src = (mpz_srcptr)(*env)->GetObjectField(env, s, number);
 
-       return 
===========================================================

Some of the messages on the Kaffe list mentioned changing mpz_get_d -> __gmpz_get_d 
in, I believe, gmp.h. The versions of both that I was using already had this patch 
applied (I used recent Kaffe snapshot that was supposed to fix this very problem, but 
didn't). One list member said that you need to see this...

   $ grep gmp config.cache
    ac_cv_header_gmp_h=${ac_cv_header_gmp_h=yes}
    ac_cv_lib_gmp_mpz_get_d=${ac_cv_lib_gmp_mpz_get_d=yes}

...after running ./configure (and after deleting the old config.cache). I never got a 
"yes" for the second one.

I realize that this is a Kaffe problem and not a Freenet problem, but I tried 
everything they suggested (at least, everything I could understand -- I am not a 
programmer). Part of the above message says "use IBM's jdk" -- that's a little too 
casual of a statement for me. If I go to that URL, what do I need to download? What if 
anything would I need to change in the Freenet code to get it to use that instead of 
the broken Kaffe installation? Any ideas here?

Thank you very much, 

-- MB

_______________________________________________
support mailing list
[EMAIL PROTECTED]
http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/support

Reply via email to