From owner-freebsd-hackers Mon Dec 6 16:56:54 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from luna.lyris.net (luna.shelby.com [207.90.155.6]) by hub.freebsd.org (Postfix) with ESMTP id 45A0215075 for ; Mon, 6 Dec 1999 16:56:45 -0800 (PST) (envelope-from kip@lyris.com) Received: from luna.shelby.com by luna.lyris.net (8.9.1b+Sun/SMI-SVR4) id QAA19028; Mon, 6 Dec 1999 16:56:29 -0800 (PST) Received: from (luna.shelby.com [207.90.155.6]) by luna.shelby.com with SMTP (MailShield v1.50); Mon, 06 Dec 1999 16:56:29 -0800 Date: Mon, 6 Dec 1999 16:56:29 -0800 (PST) From: Kip Macy X-Sender: kip@luna To: Viren Jain Cc: freebsd-hackers@freebsd.org Subject: Re: Linking problems w/ pthreads on 3.3 In-Reply-To: <4.2.0.58.19991206150019.00a63380@pop.interactive.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SMTP-HELO: luna X-SMTP-MAIL-FROM: kip@lyris.com X-SMTP-RCPT-TO: viren@interactive.net,freebsd-hackers@freebsd.org X-SMTP-PEER-INFO: luna.shelby.com [207.90.155.6] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I had a similar problem from installing GNU's Portable Threads package. I fixed it by uninstalling the package. -Kip On Mon, 6 Dec 1999, Viren Jain wrote: > NOTE: Please reply directly to my email address (viren@interactive.net) > > Platform: x86, FreeBSD 3.3 > > While trying to link a threaded application with -pthread using the > following command line: > gcc -I/usr/local/include -L/usr/local/lib/mysql -pthread -o impd daemon.o > db.o handlers.o imp_list.o imp_util.o log.o main.o net.o opt.o request.o > sig.o statsd.o util.o -lmysqlclient > > I receive the following errors: > > daemon.o(.text+0x10): undefined reference to `__pthread_fork' > db.o(.text+0x33c): undefined reference to `__pthread_sleep' > main.o(.text+0xce): undefined reference to `__pthread_detach' > net.o(.text+0x196): undefined reference to `__pthread_select' > net.o(.text+0x411): undefined reference to `__pthread_read' > net.o(.text+0x535): undefined reference to `__pthread_write' > > Threaded libraries appear to be installed in /usr/lib (libc_r.a, libc_r.so, > libc_r.so.3, and libc_r_p.a) and thus I am unsure of how to correct this > problem. Any help or advice would be appreciated. > > -- Viren > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message