swarm-support
[Top][All Lists]
Advanced

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

[OT] linking problem with SFI ASM


From: Ken Gosier
Subject: [OT] linking problem with SFI ASM
Date: Sat, 23 Jun 2001 02:15:00 -0700 (PDT)

I've downloaded the source to the SFI ASM model. (This is
the 'straight objective-C' implementation, not the swarm
model from artstkmkt.sourceforge.net. That's why I put the
OT with this message.)


I had to make a few small changes in the code to get it to
compile. I'm running on a RH6.2 system with gcc. Here's the
output off gcc -v:

Reading specs from
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2
release)

which makes my system certifiably ancient, given all the
gcc-3 talk around here lately. But I figure the ASM code is
pretty old, so I should be OK.


Anyway, the problem comes at the linking stage, where I get
the errors given below. I'm ignoring the warning about
'getwd' for now.

The undefined reference problems are beyond my knowledge
scope. Usually I get these kinds of errors when I forget to
include the right headers in the right files. But these
seem to be complaining about the gcc setup itself, which is
straight out of the (RH6.2) box.

Many thanks for any help--


gcc -Wall -g -ObjC   -o market \
agent.o amanager.o bfagent.o bsagent.o control.o dividend.o
duagent.o error.o ffagent.o nametree.o output.o random.o
schedule.o speclist.o util.o world.o version.o main.o 
-lobjc -lm
util.o: In function `cwd':
/home/ken/swarm/ASM/other/sfsm/src/util.m:249: the `getwd'
function is dangerous and should not be used.
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/libobjc.a(thr-posix.o):
In function `__objc_init_thread_system':
/usr/src/bs/BUILD/egcs-1.1.2/obj-i386-linux/gcc/../../gcc/objc/thr-posix.c:42:
undefined reference to `pthread_key_create'
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/libobjc.a(thr-posix.o):
In function `__objc_thread_detach':
/usr/src/bs/BUILD/egcs-1.1.2/obj-i386-linux/gcc/../../gcc/objc/thr-posix.c:61:
undefined reference to `pthread_create'
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/libobjc.a(thr-posix.o):
In function `__objc_thread_set_data':
/usr/src/bs/BUILD/egcs-1.1.2/obj-i386-linux/gcc/../../gcc/objc/thr-posix.c:116:
undefined reference to `pthread_setspecific'
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/libobjc.a(thr-posix.o):
In function `__objc_thread_get_data':
/usr/src/bs/BUILD/egcs-1.1.2/obj-i386-linux/gcc/../../gcc/objc/thr-posix.c:123:
undefined reference to `pthread_getspecific'
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/libobjc.a(thr-posix.o):
In function `__objc_mutex_trylock':
/usr/src/bs/BUILD/egcs-1.1.2/obj-i386-linux/gcc/../../gcc/objc/thr-posix.c:167:
undefined reference to `pthread_mutex_trylock'
collect2: ld returned 1 exit status
make: *** [market] Error 1


=====
Ken Gosier
address@hidden

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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