From owner-freebsd-threads@FreeBSD.ORG Sat Sep 25 13:15:36 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C4C316A4CE for ; Sat, 25 Sep 2004 13:15:36 +0000 (GMT) Received: from exsmtp2.ntu.edu.sg (exsmtp2.ntu.edu.sg [155.69.5.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1A7443D48 for ; Sat, 25 Sep 2004 13:15:34 +0000 (GMT) (envelope-from gaoyandong@pmail.ntu.edu.sg) Received: from mail03.student.main.ntu.edu.sg ([155.69.5.167]) by exsmtp2.ntu.edu.sg with Microsoft SMTPSVC(6.0.3790.0); Sat, 25 Sep 2004 21:15:33 +0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Sat, 25 Sep 2004 21:15:31 +0800 Message-ID: <052033A55521254893A4E2041957E1D01CB81B@mail03.student.main.ntu.edu.sg> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: a problem about pthread Thread-Index: AcSjAbpQgAczCu5rR86nVX3kIBu2hQ== From: "#GAO YANDONG#" To: X-OriginalArrivalTime: 25 Sep 2004 13:15:33.0054 (UTC) FILETIME=[BCC505E0:01C4A301] Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: a problem about pthread X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Sep 2004 13:15:36 -0000 Dear all, =20 I met a problem when I compile DEAL.II (a general finite element library) in FreeBSD 4.10. After I run "gmake", I got the following information =20 " /usr/.../deal/deal.II/lib/libdeal_II_2d.g.so: undefined reference to 'pthread_mutex_unlock' /usr/.../deal/deal.II/lib/libdeal_II_2d.g.so: undefined reference to 'pthread_mutex_destroy' /usr/.../deal/deal.II/lib/libdeal_II_2d.g.so: undefined reference to 'pthread_mutex_lock' /usr/.../deal/deal.II/lib/libdeal_II_2d.g.so: undefined reference to 'pthread_mutex_init' =20 " Someone tell me to use=20 "export LIBS=3D-lpthread" before compile the library, but it didn't work. =20 And, It's said on FreeBSD, "gcc -pthread " will generate some problem http://lists.freebsd.org/mailman/htdig/freebsd-threads/2003-September/00 1203.html =20 =20 What can I do? =20 Best Regards, =20 Yandong=20