From owner-freebsd-questions Sat Dec 4 12:17:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.interactive.net (smtp.interactive.net [216.107.133.18]) by hub.freebsd.org (Postfix) with ESMTP id 053B515163 for ; Sat, 4 Dec 1999 12:17:43 -0800 (PST) (envelope-from viren@interactive.net) Received: from nebula ([216.107.140.240]) by smtp.interactive.net (InterMail v4.01.00 201-232-112) with ESMTP id <19991204201602.XVFI2929.smtp@nebula> for ; Sat, 4 Dec 1999 15:16:02 -0500 Message-Id: <4.2.0.58.19991204151320.00a55ee0@pop.interactive.net> X-Sender: viren@pop.interactive.net X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Sat, 04 Dec 1999 15:17:20 -0500 To: freebsd-questions@freebsd.org From: Viren Jain Subject: Threading Problems on FreeBSD 3.3 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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-questions" in the body of the message