swarm-support
[Top][All Lists]
Advanced

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

1.3 and hpux 10.20: link problem


From: Rick Riolo
Subject: 1.3 and hpux 10.20: link problem
Date: Thu, 27 Aug 1998 09:20:57 -0400 (EDT)

Using bash as my shell as discussed in earlier messages,
I successfully built swarm-1.3 on hpux 9.05, and
linked and ran heatbugs, market and mousetraps
(the only apps I've tried so far).  The scripts and commands
I used are attached below.

However, after I made swarm under hpux 10.20,
using the same make procedures as I used under 9.05, 
the make and make install of 1.3 work with no errors,
but I get this error when I tried to link to an app (heatbugs):
-------------
nop-rlr)cd /s/Swarm/swarmapps-1.3/heatbugs
setenv SWARMHOME /s/Swarm/swarm-1.3
make
nop-rlr)setenv SWARMHOME /s/Swarm/swarm-1.3
nop-rlr)make
gcc -c -Wno-import -g -O2  -I/s/Swarm/swarm-1.3/include Heatbug.m   
gcc -c -Wno-import -g -O2  -I/s/Swarm/swarm-1.3/include HeatSpace.m   
gcc -c -Wno-import -g -O2  -I/s/Swarm/swarm-1.3/include main.m   
gcc -c -Wno-import -g -O2  -I/s/Swarm/swarm-1.3/include HeatbugModelSwarm.m   
gcc -c -Wno-import -g -O2  -I/s/Swarm/swarm-1.3/include HeatbugObserverSwarm.m  
 
gcc -c -Wno-import -g -O2  -I/s/Swarm/swarm-1.3/include HeatbugBatchSwarm.m   
/s/Swarm/swarm-1.3/bin/libtool-swarm --mode link gcc -g -O2 
-L/s/Swarm/swarm-1.3/lib -L/s/Swarm/swarm-1.3/lib -L/usr/local/lib 
-L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib 
-L/usr/local/lib   -o heatbugs Heatbug.o HeatSpace.o main.o 
HeatbugModelSwarm.o HeatbugObserverSwarm.o HeatbugBatchSwarm.o  -lspace 
-lanalysis -lsimtools -lsimtoolsgui -ltkobjc -ltclobjc -lactivity 
-lrandom -lobjectbase -lcollections -ldefobj -lmisc -lBLT -ltk4.0 
-ltcl7.4 -lpng -lz -lavcall -lXpm -lX11  -lm -lobjc -ldld 
gcc -g -O2 -L/s/Swarm/swarm-1.3/lib -L/s/Swarm/swarm-1.3/lib 
-L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib 
-L/usr/local/lib -L/usr/local/lib -o heatbugs Heatbug.o HeatSpace.o 
main.o HeatbugModelSwarm.o HeatbugObserverSwarm.o HeatbugBatchSwarm.o 
-lspace -lanalysis -lsimtools -lsimtoolsgui -ltkobjc -ltclobjc 
-lactivity -lrandom -lobjectbase -lcollections -ldefobj -lmisc -lBLT 
-ltk4.0 -ltcl7.4 -lpng -lz -lavcall -lXpm -lX11 -lm -lobjc -ldld
collect2: ld returned 1 exit status
/bin/ld: Invalid loader fixup for symbol "__objc_class_name_SwarmObject".
make: *** [heatbugs] Error 1
nop-rlr)
-----------------
To my knowledge, the different between my hpux9.05 and 10.20
environments (ie besides the opsystems &assoc software)
is gcc versions:
  9.05:  gcc 2.7.2
 10.20:  gcc 2.7.2.3

Note I first did the make's completely the same.
I also tried the make under 10.20 NOT using --disable-shared
(which is actually what I would prefer, wanting to use shared libs there).
I also tried the 10.20 exporting bash as my SHELL,
and including SHELL=$SHELL on the make command in mymake.
(I don't think that's the problem, since the make's successfully
complete without that.)
All those variants give the same error at link time.

Any suggestions on what I should try next?
Thanks!

  - r

The make procedure I used (the make distclean I did between makes)...
sorry about some of the formatting:

nop-rlr)cd /s/Swarm/swarm-1.3
nop-rlr)cat mymake
#!/usr/local/bin/bash
SWARMSRCDIR=/s/Swarm/swarm-1.3
CONFIG_SHELL=/usr/local/bin/bash
export CONFIG_SHELL
(echo "#!$CONFIG_SHELL" ; cat /s/Swarm/swarm-1.3/configure ) > 
/tmp/configure
chmod 755 /tmp/configure
/tmp/configure --srcdir=$SWARMSRCDIR --prefix=/s/Swarm/swarm-1.3 
--disable-shared --with-ffcalldir=/usr/local --with-pngdir=/usr/local 
--with-zlibdir=/usr/local
make 

nop-rlr)cat mymakeinstall 
#!/usr/local/bin/bash
SWARMSRCDIR=/s/Swarm/swarm-1.3
CONFIG_SHELL=/usr/local/bin/bash
SHELL=/usr/local/bin/bash
export CONFIG_SHELL
export SHELL
make install SHELL=$SHELL

Given those, I did:

make distclean SHELL=/usr/local/bin/bash
mymake
mymakeinstall


Rick Riolo                           
address@hidden Program for Study of Complex Systems (PSCS)
4477 Randall Lab                
University of Michigan         Ann Arbor MI 48109-1120
Phone: 734 763 3323                  Fax: 734 763 9267
http://www.pscs.umich.edu/PEOPLE/rlr-home.html


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