From owner-freebsd-stable Thu Dec 19 18: 6:39 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E44E737B405 for ; Thu, 19 Dec 2002 18:06:37 -0800 (PST) Received: from tiamat.ipv6.hackerheaven.org (ipv6.hackerheaven.org [80.126.0.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D2F843ED8 for ; Thu, 19 Dec 2002 18:06:36 -0800 (PST) (envelope-from coolvibe@hackerheaven.org) Received: from tiamat.ipv6.hackerheaven.org (localhost.ipv6.hackerheaven.org [127.0.0.1]) by tiamat.ipv6.hackerheaven.org (8.12.6/8.12.6) with ESMTP id gBK25j51076242 for ; Fri, 20 Dec 2002 03:05:45 +0100 (CET) (envelope-from coolvibe@tiamat.ipv6.hackerheaven.org) Received: (from coolvibe@localhost) by tiamat.ipv6.hackerheaven.org (8.12.6/8.12.6/Submit) id gBK25jMT076241 for freebsd-stable@FreeBSD.ORG; Fri, 20 Dec 2002 03:05:45 +0100 (CET) Date: Fri, 20 Dec 2002 03:05:45 +0100 From: Emiel Kollof To: freebsd-stable@FreeBSD.ORG Subject: More information (was Re: pthread woes) Message-ID: <20021220020545.GC75547@hackerheaven.org> References: <20021220013445.GA75547@hackerheaven.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021220013445.GA75547@hackerheaven.org> X-Mailer: Mutt 1.3.23i (2001-10-09) X-Editor: Vim http://www.vim.org/ X-Info: http://www.hackerheaven.org/ X-Info2: http://www.cmdline.org/ X-Info3: http://www.coolvibe.org/ X-message-flag: Out of cheese error! User-Agent: Mutt/1.5.1i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Emiel Kollof (coolvibe@hackerheaven.org) wrote: > Hi folks, > > I have a problem with compiling stuff that uses POSIX threads. I used > the following snippet of code to test: I tried another snippet of code: #include #include int main() { return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ; return 0; } This fails like this: % gcc -o gtktest gtktest.c `gtk12-config --libs` `gtk12-config --cflags` /usr/X11R6/lib/libX11.so: undefined reference to `pthread_cond_signal' /usr/X11R6/lib/libXThrStub.so.6: undefined reference to `_Xthr_zero_stub_' /usr/X11R6/lib/libX11.so: undefined reference to `pthread_cond_broadcast' /usr/X11R6/lib/libXThrStub.so.6: undefined reference to `_Xthr_self_stub_' /usr/X11R6/lib/libX11.so: undefined reference to `pthread_cond_init' /usr/X11R6/lib/libX11.so: undefined reference to `pthread_mutex_unlock' /usr/X11R6/lib/libX11.so: undefined reference to `pthread_self' /usr/X11R6/lib/libX11.so: undefined reference to `pthread_mutex_destroy' /usr/X11R6/lib/libX11.so: undefined reference to `pthread_mutex_lock' /usr/X11R6/lib/libX11.so: undefined reference to `pthread_cond_wait' /usr/X11R6/lib/libX11.so: undefined reference to `pthread_cond_destroy' /usr/X11R6/lib/libX11.so: undefined reference to `pthread_mutex_init' Now I suspect X11 libraries doing something weird. I am recompiling my X11R6 libs from source to see if this solves things. Cheers -- Fortune's Law of the Week (this week, from Kentucky): No female shall appear in a bathing suit at any airport in this State unless she is escorted by two officers or unless she is armed with a club. The provisions of this statute shall not apply to females weighing less than 90 pounds nor exceeding 200 pounds, nor shall it apply to female horses. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message