swarm-support
[Top][All Lists]
Advanced

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

Difficulties in compiling Swarm 1.4.1 under RH Linux 6


From: Jason Alexander
Subject: Difficulties in compiling Swarm 1.4.1 under RH Linux 6
Date: Sun, 11 Jul 1999 17:11:40 -0700

After downloading, installing, and using (successfully) Paul Johnson's
wonderful rpm package of Swarm, I decided (out of sheer masochism, I'm
now convinced) to download the source of Swarm and compile it myself. 
In doing so, I have encountered several problems I am not entirely sure
how to solve.  (For the record, I'm using RH Linux 6.0.)

First, I encountered several compile-time errors complaining that the
"strdup" macro was called with an incorrect number of arguments. 
Inspecting the source files, it didn't appear as if there was an actual
error.  I found that inserting an line containing

        #undef strdup

before any of the problem areas allowed the compilation to complete
smoothly.

I then called "make install" to install the libraries, etc. into the
directory /home/jalex/swarm-1.4.1

However, I cannot successfully build my own Swarm applications using the
libraries I've compiled myself (my applications build and run
successfully, though, if I change the definition of SWARMHOME at the
start of the Makefile to use Paul's Swarm distribution).

Attached below is what "make" reports during an attempted compile:


address@hidden bayes]$ make
egcs -c -Wno-import -Wno-protocol -g -O2 -D_GNU_SOURCE
-I/home/jalex/swarm-1.4.1/include Agent.m   
egcs -c -Wno-import -Wno-protocol -g -O2 -D_GNU_SOURCE
-I/home/jalex/swarm-1.4.1/include main.m   
egcs -c -Wno-import -Wno-protocol -g -O2 -D_GNU_SOURCE
-I/home/jalex/swarm-1.4.1/include ObserverSwarm.m   
egcs -c -Wno-import -Wno-protocol -g -O2 -D_GNU_SOURCE
-I/home/jalex/swarm-1.4.1/include ModelSwarm.m   
ModelSwarm.m: In function `-[ModelSwarm checkToStop]':
ModelSwarm.m:289: warning: comparison of distinct pointer types lacks a
cast
egcs -c -Wno-import -Wno-protocol -g -O2 -D_GNU_SOURCE
-I/home/jalex/swarm-1.4.1/include game.m   
egcs -c -Wno-import -Wno-protocol -g -O2 -D_GNU_SOURCE
-I/home/jalex/swarm-1.4.1/include BatchSwarm.m  

/bin/sh /home/jalex/swarm-1.4.1/bin/libtool-swarm --mode link egcs -g
-O2 -L/home/jalex/swarm-1.4.1/lib -rpath /home/jalex/swarm-1.4.1/lib
-L/usr/lib -rpath /usr/lib  -L/usr/X11R6/lib -rpath /usr/X11R6/lib 
-L/usr/lib -L/usr/lib -rpath /usr/lib -L/usr/lib -L/usr/lib -rpath
/usr/lib -L/usr/X11R6/lib  -o bayes Agent.o  main.o ObserverSwarm.o
ModelSwarm.o game.o BatchSwarm.o  -lspace -lanalysis -lsimtools
-lsimtoolsgui -ltkobjc -ltclobjc -lactivity -lrandom -lobjectbase
-lcollections -ldefobj -lmisc -lBLT -ltk8.0 -ltcl8.0 -lXpm -lpng -lhdf5
-lz -lffi -lX11  -lm -lobjc -lpthread -ldl 
egcs -g -O2 -L/home/jalex/swarm-1.4.1/lib -L/usr/lib -L/usr/X11R6/lib
-L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/X11R6/lib -o bayes
Agent.o main.o ObserverSwarm.o ModelSwarm.o game.o BatchSwarm.o -lspace
-lanalysis -lsimtools -lsimtoolsgui -ltkobjc -ltclobjc -lactivity
-lrandom -lobjectbase -lcollections -ldefobj -lmisc -lBLT -ltk8.0
-ltcl8.0 -lXpm -lpng -lhdf5 -lz -lffi -lX11 -lm -lobjc -lpthread -ldl
-Wl,--rpath -Wl,/home/jalex/swarm-1.4.1/lib -Wl,--rpath -Wl,/usr/lib
-Wl,--rpath -Wl,/usr/X11R6/lib -Wl,--rpath -Wl,/usr/lib -Wl,--rpath
-Wl,/usr/lib

/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_SwarmObject' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_ZoomRaster' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_GUISwarm' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_EmptyProbeMap' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_Pixmap' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_Probe' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_Grid2d' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_Object2dDisplay' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_Value2dDisplay' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_Swarm' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_EZDistribution' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_ObjectLoader' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_Discrete2d' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_Colormap' are not defined


Although the linker calls the above messages "warnings", the resulting
binary will not run. (It keeps quitting will the cryptic error "bayes:
Too many arguments" even though I did not call it with any arguments
from the command line.

I've tried recompiling Swarm with both the "--enable-shared=yes" and
"--enable-shared=no" options and found that this didn't fix the problem.

I would greatly appreciate it if anyone who has managed to successfully
compile Swarm under a RH Linux distribution could send a few tips my way
about what I might be doing wrong.

Thanks,

Jason Alexander
Logic & Philosophy of Science
University of California, Irvine

                  ==================================
   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]