From owner-freebsd-hackers Thu Feb 14 13:45:43 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from hpdi.ath.cx (pc1-nthf5-0-cust128.not.cable.ntl.com [80.4.34.128]) by hub.freebsd.org (Postfix) with ESMTP id 8061F37B402 for ; Thu, 14 Feb 2002 13:45:35 -0800 (PST) Received: (from hitenp@localhost) by hpdi.ath.cx (8.11.6/8.11.6) id g1ELgpl07150; Thu, 14 Feb 2002 21:42:51 GMT (envelope-from hitenp) Date: Thu, 14 Feb 2002 21:42:40 +0000 From: Hiten Pandya To: freebsd-hackers@FreeBSD.org Subject: weird pthread related errors Message-ID: <20020214214240.A7121@hpdi.ath.cx> Reply-To: hiten@uk.FreeBSD.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD hpdi.ath.cx 5.0-CURRENT FreeBSD 5.0-CURRENT Organisation: The FreeBSD Project X-PGP-Key: http://www.pittgoth.com/~hiten/pubkey.asc Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Howdy!, I am having some very weird problems with the pthread.h library. The following statement is in the source-file: #include 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 fsc= kea.o fsckimap.o fsckino.o fsckmeta.o fsckmsgs.o fsckpfs.o fsckwsp.o fsc= kxtre.o xchkdsk.o fsckruns.o ../libfs/libfs.a=20 fsckruns.o: In function `fsck_hbeat': /c0/cvs/j4b/jfsutils/fsck/fsckruns.c:156: undefined reference to `pthread_e= xit' fsckruns.o: In function `fsck_hbeat_start': /c0/cvs/j4b/jfsutils/fsck/fsckruns.c:180: undefined reference to `pthread_c= reate' Thanks, Regards, -- Hiten Pandya -- The JFS4BSD Project -- --r5Pyd7+fXNt84Ff3 Content-Type: application/pgp-signature Content-Disposition: inline -----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----- --r5Pyd7+fXNt84Ff3-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message