Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Dec 2002 04:03:32 +0100 (CET)
From:      coolvibe@hackerheaven.org
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/46387: X11R6 libXThrStub breaks X11 apps
Message-ID:  <200212200303.gBK33Wnf066530@azazel.ipv6.hackerheaven.org>

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

>Number:         46387
>Category:       ports
>Synopsis:       X11R6 libXThrStub breaks X11 apps
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 19 19:10:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Emiel Kollof
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD azazel.ipv6.hackerheaven.org 4.7-STABLE FreeBSD 4.7-STABLE #0: Tue Dec 17 18:33:14 CET 2002 root@azazel.ipv6.hackerheaven.org:/usr/obj/usr/src/sys/AZAZEL i386


	
>Description:
	Applications that try to link with X fail with the following error:

	azazel# gcc -o test test.c -L /usr/X11R6/lib -I /usr/X11R6/include -lX11
	/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'

	With -pthread:

	azazel# gcc -o test test.c -L /usr/X11R6/lib -I /usr/X11R6/include -lX11 -pthread
        /usr/X11R6/lib/libXThrStub.so.6: undefined reference to `_Xthr_zero_stub_'
        /usr/X11R6/lib/libXThrStub.so.6: undefined reference to `_Xthr_self_stub_'
	

>How-To-Repeat:
	
	Test code I used:

	-- CUT --	
	char XOpenDisplay();

	int main() {
		XOpenDisplay();
	 	return 0; 
	}
	-- END CUT --
	
	(which is the same test gnu autoconf uses to test for X)	
	
>Fix:

	


>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?200212200303.gBK33Wnf066530>