Date: Mon, 6 Dec 1999 16:56:29 -0800 (PST) From: Kip Macy <kip@lyris.com> To: Viren Jain <viren@interactive.net> Cc: freebsd-hackers@freebsd.org Subject: Re: Linking problems w/ pthreads on 3.3 Message-ID: <Pine.SOL.4.05.9912061655210.18982-100000@luna> In-Reply-To: <4.2.0.58.19991206150019.00a63380@pop.interactive.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.05.9912061655210.18982-100000>