From owner-freebsd-stable Fri Dec 20 7:29:26 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 3BF7E37B401 for ; Fri, 20 Dec 2002 07:29:25 -0800 (PST) Received: from tiamat.ipv6.hackerheaven.org (ipv6.hackerheaven.org [80.126.0.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 976CC43EDC for ; Fri, 20 Dec 2002 07:29:23 -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 gBKFST51082688 for ; Fri, 20 Dec 2002 16:28:29 +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 gBKFSTOC082687 for freebsd-stable@FreeBSD.ORG; Fri, 20 Dec 2002 16:28:29 +0100 (CET) Date: Fri, 20 Dec 2002 16:28:28 +0100 From: Emiel Kollof To: freebsd-stable@FreeBSD.ORG Subject: The plot thickens (problem solved!) (was Re: More information ...) Message-ID: <20021220152828.GA81599@hackerheaven.org> References: <20021220013445.GA75547@hackerheaven.org> <20021220020545.GC75547@hackerheaven.org> <200212200333.04276.coolvibe@hackerheaven.org> <20021220113825.GA80454@hackerheaven.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021220113825.GA80454@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: [snip -pthread/-lc_r stuff and X] > azazel# gcc -o test test.c -L /usr/X11R6/lib -pthread -lX11 > /usr/X11R6/lib/libXThrStub.so.6: undefined reference to `_Xthr_zero_stub_' > /usr/X11R6/lib/libXThrStub.so.6: undefined reference to `_Xthr_self_stub_' > > your system has the same problems as I do. Also, somehow I doubt that > *every* X11 program needs -pthread or -lc_r. Allright, who broke XFree86? Fess up! :) After removing _every_ trace of X-related stuff off of my system, X just completely fails to build. XFree86-4-libraries builds fine, but then when building the XFree86-4-clients it bombs, same pthread/XthrStub related error I have been meandering about all day. I stronly suspect that the patch-UIThrStubs.c in the X-4-libs port must be bogus. After removing it the problems were gone. What the patch added was a #ifdef to facilitate gcc3.x compilers (a.k.a. CURRENT), but I guess it broke 2.94.x compilers in the process. Removing the patch-UIThrStubs.c in the files/ dir of the XFree86-4-libraries port made things sane again... So? Who broke it? :) Cheers, Emiel -- If you read this fortune, you just wasted about 5 seconds of your time. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message