Subject: Re: pkg/25274
To: None <wiz@netbsd.org>
From: Noud de Brouwer <netbsd-install@home.nl>
List: pkgsrc-bugs
Date: 01/22/2005 18:34:59
wiz@netbsd.org wrote:

>Synopsis: blt (current) doesn't build w/ tcl 8.4.6
>
>State-Changed-From-To: open->feedback
>State-Changed-By: wiz@netbsd.org
>State-Changed-When: Mon, 27 Dec 2004 22:06:54 +0000
>State-Changed-Why:
>Built fine in the latest 2.0 bulk build -- do you still see a problem?
>
>
>
>
>  
>
builds/installes OK at tcl 8.3.4 not 8.4
$ pkg_info|grep blt
blt-2.4z            Extension to Tcl/Tk

given i build/install as an user using this patch:

*** Makefile    Thu Dec 30 23:46:58 2004
--- Makefile.new        Thu Dec 30 23:47:30 2004
***************
*** 22,27 ****
--- 22,29 ----
  CONFIGURE_ENV+=               X11BASE=${X11BASE}
  MAKE_ENV+=            CP=${CP}

+ SHAREMODE=            744
+
  .include "../../lang/tcl83/buildlink3.mk"
  .include "../../x11/tk83/buildlink3.mk"

CP136829-A#

at the same system:

NetBSD CP136829-A 2.0 NetBSD 2.0 (GENERIC) #0: Wed Dec  1 10:58:25 UTC 
2004  
builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC 
i386 i386 Intel Celeron (686-class) NetBSD
+ pkgsrc v 2.0

does _not_ build OK w/ tcl 8.4:

gcc -Wall -O2 -I/usr/pkg/include  -I. -I.  -I/usr/pkg/include 
-I/usr/X11R6/include -L/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/lib 
-Wl,-R/usr/X11R6/lib -DTCL_ONLY -o bltsh  
-DTCLLIBPATH=\"/usr/pkg/lib/tcl8.4\"  ./bltUnixMain.c libBLTlite.a 
-L/usr/pkg/lib -ltcl84 -lm
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_attr_destroy'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_create'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_getspecific'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_attr_init'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_exit'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_key_delete'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_attr_setscope'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_cond_broadcast'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_once'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_key_create'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_attr_setstacksize'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_cond_init'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_mutex_unlock'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_self'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_mutex_lock'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_cond_wait'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_cond_destroy'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_mutex_init'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_attr_setdetachstate'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_join'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_cond_timedwait'
/root/workspace/pkgsrc/x11/blt/work/.buildlink/lib/libtcl84.so: 
undefined reference to `pthread_setspecific'
*** Error code 1
 
Stop.
make: stopped in /root/workspace/pkgsrc/x11/blt/work/blt2.4z/src
*** Error code 1

Noud