swarm-support
[Top][All Lists]
Advanced

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

swarm install problem


From: Tony Kalus
Subject: swarm install problem
Date: Sat, 17 Apr 1999 14:55:46 +0100

Hello,

  Can you help me with a problem I have installing and using Swarm? 

I am using a Slackware Linux system , so I'm trying to do an archive
install of swarm-1.4.1 

I already have tcl7.4, tk4.0, and blt1.8 from other applications. I'm
also using gcc2.7.2 with  libobjc.a 

I obtained all the other libraries (zlib, libpng, libffi) from your
web pages. I didn't have any problems  installing any of these, in
fact, they all went very smoothly. Encouraged by this I then tried to
build swarm itself. However, when I run the make, after the
./configure, I get the following errors:

..........(it goes along quite happily until it gets to
swarm/src/tclobjc).........

gcc -shared -Wl,-soname -Wl,libobjectbase.so.3 -o
.libs/libobjectbase.so.3.0.0 ActivityControl.lo CompleteVarMap.lo
CompleteProbeMap.lo CustomProbeMap.lo DefaultProbeMap.lo
EmptyProbeMap.lo MessageProbe.lo Probe.lo ProbeLibrary.lo ProbeMap.lo
Swarm.lo SwarmObject.lo VarProbe.lo probing.lo swarm_rts_routines.lo
(cd .libs && ln -s libobjectbase.so.3.0.0 libobjectbase.so.3) (cd
.libs && ln -s libobjectbase.so.3.0.0 libobjectbase.so) ar cru
.libs/libobjectbase.a ActivityControl.o CompleteVarMap.o
CompleteProbeMap.o CustomProbeMap.o DefaultProbeMap.o EmptyProbeMap.o
MessageProbe.o Probe.o ProbeLibrary.o ProbeMap.o Swarm.o SwarmObject.o
VarProbe.o probing.o swarm_rts_routines.o ranlib .libs/libobjectbase.a
creating libobjectbase.la (cd .libs && ln -s ../libobjectbase.la
libobjectbase.la) make[3]: Leaving directory
`/home/tony/swarm/swarm-1.4.1/src/objectbase' Making all in tclobjc
make[3]: Entering directory `/home/tony/swarm/swarm-1.4.1/src/tclobjc'
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../.. -I./../misc -I/usr/include/tcl -I/usr/include/tcl
-I/usr/local/include  -D_GNU_SOURCE -DList=TclObjcList
-DTCL_LIBRARY=\"/usr/lib/tcl\" -DTK_LIBRARY=\"/usr/lib/tk\"   -g -O2
-Wall -Wno-import -Wno-protocol -Werror -I/usr/X11R6/include
-Wno-implicit-int -c TclInterp.m gcc -DHAVE_CONFIG_H -I. -I. -I../..
-I./../misc -I/usr/include/tcl -I/usr/include/tcl -I/usr/local/include
-D_GNU_SOURCE -DList=TclObjcList -DTCL_LIBRARY=\"/usr/lib/tcl\"
-DTK_LIBRARY=\"/usr/lib/tk\" -g -O2 -Wall -Wno-import -Wno-protocol
-Werror -I/usr/X11R6/include -Wno-implicit-int -c -fPIC -DPIC
TclInterp.m mv -f TclInterp.o TclInterp.lo gcc -DHAVE_CONFIG_H -I. -I.
-I../.. -I./../misc -I/usr/include/tcl -I/usr/include/tcl
-I/usr/local/include -D_GNU_SOURCE -DList=TclObjcList
-DTCL_LIBRARY=\"/usr/lib/tcl\" -DTK_LIBRARY=\"/usr/lib/tk\" -g -O2
-Wall -Wno-import -Wno-protocol -Werror -I/usr/X11R6/include
-Wno-implicit-int -c TclInterp.m >/dev/null 2>&1 /bin/sh ../../libtool
--mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I./../misc
-I/usr/include/tcl -I/usr/include/tcl -I/usr/local/include 
-D_GNU_SOURCE -DList=TclObjcList -DTCL_LIBRARY=\"/usr/lib/tcl\"
-DTK_LIBRARY=\"/usr/lib/tk\"   -g -O2 -Wall -Wno-import -Wno-protocol
-Werror -I/usr/X11R6/include -Wno-implicit-int -c TkInterp.m gcc
-DHAVE_CONFIG_H -I. -I. -I../.. -I./../misc -I/usr/include/tcl
-I/usr/include/tcl -I/usr/local/include -D_GNU_SOURCE
-DList=TclObjcList -DTCL_LIBRARY=\"/usr/lib/tcl\"
-DTK_LIBRARY=\"/usr/lib/tk\" -g -O2 -Wall -Wno-import -Wno-protocol
-Werror -I/usr/X11R6/include -Wno-implicit-int -c -fPIC -DPIC
TkInterp.m cc1obj: warnings being treated as errors TkInterp.m: In
function `_i_TkInterp__preInitWithArgc_argv_': TkInterp.m:142:
warning: passing arg 3 of `Tk_CreateMainWindow' discards `const' from
pointer target type make[3]: *** [TkInterp.lo] Error 1 make[3]:
Leaving directory `/home/tony/swarm/swarm-1.4.1/src/tclobjc' make[2]:
*** [all-recursive] Error 1 make[2]: Leaving directory
`/home/tony/swarm/swarm-1.4.1/src' make[1]: *** [all-recursive] Error
1 make[1]: Leaving directory `/home/tony/swarm/swarm-1.4.1' make: ***
[all-recursive-am] Error 2 /home/tony/swarm/swarm-1.4.1 >> 

I worked around this by removing the -Werror flag from the gcc flags.
This *seemed* to work OK but did give me the following message:

internal.m: In function `tkobjc_animate_message':
internal.m:337: warning: implicit declaration of function `Tcl_Sleep'

I did a make install, which seemed to put everything in the right
place  but when I try to run any of the swarmapps I get the following
error when running the make (swarmhome=/usr/local):

/home/tony/swarm/swarmapps-1.4.1/hello-world/v01 >> make
/bin/sh /usr/local/bin/libtool-swarm --mode link gcc -g -O2
-fno-inline -L/usr/local/lib -rpath /usr/local/lib -L/usr/lib
-L/home/tony/soar-7.0.4/tcl7.4 -L/usr/X11R6/lib
-L/home/tony/soar-7.0.4/tk4.0 -L/usr/local/lib -rpath /usr/local/lib
-L/usr/local/lib -rpath /usr/local/lib  -L/usr/local/lib
-L/usr/X11R6/lib  -o hello-world main.o Person.o Counter.o
PplModelSwarm.o PplObserverSwarm.o  -lspace -lanalysis -lsimtools
-lsimtoolsgui -ltkobjc -ltclobjc -lactivity -lrandom -lobjectbase
-lcollections -ldefobj -lmisc -lBLT -ltk -ltcl -lXpm -lpng  -lz -lffi
-lX11  -lm -lobjc -ldl gcc -g -O2 -fno-inline -L/usr/local/lib
-L/usr/lib -L/home/tony/soar-7.0.4/tcl7.4 -L/usr/X11R6/lib
-L/home/tony/soar-7.0.4/tk4.0 -L/usr/local/lib -L/usr/local/lib
-L/usr/local/lib -L/usr/X11R6/lib -o hello-world main.o Person.o
Counter.o PplModelSwarm.o PplObserverSwarm.o -lspace -lanalysis
-lsimtools -lsimtoolsgui -ltkobjc -ltclobjc -lactivity -lrandom
-lobjectbase -lcollections -ldefobj -lmisc -lBLT -ltk -ltcl -lXpm
-lpng -lz -lffi -lX11 -lm -lobjc -ldl -Wl,--rpath -Wl,/usr/local/lib
-Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib

/usr/local/lib/libtkobjc.so: undefined reference to `Tcl_Sleep' make:
*** [hello-world] Error 1

Obviously this ties up with the previous warning but I don't know what
to do about it!!

Do you have any ideas - I seem to be so close to getting it all to
work :-(

  Many Thanks,

      Tony Kalus

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