swarm-support
[Top][All Lists]
Advanced

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

Re: [Swarm-Support] Using java with Swarm on Mac OS X


From: mike long
Subject: Re: [Swarm-Support] Using java with Swarm on Mac OS X
Date: 22 May 2003 15:26:34 -0400

On Wed, 2003-05-21 at 15:00, address@hidden wrote:
> Send Support mailing list submissions to
>       address@hidden
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>       http://www.swarm.org/mailman/listinfo/support
> or, via email, send a message with subject or body 'help' to
>       address@hidden
> 
> You can reach the person managing the list at
>       address@hidden
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Support digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: Using java with Swarm on Mac OS X (Marcus G. Daniels)
>    2. RH7.3 and 9 RPMs for newest swarm snapshot (Paul E. Johnson)
>    3. Re: RH7.3 and 9 RPMs for newest swarm snapshot (Marcus G. Daniels)
>    4. Re: Swarm again (Paul Johnson)
>    5. A Question about native libraries accessed by Java on OS X (mike long)
>    6. Re: A Question about native libraries accessed by
>        Java on OS X (Marcus G. Daniels)
>    7. Re: Multi agent environment interaction (Kanagaraj Krishna)
> 
> --__--__--
> 
> Message: 1
> Date: Tue, 20 May 2003 13:16:44 -0600
> From: "Marcus G. Daniels" <address@hidden>
> To: address@hidden
> Subject: Re: [Swarm-Support] Using java with Swarm on Mac OS X
> Reply-To: address@hidden
> 
> mike long wrote:
> 
> >I have been using Swarm on Linux using Java for awhile now and have
> >decided to use it on the Mac instead. I have successfully installed the
> >Swarm binaries on OS X. 
> >
> It's not working.
> 
> The remaining problem is a crash in the Objective C runtime as the 
> javaswarm.dll is loaded.
> The usual reason for this is that the dynamic linker doesn't call the 
> constructors or doesn't call them in the right order.  However, this 
> doesn't seem to be the case.   Perhaps it has to do with some namespace 
> clash against symbols already in the MacOS X Java runtime.   Someone 
> needs to get their hands good and bloody and figure out what's happening.
> 
> Another idea is to get Kaffe working (if nothing else an environment 
> where there is source code to everything.)
> If there is a more general bug, a non-JVM related problem happening, 
> that might make it easier to figure out.
> 
> 
> --__--__--
> 
> Message: 2
> Date: Tue, 20 May 2003 22:44:20 -0500
> From: "Paul E. Johnson" <address@hidden>
> To: address@hidden, Thomas Badegruber <address@hidden>
> Subject: [Swarm-Support] RH7.3 and 9 RPMs for newest swarm snapshot
> Reply-To: address@hidden
> 
> I decided to upgrade all my RedHat systems but one, so the RH 7.3 system 
> I have left needed new Swarm, and all of you users of last year's RH 
> benefit:
> 
> 
> Here is the announcement:
> 
> *New Swarm RPMS for RH 7.3 systems*
> 
> I just rebuilt hdf5-1.4.5post2 and Swarm-2.1.143.20030513 on a RedHat 
> 7.3 system.
> 
> The RPMS are posted here, as usual:
> 
> http://lark.cc.ku.edu/~pauljohn/Swarm/Swarm-2.2x_RPMSforRH7.3/
> 
> These were built with gcc3 from the packages posted here:
> 
> http://lark.cc.ku.edu/~pauljohn/Swarm/miscSupportSoftware/gcc-upgrades/3.0.4RH72/
>  
> <http://lark.cc.ku.edu/%7Epauljohn/Swarm/miscSupportSoftware/gcc-upgrades/3.0.4RH72/>
>  
> 
> 
> I believe it is necessary for you to have gcc3 to install these RPMs. 
> But the gcc3 that RedHat distributes will suffice, I think. Try for 
> yourself, let me know.
> 
> *About Java Support*
> 
> I just installed this rpm from Sun in order to support Sun JDK: * 
> j2sdk-1.4.1_02-fcs *
> 
> In case you want to install swarm-jdk, you need that. OR else you need 
> to do some fancy footwork with symbolic links and RPM dependencies.
> 
> 
> Now, about RedHat 9.
> 
> 
> In case you are a RH9 user, of course, I also have the big delicious 
> treat for you, but I think everybody knew about that one:
> 
> http://lark.cc.ku.edu/~pauljohn/Swarm/Swarm-2.2x_RH9.0/
> 
> use 
> 
> hdf5-1.4.5post2-1RH90.i386.rpm
> 
> swarm-2.1.143.20030512
> 
> 
> About this new RPM that the rpm builder just started making:
> 
> swarm-debuginfo-2.1.143.20030512-1RH9.0.i386.rpm
> 
> This is an optional install that contains information that gdb can read 
> when you are trying to debug Swarm itself. I have confirmed with the RPM 
> team that this is not a required package in any sense. Rather, it is a 
> collection of elements that RPM used to throw away when compiled files 
> were stripped.  So it is an enhancement. gdb should work the same as it 
> always did for you even if you do not install this package.
> 
> The swarm-static package is needed only if you want to try to compile 
> Swarm programs statically (with no shared libraries) or if you want to 
> profile a Swarm program.  I don't know of any other uses for 
> swarm-static, but I'm always keeping my  ears open.
> 
> -- 
> Paul E. Johnson                       email: address@hidden
> Dept. of Political Science            http://lark.cc.ukans.edu/~pauljohn
> University of Kansas                  Office: (785) 864-9086
> Lawrence, Kansas 66045                FAX: (785) 864-5700
> 
> 
> 
> --__--__--
> 
> Message: 3
> Date: Tue, 20 May 2003 23:04:38 -0600
> From: "Marcus G. Daniels" <address@hidden>
> To: address@hidden
> Subject: Re: [Swarm-Support] RH7.3 and 9 RPMs for newest swarm snapshot
> Reply-To: address@hidden
> 
> Paul E. Johnson wrote:
> 
> > I  don't know of any other uses for swarm-static, but I'm always 
> > keeping my  ears open. 
> 
> Static executables are somewhat faster, especially on x86 ELF-based 
> systems like Linux.
> 
> 
> --__--__--
> 
> Message: 4
> Date: Wed, 21 May 2003 08:32:04 -0500
> From: Paul Johnson <address@hidden>
> To: Izak Burger <address@hidden>, address@hidden
> Subject: [Swarm-Support] Re: Swarm again
> Reply-To: address@hidden
> 
> Hello, Izak
> 
> You have happened upon the libtool scourge.  I see the same in RedHat 
> when certain versions of libtool exist.
> 
> Here's the problem. libtool is looking in /usr/lib/swarm but instead the 
> files are in /tmp/swarm-root/usr/lib/swarm.  At one time, I had changed 
> the ltmain.sh in Swarm to avoid this, but that changed did not work with 
> one version of libtool or another, so it got ditched.
> 
> So here is the fix.
> 
> After the RPM build runs one time, note in your build directory BUILD 
> you have swarm, cd in there, and cd into the directory called 
> "=with-hdf".  su to the root user, then run "make install".  This 
> actually installs the stuff to /usr.
> 
> Then run the RPM build again, and it will find the libraries it needs.
> 
> You can then manually delete the swarm install, from /usr/include/swarm, 
> usr/lib/swarm, etc.
> 
> Then when you install the Swarm RPM,
> 
> Izak Burger wrote:
> > Hello,
> > 
> > Thank you so much for your reply.  I downloaded the new source rpm and
> > building it went a lot more smoothly, well, up to the final part where it
> > actually creates the rpm.  At this point, I got this error:
> > 
> > RPM build errors:
> >   File not found: /tmp/swarm-root/usr/lib/swarm/libswarm.la
> >   File not found by glob: /tmp/swarm-root/usr/lib/swarm/libswarm.so*
> >   File not found: /tmp/swarm-root/usr/lib/swarm/libswarm.a
> >   File not found by glob: /tmp/swarm-root/usr/lib/swarm/libjavaswarm*.la
> >   File not found by glob: /tmp/swarm-root/usr/lib/swarm/libjavaswarm*.so*
> >   File not found: /tmp/swarm-root/usr/lib/swarm/libjavaswarm.a
> > 
> > After much hunting arround, creating logfiles and such, I see that these
> > missing files are all caused by a failed invocation of libtool.  Libtool
> > attempts to relink (?) them, and fails.  Not knowing too much about
> > libtool, I eventually decided to just link the missing files myself, and
> > build the rpm with --short-circuit.
> > 
> > regards,
> > Izak Burger
> > 
> > 
> > On Fri, 16 May 2003, Paul E. Johnson wrote:
> > 
> > 
> >>Yes, with gcc 3.2-2002-09-09, I can compile swarm with the -Werror flag.
> >> Before or after gcc, not so. gcc 3.2 produces an internal compiler
> >>error.  With some other gcc-3.2, you can compile swarm, but not with the
> >>-Werror flag. Marcus Daniels told me that there would be some kind of
> >>capstone release of gcc soon that might address it.
> >>
> >>In swarm-hackers, we have discussed this lately.  We want not to patch
> >>gcc anymore.  We want Swarm to compile without special make flags.  The
> >>newest Swarm has been hacked so it no longer needs the specially patched
> >>gcc to enable METHOD_FUNCTIONS.
> >>
> >>I have just this minute moved RPMS/SRPM up to the RH 9 directory. Look
> >>for swarm-2.1.143
> >>
> >>The srpm is
> >>
> >> swarm-2.1.143.20030512-1RH9.0.src.rpm
> >>
> >>This was based on a current cvs snapshot. i notice that it has the
> >>-Werror removed, probably by one of the Mac users.
> >>
> >>Izak Burger wrote:
> >>
> >>
> >>>Hello,
> >>>
> >>>Sorry to bother again, but it looks like I found what I'm looking for.
> >>>You posted this message:
> >>>
> >>>http://www.swarm.org/pipermail/support/2002-October/012608.html
> >>>
> >>>At the end of last year.  It looks like the problem is with the gcc 3.2 on
> >>>the system.  So the moral of the story is that I'll have to install a
> >>>better gcc first.
> >>>
> >>>Luckily I managed to compile gcc 3.3 for my Debian woody system, so life
> >>>should be easier on the mdk side.
> >>>
> >>>regards,
> >>>Izak Burger
> >>>
> >>>
> >>
> >>
> >>
> > 
> 
> 
> -- 
> Paul E. Johnson                       email: address@hidden
> Dept. of Political Science            http://lark.cc.ku.edu/~pauljohn
> University of Kansas                  Office: (785) 864-9086
> Lawrence, Kansas 66045                FAX: (785) 864-5700
> 
> 
> --__--__--
> 
> Message: 5
> From: mike long <address@hidden>
> To: address@hidden
> Date: 21 May 2003 10:41:00 -0400
> Subject: [Swarm-Support] A Question about native libraries accessed by Java 
> on OS X
> Reply-To: address@hidden
> 
> Hi,
> Yesterday I posted a question about using java on OS X. Understanding
> that I can obtain the jar files for Swarm, I only need to be able to
> instruct the JVM to load the native libraries so that the Java native
> methods can access them. On Linux this was accomplished with the -LD
> option(if I remember correctly) specified when starting the JVM(java).
> So my question is what is the equivalent command I use on the Mac?
> 
> Kind Regards,
> Mike Long
> 
> 
> 
> --__--__--
> 
> Message: 6
> Date: Wed, 21 May 2003 08:51:00 -0600
> From: "Marcus G. Daniels" <address@hidden>
> To: address@hidden
> Subject: Re: [Swarm-Support] A Question about native libraries accessed by
>  Java on OS X
> Reply-To: address@hidden
> 
> mike long wrote:
> 
> >Understanding
> >that I can obtain the jar files for Swarm, I only need to be able to
> >instruct the JVM to load the native libraries so that the Java native
> >methods can access them. 
> >
> The Swarm native libraries don't load correctly into the JVM.  Why this 
> is, no one knows.  Maybe it has to do with the malloc implementation, 
> some memory map boundary (I didn't see one), the dynamic link loader, 
> the presence of two Objective C runtimes, or something else (perhaps 
> even a magic flag to the JVM or to the linker).   The way to figure it 
> out is to sit down and beat at it in the debugger until the problem 
> reveals itself.  Specifically it dies registering methods as Objective C 
> classes are initialized by shared library constructors.
> 
> 
Thanks for the information. I can't mess with figuring out how to fix
this on the Mac, I don't know enough about that world. I will get
running on Linux again.
Kind Regards,
Mike Long
> --__--__--
> 
> Message: 7
> To: address@hidden
> Date: Wed, 21 May 2003 11:51:35 -0700
> From: "Kanagaraj Krishna" <address@hidden>
> Organization: Lycos Mail  (http://www.mail.lycos.com:80)
> Subject: [Swarm-Support] Re: Multi agent environment interaction
> Reply-To: address@hidden
> 
> Hi,
> 
>    I'm working on a model in SWARM java, simulating trust among agents in 
> multi agent systems . The structure of the model:
> 
>    -two groups of agents, one is a buyer and the   
>     other a trader
>    -each group has its own rules and functions.
>    -buyer agents will have two types, trustable agent 
>     and untrustable
>    -trader agents will have the same two types
>    -buyer agents and traders will meet and communicate 
>     with each other to do transactions       and then 
>     update their own trust ratings (using maps most 
>     probably....i think). Each     agent will keep 
>     records of all the meetings between them.
>    -first buyer agents will look for known traders 
>     (past transactions records) and if there     are 
>     none it explores other available traders in the 
>     multiagent world.
> 
> Are there any examples that can help me in designing my model (java ones). 
> 
> I was looking into the CharlesJavaTutorial examples on bugs looking for food. 
> It is more straight forward and there is no interaction between agents.Thanks.
> 
> Regards,
> Kana
> 
> 
> 
> ____________________________________________________________
> Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
> http://login.mail.lycos.com/r/referral?aid=27005
> 
> 
> --__--__--
> 
> _______________________________________________
> Support mailing list
> address@hidden
> http://www.swarm.org/mailman/listinfo/support
> 
> 
> End of Support Digest




reply via email to

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