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

>Synopsis: tcl-itcl (current) doesn't build correct if tcl&tk-8.4.6 is installed
>
>State-Changed-From-To: open->feedback
>State-Changed-By: wiz@netbsd.org
>State-Changed-When: Mon, 27 Dec 2004 22:14:26 +0000
>State-Changed-Why:
>Built fine in the latest bulk builds -- do you still
>see a problem?
>
>
>
>
>  
>
builds/installes OK at tcl 8.3.4 not 8.4
$ pkg_info|grep tcl-itcl
tcl-itcl-3.2nb1     [incr Tcl] object-oriented extension to Tcl/Tk

i do user install so do use this patch:

*** Makefile    Fri Dec 31 00:18:54 2004
--- Makefile.new        Fri Dec 31 14:31:10 2004
***************
*** 21,26 ****
--- 21,28 ----

  MAKE_ENV+=    TCL_HEADER_DIR=${BUILDLINK_PREFIX.tcl}/include/tcl

+ BINMODE=      755
+
  post-extract:
        @${MV} -f ${WRKSRC}/iwidgets3.0.0/doc/dialog.n                  \
                ${WRKSRC}/iwidgets3.0.0/doc/itcldialog.n


builds partly at tcl 8.4, does not package correct:

 gcc -DVERSION=\"3.2\" -DITCL_LIBRARY=\"/usr/pkg/lib/tcl/itcl3.2\" 
-I/root/workspace/pkgsrc/lang/tcl-itcl/work/.buildlink/include/tcl/generic 
-I/root/workspace/pkgsrc/lang/tcl-itcl/work/.buildlink/include/tcl/unix 
-I./generic -I./unix 
-I/root/workspace/pkgsrc/lang/tcl-itcl/work/.buildlink/include -O -fPIC 
-c ./generic/itcl_class.c  -fPIC -DPIC -o .libs/itcl_class.o
generic/itcl_class.c: In function `Itcl_CreateClass':
generic/itcl_class.c:214: warning: passing arg 2 of 
`Tcl_SetNamespaceResolvers' from incompatible pointer type
generic/itcl_class.c:214: warning: passing arg 3 of 
`Tcl_SetNamespaceResolvers' from incompatible pointer type
generic/itcl_class.c:214: warning: passing arg 4 of 
`Tcl_SetNamespaceResolvers' from incompatible pointer type
generic/itcl_class.c: In function `Itcl_ClassCmdResolver':
generic/itcl_class.c:963: error: structure has no member named `deleted'
generic/itcl_class.c: In function `Itcl_GetCommonVar':
generic/itcl_class.c:1642: warning: assignment discards qualifiers from 
pointer target type
*** Error code 1

 
for dir in itcl itk iwidgets2.2.0 iwidgets3.0.0 ; do  if test -d $dir ; 
then  echo "$dir: /usr/bin/make install" ; (cd $dir; /usr/bin/make 
install)  else  exit 1;  fi  done;
itcl: /usr/bin/make install
libtool  --mode=compile gcc -DVERSION=\"3.2\"       
-DITCL_LIBRARY=\"/usr/pkg/lib/tcl/itcl3.2\" 
-I/usr/pkg/include/tcl/generic -I/usr/pkg/include/tcl/unix -I"./generic" 
-I"./unix"  -I/usr/pkg/include  -O  -fPIC -c `echo 
./generic/itcl_class.c` -o itcl_class.o
 gcc -DVERSION=\"3.2\" -DITCL_LIBRARY=\"/usr/pkg/lib/tcl/itcl3.2\" 
-I/root/workspace/pkgsrc/lang/tcl-itcl/work/.buildlink/include/tcl/generic 
-I/root/workspace/pkgsrc/lang/tcl-itcl/work/.buildlink/include/tcl/unix 
-I./generic -I./unix 
-I/root/workspace/pkgsrc/lang/tcl-itcl/work/.buildlink/include -O -fPIC 
-c ./generic/itcl_class.c  -fPIC -DPIC -o .libs/itcl_class.o
generic/itcl_class.c: In function `Itcl_CreateClass':
generic/itcl_class.c:214: warning: passing arg 2 of 
`Tcl_SetNamespaceResolvers' from incompatible pointer type
generic/itcl_class.c:214: warning: passing arg 3 of 
`Tcl_SetNamespaceResolvers' from incompatible pointer type
generic/itcl_class.c:214: warning: passing arg 4 of 
`Tcl_SetNamespaceResolvers' from incompatible pointer type
generic/itcl_class.c: In function `Itcl_ClassCmdResolver':
generic/itcl_class.c:963: error: structure has no member named `deleted'
generic/itcl_class.c: In function `Itcl_GetCommonVar':
generic/itcl_class.c:1642: warning: assignment discards qualifiers from 
pointer target type
*** Error code 1

resulting to:

tar: WARNING! These file names were not selected:
include/itcl.h
include/itclDecls.h
include/itclInt.h
include/itclIntDecls.h
lib/tcl/itcl3.2/pkgIndex.tcl
lib/tcl/itcl3.2/itcl.tcl
lib/libitcl32.so
lib/libitcl32.so.0
lib/libitcl32.so.0.0
lib/libitcl32.la
lib/libitcl32.a
lib/libitclstub32.a
man/mann/body.n
man/mann/class.n
man/mann/code.n
man/mann/configbody.n
man/mann/delete.n
man/mann/ensemble.n
man/mann/find.n
man/mann/itcl.n
man/mann/itcl_class.n
man/mann/itcl_info.n
man/mann/itclvars.n
man/mann/local.n
man/mann/scope.n
pkg_create: tar command failed with code 256
*** Error code 1

Noud