[Date Prev][Date Next]
Re: Building with pthreads in Digital Unix 4.0 (ITS#62)
I've made some changes that should resolve pthread detections issues
on Digital Unix 4.0.
In the meantime, I suggest (if using the vendor supplied compiler)
CFLAGS=-pthread; export CFLAGS
If using something else (like gcc):
CFLAGS=; export CFLAGS
CPPFLAGS=-D_REENTRANT; export CPPFLAGS
LIBS="-lpthread -lmach -lexc"; export LIBS
If this doesn't work, try without the -lmach library.
I do NOT recommend using "-threads" nor "-lpthreads" as this will cause
older posix routines to be included. (In fact, this is why the test
Note: this will build the complete system with threads (instead of just
the threaded components).
If you are using the vendor supplied compiler.
At 09:39 PM 2/1/99 GMT, Ashley.W.Frost@williams.edu wrote:
>BTW, thank you for your work on this project. Its exciting and a
>wonderful service to the community.
>Further information regarding Kurt's email follows.
>On Mon, 1 Feb 1999, Kurt D. Zeilenga wrote:
>> At 08:57 PM 2/1/99 GMT, Ashley.W.Frost@williams.edu wrote:
>> >Full_Name: Ashley Frost
>> >Version: 1.1.4
>> >OS: Digital Unix 4.0d
>> >Submission from: (NULL) (22.214.171.124)
>> >I couldn't find this information anywhere in the FAQ or mailing list archives,
>> >so I'm offering it to anyone who is having trouble with ./configure and pthread
>> >support for Digital Unix. It would be especially helpful under the Platform
>> >Hints in a section for Digital Unix.
>> You are, of course, welcomed to add a subcategory for Digital UNIX in the
>> platform hints section of the faq-o-matic and then add your 'new answer.'
>I didn't realize you allowed offsite people to modify the faq-o-matic,
>although a second look shows this to be true.
>I also realize that this answer looks a lot like some of the other answers
>for other OS's regarding pthreads, however it is slightly different and
>took a little digging through the man pages on DU. If this had been in
>there, it would have saved me some trouble right off the bat.
>> >If configure stops with the error:
>> > checking if pthread_create() works... no
>> > configure: error: pthread.h and pthread_create are not compatible
>> Where did it find the incompatible pthread_create() ?
>Here is the tail of the config.log:
>configure:4333: checking if pthread_create() works
>configure:4365: cc -o conftest -g conftest.c -lpthreads -lmach -lexc
>configure: failed program was:
>#line 4342 "configure"
>#define NULL (void*)0
>static void *task(p)
> void *p;
> return (void *) (p == NULL);
>int main(argc, argv)
> int argc;
> char **argv;
> pthread_t t;
> exit(pthread_create(&t, NULL, task, NULL));