comp.lang.ada
 help / color / mirror / Atom feed
* Pthreads in GNAT
@ 1995-04-05  0:00 Brian Vinter
  1995-04-05  0:00 ` Vladimir Vukicevic
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Vinter @ 1995-04-05  0:00 UTC (permalink / raw)



I'm trying to run gnat on a HP SNAKE, I have the phreads-1.51 package, but 
while linking I get the following message:

/bin/ld: Unsatisfied symbols:
   pthread_mutexattr_setprotocol (code)
   pthread_attr_getprio (code)
   pthread_condattr_init (code)
   pthread_attr_setprio (code)
   pthread_setschedattr (code)
   sigwait (code)
   clock_gettime (code)
   pthread_getschedattr (code)
   pthread_mutexattr_setprio_ceiling (code)
   pthread_condattr_destroy (code)
   pthread_kill (code)

Which pthreads libary should I use to get my program to work?

Thanks in advance!

Brian
--
Vinter 8>}

 ________________________________________________________________
| Brian Vinter                      | Email vinter@cs.uit.no     |
| Assistant Professor               | Phone (+47) 77 64 52 52    |
| Department of Computer Science    | Fax   (+47) 77 64 45 80    |
| University of Tromsoe             | Disclaimer:                |
| N-9037 Tromsoe, NORWAY            | Real men do it in parallel!|
 ________________________________________________________________




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Pthreads in GNAT
  1995-04-05  0:00 Pthreads in GNAT Brian Vinter
@ 1995-04-05  0:00 ` Vladimir Vukicevic
  1995-04-21  0:00   ` Robert W. Brewer
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Vukicevic @ 1995-04-05  0:00 UTC (permalink / raw)


In article <1995Apr5.114427.17834@news.uit.no> vinter@cs.uit.no (Brian Vinter) writes:

> 
> I'm trying to run gnat on a HP SNAKE, I have the phreads-1.51 package, but 
> while linking I get the following message:
> [...]
> Which pthreads libary should I use to get my program to work?
> 

You need pthreads 1.60 beta.. whatever the latest beta is on rtfm.mit.edu.
Note that there are numerous fixes, patches, etc. that have been done to
make gnat & Provenzano's pthreads work better... I should be releasing
another version of the patches, etc. soon.

	- Vladimir




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Pthreads in GNAT
  1995-04-05  0:00 ` Vladimir Vukicevic
@ 1995-04-21  0:00   ` Robert W. Brewer
  0 siblings, 0 replies; 3+ messages in thread
From: Robert W. Brewer @ 1995-04-21  0:00 UTC (permalink / raw)
  To: Robert Dewar

>>>>> "R" == Robert Dewar <dewar@cs.nyu.edu> writes:
R> Using the Provenzano threads, it is indeed possible to get tasking
R> working on Linux, but to do it with the 2.03 release requires quite
R> a bit of knowledge about what is going on.

I'm having trouble getting pthreads working with GNAT 2.04 under Linux.
I have the binary version from ftp.cs.nyu.edu, and am using 
pthreads 1.60beta2.  I get all kinds of undefined symbols when linking,
like the following:

$ gnatbl tetris.ali -L/usr/tmp/pthreads/config -lpthread

/home/mcculley/gcc-2.6.3/ada/rts/i-cpotim.adb(.text+0x33): undefined reference to `clock_gettime'
/usr/lib/gcc-lib/i486-linux/2.6.2/adalib/i-cporte.o: In function `interfaces__c__posix_rte__setjmp':
/home/mcculley/gcc-2.6.3/ada/rts/i-cporte.adb:255: undefined reference to `setjmp'
/usr/lib/gcc-lib/i486-linux/2.6.2/adalib/i-cporte.o: In function `interfaces__c__posix_rte__sigsetjmp':
/home/mcculley/gcc-2.6.3/ada/rts/i-cporte.adb:267: undefined reference to `sigsetjmp'


I'm also curious about the /home/mcculley/ paths.  They seem a bit strange.

Any tips?  Thanks.

-Rob
-- 
Robert W. Brewer KB3BEH   A thorough knowledge of the Bible is worth more
rbrewer@psu.edu           than a college education.  --Theodore Roosevelt




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-04-21  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-04-05  0:00 Pthreads in GNAT Brian Vinter
1995-04-05  0:00 ` Vladimir Vukicevic
1995-04-21  0:00   ` Robert W. Brewer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox