From owner-freebsd-questions Sun Mar 19 12: 8: 7 2000 Delivered-To: freebsd-questions@freebsd.org Received: from 24.67.108.216.ab.wave.home.com (24.67.108.216.ab.wave.home.com [24.67.108.216]) by hub.freebsd.org (Postfix) with SMTP id C463137B711 for ; Sun, 19 Mar 2000 12:07:54 -0800 (PST) (envelope-from jwilkins@madscience.nu) Received: (qmail 8529 invoked from network); 19 Mar 2000 20:21:17 -0000 Received: from unknown (HELO madscience.nu) (jwilkins@10.0.0.90) by 10.0.0.1 with SMTP; 19 Mar 2000 20:21:17 -0000 Message-ID: <38D5338B.D810B2E5@madscience.nu> Date: Sun, 19 Mar 2000 13:07:39 -0700 From: Jonathan Wilkins X-Mailer: Mozilla 4.72 [en] (X11; I; FreeBSD 3.4-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: FreeBSD-3.4-RELEASE, pthreads and gcc-2.95.2(egcs) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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