Date: Sun, 19 Mar 2000 13:07:39 -0700 From: Jonathan Wilkins <jwilkins@madscience.nu> To: freebsd-questions@FreeBSD.ORG Subject: FreeBSD-3.4-RELEASE, pthreads and gcc-2.95.2(egcs) Message-ID: <38D5338B.D810B2E5@madscience.nu>
index | next in thread | raw e-mail
hello all,
I installed gcc version 2.95.2 (egcs) via /usr/ports/lang/egcs and
then attempted to recompile a threaded application I am working on. I
wound up with a bunch of errors at link time due to unresolved functions
(compiling with "gcc295 -g -pg -pthread -O", __pthread_read,
__pthread_write and __pthread_accept were missing)
If I changed my CFLAGS to "gcc295 -g -pg -O" and added "-lpthread" I
could compile fine, but got a bus error at runtime. If I added
"-lpthread -lc_r" then no bus error, it just hangs, no output.
I also tried reconfiguring and rebuilding gcc (first with ./configure
--enable-threads then with --enable-threads=pthread and lastly with
--enable-threads=posix)
I upgraded another machine to 4.0-RELEASE last night, and everything
compiles and runs fine (gcc -g -pg -pthread -O)...
Any suggestions on something I may have missed?
Thanks
Jonathan
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38D5338B.D810B2E5>
