From owner-freebsd-smp Fri Aug 22 06:18:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA08022 for smp-outgoing; Fri, 22 Aug 1997 06:18:15 -0700 (PDT) Received: from netserv1.chg.ru (netserv1.chg.ru [193.233.46.3]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA08007 for ; Fri, 22 Aug 1997 06:18:02 -0700 (PDT) Received: from itp.ac.ru (itp.ac.ru [193.233.32.4]) by netserv1.chg.ru (8.8.3/8.8.3) with ESMTP id RAA09666 for ; Fri, 22 Aug 1997 17:15:52 +0400 (MSD) Received: from speecart.chg.ru (speecart.chg.ru [193.233.46.2]) by itp.ac.ru (8.8.3/8.8.3) with SMTP id RAA02417 for ; Fri, 22 Aug 1997 17:17:50 +0400 (MSD) Message-ID: X-Mailer: XFMail 1.1 [p0] on FreeBSD Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Fri, 22 Aug 1997 17:16:20 +0400 (MSD) Organization: Landau Institute for Theoretical Physics From: "Sergey S. Kosyakov" To: freebsd-smp@freebsd.org Subject: Help with pthreads Sender: owner-freebsd-smp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi ! I successfully start SMP on my 2xP120 box. Things like "make -j n all" work fine. But I met a lot of troubles while trying compile some short program with treads using. This program do matrix multiplication and works fine on DEC UNIX using DEC threads. When I compile as: cc -o multp multp.c -lc_r the program does not start the second thread The next case: cc -nostdlib -o multp multp.c -lc_r /usr/lib/crt0.o -lgcc it crashes with core dump (bus error). Please, help me - does pthread library works on FreeBSD-970807-SNAP and if so how to use it? Regards, Sergey Kosyakov Landau Institute for Theoretical Physics E-Mail: Sergey S. Kosyakov Date: 22-Aug-97 Time: 17:16:21 ----------------------------------