Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2002 21:42:40 +0000
From:      Hiten Pandya <hiten@uk.FreeBSD.org>
To:        freebsd-hackers@FreeBSD.org
Subject:   weird pthread related errors
Message-ID:  <20020214214240.A7121@hpdi.ath.cx>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Howdy!,

I am having some very weird problems with the pthread.h
library.  The following statement is in the source-file:

     #include <pthread.h>

But, the compiler fails with the following error messages.
All the other typedefs, structs are recognised except:

  - pthread_create();
  - pthread_exit();

It would be very appreciated if someone can help me solve
this dillema.  I have tried to look _just_ about everywhere,
including the headers, but cannot find a clue why it is
failing.

If needed, I can also file an official PR regarding this
problem, but I have posted to the list, as I assumed someone
might have solved this dillema before. ;)

The following is the error output:

gcc  -g -O2   -o fsck.jfs  fsckbmap.o fsckconn.o  fsckdire.o fsckdtre.o fsckea.o  fsckimap.o fsckino.o fsckmeta.o  fsckmsgs.o fsckpfs.o fsckwsp.o  fsckxtre.o xchkdsk.o fsckruns.o ../libfs/libfs.a 
fsckruns.o: In function `fsck_hbeat':
/c0/cvs/j4b/jfsutils/fsck/fsckruns.c:156: undefined reference to `pthread_exit'
fsckruns.o: In function `fsck_hbeat_start':
/c0/cvs/j4b/jfsutils/fsck/fsckruns.c:180: undefined reference to `pthread_create'

Thanks,
Regards,

  -- Hiten Pandya
  -- The JFS4BSD Project
  -- <hiten@uk.FreeBSD.org>

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8bC9Phh1dveTjA8MRAgweAKDV6icLJ6GR6BSMke1HPKbXeZWZeACgnFJ2
n9zAxUK+4q0o1ls35eF/RoM=
=yD5L
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020214214240.A7121>