Subject: pkg/28499: pkg : tk-8.4.8 doesn't build on i386 NetBSD 1.6
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <Gilles@Gravier.org>
List: pkgsrc-bugs
Date: 12/01/2004 13:21:00
>Number:         28499
>Category:       pkg
>Synopsis:       tk-8.4.8 doesn't build on i386 NetBSD 1.6
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 01 13:21:00 +0000 2004
>Originator:     Gilles@Gravier.org
>Release:        NetBSD 1.6
>Organization:
	Individual USer
>Environment:
System: NetBSD mailhost 1.6 NetBSD 1.6 (GENERIC_LAPTOP) #0: Sun Sep 8 19:55:58 UTC 2002 autobuild@tgm.daemon.org:/autobuild/i386/OBJ/autobuild/src/sys/arch/i386/compile/GENERIC_LAPTOP i386
Architecture: i386
Machine: i386
>Description:
	Running "make" in the /usr/pkgsrc/x11/tk results in the following error messages:
	
	===> Building for tk-8.4.8
	(...)
	libtool  --mode=link cc -pipe -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib tkAppInit.o  libtk84.la  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -ltcl84  -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -lX11  -lm -Wl,-rpath,/usr/pkg/lib -Wl,-R/usr/X11R6/lib -o wish
	cc -pipe -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib tkAppInit.o -Wl,-rpath -Wl,/usr/pkg/lib -o .libs/wish  -L/usr/pkgsrc/x11/tk/work/.buildlink/lib -L/usr/pkgsrc/x11/tk/work/.x11-buildlink/lib ./.libs/libtk84.so -ltclstub84 /usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so -lX11 -lm -Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath -Wl,/usr/pkgsrc/x11/tk/work/.buildlink/lib
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_attr_destroy'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_create'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_getspecific'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_attr_init'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_exit'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_key_delete'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_attr_setscope'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_cond_broadcast'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_key_create'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_attr_setstacksize'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_cond_init'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_mutex_unlock'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_self'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_mutex_destroy'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_mutex_lock'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_cond_wait'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_cond_destroy'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_mutex_init'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_attr_setdetachstate'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_join'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_cond_timedwait'
	/usr/pkgsrc/x11/tk/work/.buildlink/lib/libtcl84.so: undefined reference to `pthread_setspecific'
	collect2: ld returned 1 exit status
	*** Error code 1

>How-To-Repeat:
	cd /usr/pkgsrc/x11/tk
	make
>Fix:
	Unknown