[786] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

Problem with TurboLinux

daemon@ATHENA.MIT.EDU (Oscar I. Barcelos)
Tue Aug 4 01:40:42 1998

From: "Oscar I. Barcelos" <oscar@ns1.worldtelphil.com>
To: proven@MIT.EDU, pthreads@MIT.EDU
Date: Tue, 4 Aug 1998 13:31:27 +0000
X-Confirm-Reading-To: "Oscar I. Barcelos" <oscar@mail.worldtelphil.com>

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

home help back first fref pref prev next nref lref last post