From owner-freebsd-current Thu Feb 15 4: 6:24 2001 Delivered-To: freebsd-current@freebsd.org Received: from m08.alpha-net.ne.jp (m08.alpha-net.ne.jp [210.229.64.38]) by hub.freebsd.org (Postfix) with ESMTP id 631D337B491; Thu, 15 Feb 2001 04:06:18 -0800 (PST) Received: from kyoto-tc012-p135.alpha-net.ne.jp (kyoto-tc012-p135.alpha-net.ne.jp [210.237.118.169]) by m08.alpha-net.ne.jp (8.9.3/3.7W) with ESMTP id VAA22463; Thu, 15 Feb 2001 21:05:59 +0900 (JST) Received: from souffle.bogus-local.net (localhost [127.0.0.1]) by kyoto-tc012-p135.alpha-net.ne.jp (Postfix) with ESMTP id 2620216B9E; Thu, 15 Feb 2001 21:06:00 +0900 (JST) Date: Thu, 15 Feb 2001 21:05:59 +0900 Message-ID: <86n1bop2vs.wl@cheerful.com> From: FUJISHIMA Satsuki To: John Indra Cc: freebsd-current@freebsd.org, kevlo@FreeBSD.org, sobomax@FreeBSD.org Subject: -lc_r against shared library (Re: Failed to build kdesupport2 port) In-Reply-To: <20010215110428.A31614@office.naver.co.id> References: <20010215110428.A31614@office.naver.co.id> User-Agent: Wanderlust/2.4.0 (Rio) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/20.7 (i386--freebsd) MULE/4.1 (AOI) MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If you paid attention to -ports, you found adding CONFIGURE_ARGS= "LIBS=-pthread" to kdesupport2/Makefile would help. There are some way to ``fix'' this problem: a) linking -lc_r against libGL. This is denied by John Polstra and he suggested (b). He said libc and libc_r must be strictly synchronized. If so, this might be a bad idea. b) adding -pthread to each port which uses libGL. This method needs some work but if this is the way to go, we should start fixing broken ports. So many ports are broken with -pthread now. c) Use -lc_r instead of -pthread. As -pthread will be depreciated, we should use -lc_r for FreeBSD 5.0 and later, shouldn't we? d) [Please add your opinions] -- FUJISHIMA Satsuki To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message