Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2001 22:44:13 -0700 (MST)
From:      Heath Nielson <heath@cs.byu.edu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/32032: [patch] fix devel/linguist
Message-ID:  <200111160544.fAG5iDq23718@hershey.dyn.bar.net>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111160544.fAG5iDq23718>