[787] in Pthreads mailing list archive
Re: Problem with TurboLinux
daemon@ATHENA.MIT.EDU (Dave Frascone)
Tue Aug 4 12:30:20 1998
Date: Tue, 4 Aug 1998 09:01:43 -0700 (PDT)
From: Dave Frascone <dfrascone@yahoo.com>
Reply-To: chaos@mindspring.com
To: "Oscar I. Barcelos" <oscar@ns1.worldtelphil.com>
Cc: pthreads@MIT.EDU
I am pretty sure the threads package shipped with Linux is
Linuxthreads, not Proven's pthreads.
But, as to your first problem, you have to link in the pthread library:
cc my_program.c -lpthread
I can't help you with your attempted installation of Proven's pthreads.
Later,
Dave
---"Oscar I. Barcelos" <oscar@ns1.worldtelphil.com> wrote:
>
> We have currently TurboLinux Release 1.0 ( Kyoto), Kernel 2.0.30. on
> an i586.
> i am tryiing to create a program which uses multithreading. as I
> found on this OS, it has man about pthreads function. There is also
> libpthreads.a and .so. I also checked pthreads.h and its includes
> files and it exists.
>
> Whwn I run my test program which has pthread_create function on it,
> the gcc compiler reports the following:
>
> /tmp/cca037491.o: In function `main':
> /home/div2/barce/pthread_test.c:31:undefined reference to
> `pthread_create'
>
> I also created Makefile for it to include the /usr/lib/libpthread.a
> but the same error occurs.
>
> Can you help me about it?
>
> I checked my /usr/local and there is no pthreads directory. Does our
> Linux still has no POSIX thread installed?
>
> My companion tried to download the pthreads-1_60_bet6. But our
> problem is, we cannot able to instal it. Our first problem is the
> message :
> ./configure:no such file or directory
> when we run the configure file.
> I solved it by creating my own script file then copy and paste the
> downloaded "configure" file. I also did this to other config files.
> The problem of it is they report "#!/bin/sh" as not found" which is
> existing!
>
> I already run configure at top level of pthreads-1_60_beta6. the
> next step as instructed is make. But I have error again and still
> can't be solved. It reports the following:
>
> :No such file or directorys
> :No such file or directorybarce
> :No such file or directorybarce
> :No such file or directorybarce
> :No such file or directorybarce
> :No such file or directorybarce
> :No such file or directorybarce
> :No such file or directorybarce
> '.Stop. GNUmakefile.ince target `/home/div2/barce
>
> Also, I noticed that the makefile uses "\" character for line
> continuation. This was errored by Linux' make, so I just erased this
> character and concatenated them to one line.
>
> By the way I copied our downloaded files to my home directory
> /home/div2/barce.
>
> Any help is greatly appreciated by us.
> Thank you very much.
>
> Oscar I. Barcelos
> Software Engineer
>
>
==
----
Dave Frascone
chaos@mindspring.com
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com