From owner-freebsd-ports Thu Nov 15 21:50: 9 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 04C4237B416 for ; Thu, 15 Nov 2001 21:50:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fAG5o0m64173; Thu, 15 Nov 2001 21:50:00 -0800 (PST) (envelope-from gnats) Received: from hershey.dyn.bar.net (c1603280-a.provo1.ut.home.com [65.5.37.42]) by hub.freebsd.org (Postfix) with ESMTP id D499437B418 for ; Thu, 15 Nov 2001 21:44:15 -0800 (PST) Received: (from heath@localhost) by hershey.dyn.bar.net (8.11.6/8.11.5) id fAG5iDq23718; Thu, 15 Nov 2001 22:44:13 -0700 (MST) (envelope-from heath) Message-Id: <200111160544.fAG5iDq23718@hershey.dyn.bar.net> Date: Thu, 15 Nov 2001 22:44:13 -0700 (MST) From: Heath Nielson Reply-To: Heath Nielson To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/32032: [patch] fix devel/linguist Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 32032 >Category: ports >Synopsis: [patch] fix devel/linguist >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Nov 15 21:50:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Heath Nielson >Release: FreeBSD 4.4-STABLE i386 >Organization: >Environment: System: FreeBSD hershey.dyn.bar.net 4.4-STABLE FreeBSD 4.4-STABLE #1: Wed Nov 14 22:15:39 MST 2001 heath@hershey.dyn.bar.net:/usr/src/sys/compile/HERSHEY i386 >Description: Build fails with the following linker error: /usr/X11R6/lib/libGL.so.1: undefined reference to `pthread_getspecific' /usr/X11R6/lib/libGL.so.1: undefined reference to `pthread_key_create' /usr/X11R6/lib/libGL.so.1: undefined reference to `pthread_setspecific' Note: I tried submitting this pr earlier, but I think I thoroughly screwed it up so it wasn't accepted, if this is a dup please disregard. >How-To-Repeat: cd /usr/ports/devel/linguist && make >Fix: I'm not sure how it's supposed to be fixed, but by adding thread to the CONFIG line in each of the .pro files fixes the problem. --- Makefile.orig Wed Nov 14 12:54:41 2001 +++ Makefile Wed Nov 14 12:51:15 2001 @@ -33,6 +33,10 @@ CFLAGS+= -O0 .endif +pre-configure: + @find ${WRKSRC} -name '*.pro' | xargs ${PERL} -pi -e \ + 's/(^CONFIG.*)/\1 thread/' + post-configure: @${PERL} -pi -e 's|\$\(SUBDIRS\):.*tmake_all|\$\(SUBDIRS\):|' \ ${WRKSRC}/Makefile >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message