Date: Thu, 14 Feb 2002 15:10:45 -0800 From: Terry Lambert <tlambert2@mindspring.com> To: Daniel Eischen <eischen@pcnet1.pcnet.com> Cc: Hiten Pandya <hiten@uk.FreeBSD.org>, freebsd-hackers@FreeBSD.ORG Subject: Re: weird pthread related errors Message-ID: <3C6C43F5.9D8F2F49@mindspring.com> References: <Pine.GSO.4.10.10202141650090.23286-100000@pcnet1.pcnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Daniel Eischen wrote: > > 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' > > If you want to use the threads library, you have to tell the > linker (-lc_r in -current, -pthread in -stable). Alternately: "man pthread". 8-). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C6C43F5.9D8F2F49>