swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java swarm help, please!


From: Marcus G. Daniels
Subject: Re: Java swarm help, please!
Date: 26 Nov 2000 18:42:57 -0800
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

I looked at running Java Swarm models on FreeBSD 4.0, and the basic
problem there is that the FreeBSD dynamic linker doesn't handle symbol
lookups for dependent shared libraries.

For example, if liba.so defines "foo" and libb.so depends on liba.so,
if you open libb.so and ask for "foo", you get no symbol value. 

Here's a workaround patch that can be applied to Kaffe that will at 
least get things going.

*** /src/kaffe/libltdl/ltdl.c   Thu Oct 12 05:03:27 2000
--- ltdl.c      Mon Nov 27 02:37:32 2000
***************
*** 324,330 ****
--- 324,334 ----
        lt_module_t module;
        const char *symbol;
  {
+ #if 0
        lt_ptr_t address = dlsym(module, symbol);
+ #else
+       lt_ptr_t address = dlsym(RTLD_NEXT, symbol);
+ #endif
        
        if (!address)
  #if HAVE_DLERROR


Also you'll need to define some values for LLONG_{MIN,MAX} in misc.h.
You can do that like so:

Index: misc.h
===================================================================
RCS file: /cvs/hive/Swarm/swarm/src/misc/misc.h,v
retrieving revision 1.40
diff -c -r1.40 misc.h
*** misc.h      2000/02/12 01:38:49     1.40
--- misc.h      2000/11/27 02:42:01
***************
*** 121,126 ****
--- 121,127 ----
  long long strtoll (const char *nptr, char **endptr, int base);
  #endif
  
+ #if 0
  #ifndef LLONG_MIN
  #ifdef LONG_LONG_MIN
  #define LLONG_MIN LONG_LONG_MIN
***************
*** 139,144 ****
--- 140,149 ----
  #else
  #error long long max value missing
  #endif
+ #endif
+ #else
+ #define LLONG_MAX QUAD_MAX
+ #define LLONG_MIN QUAD_MIN
  #endif
  
  const char *find_executable (const char *program_name);

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]