tclkit build failure on freebsd

Karl Lehenbauer <[email protected]> Mon, 15 Feb 2010 08:16:18 -0800 (PST)
Newsgroups gmane.comp.lang.tcl.starkit
Message-ID <89c60f4a-7cc1-465a-858f-2a1868b4e175@q21g2000yqm.googlegroups.com>
This used to work but now I'm getting an error when I do tclsh8.5
genkit B tcl.  Really we are on Tcl 8.5.  We use tclkit to build
critcl so we can build the C accelerators for tcllib mostly so that
Apache can start fast because it's slow when all the Apache children
check the Tcl search path again and again due to "package require"
failing to find the C extensions.

How can I build a Tcl 8.5 version of tclkit for FreeBSD?

Here's the failed step:

[karl@rowdy ~/src/tclkit]$ tclsh8.5 genkit B tcl
  tcl:
    sh ../../../src/tcl/unix/confi... ok
    make binaries LD_SEARCH_FLAGS=... ok
    make install-binaries install-... ok
    /usr/home/karl/src/tclkit/inst... ok
  Done.
[karl@rowdy ~/src/tclkit]$ sh genkit B
  zlib:
    make CC=gcc libz.a            ... ok
  vfs:
    sh ../../../src/vfs/configure ... ok
    make binaries                 ... ok
  mk:
    sh ../../../src/mk/unix/config... ok
    make Mk4tcl.a                 ... ok
  kitsh:
    gcc -c -I. -I/usr/home/karl/sr... ok
    g++ -o kitsh kitInit.o pwb.o r... FAILED:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-=-
g++ -o kitsh kitInit.o pwb.o rechan.o zlib.o tclAppInit.o ../tcl/
libtcl8.4.a ../vfs/libvfs1.3.a ../zlib/libz.a ../mk/Mk4tcl.a -export-
dynamic -L/usr/home/karl/src/tclkit/install/rowdy/lib -ltcl8.4 -lm
-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
#-#-#-#-
>>> Look in the file 'out/rowdy/kitsh' for details.
      ERROR: child process exited abnormally
  itcldyn:
    sh ../../../src/itcl/itcl/conf... ok
    make binaries ITCL_LIBRARY=   ... ok
    make install-binaries         ... ok
  tkdyn:
    sh ../../../src/tk/unix/config... ok
    make binaries LD_SEARCH_FLAGS=... FAILED:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-=-
make binaries LD_SEARCH_FLAGS= CC_SEARCH_FLAGS= TK_LIBRARY=
-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
#-#-#-#-
>>> Look in the file 'out/rowdy/tkdyn' for details.
      ERROR: child process exited abnormally
  Done.

Here's the output of out/rowdy/kitsh:
[karl@rowdy ~/src/tclkit]$ cat out/rowdy/kitsh

RUN: gcc -c -I. -I/usr/home/karl/src/tclkit/src/tcl/unix -I/usr/home/
karl/src/tclkit/src/tcl/generic -I/usr/home/karl/src/tclkit/src/mk/
include -I/usr/home/karl/src/tclkit/src/zlib -DNDEBUG -
DTCL_LOCAL_APPINIT=TclKit_AppInit -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -
DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DSTATIC_BUILD=1 -
DTCL_WIDE_INT_IS_LONG=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -
DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -
DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -
DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -
DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_ST_BLKSIZE=1 -
DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DHAVE_SIGNED_CHAR=1 -
DHAVE_LANGINFO=1 -DHAVE_FTS=1 -DHAVE_SYS_IOCTL_H=1 -
DHAVE_SYS_FILIO_H=1 -O src/kitInit.c src/pwb.c src/rechan.c src/
zlib.c /usr/home/karl/src/tclkit/src/tcl/unix/tclAppInit.c


RUN: g++ -o kitsh kitInit.o pwb.o rechan.o zlib.o tclAppInit.o ../tcl/
libtcl8.4.a ../vfs/libvfs1.3.a ../zlib/libz.a ../mk/Mk4tcl.a -export-
dynamic -L/usr/home/karl/src/tclkit/install/rowdy/lib -ltcl8.4 -lm

g++: ../vfs/libvfs1.3.a: No such file or directory

ERROR: child process exited abnormally
    while executing
"run g++ -o kitsh kitInit.o pwb.o rechan.o zlib.o tclAppInit.o ../tcl/
libtcl8.4.a ../vfs/libvfs1.3.a ../zlib/libz.a ../mk/Mk4tcl.a -export-
dynamic -L/u..."
    ("eval" body line 1)
    invoked from within
"eval run $gcc -o $target [glob *.o] $L $Z(ldsuff)"
    ("kitsh" arm line 46)
    invoked from within
"switch $target {

	  tcl {
	    config tcl$Z(85)/$X(unix) --disable-shared
	    #run $X(make) genstubs
	    eval run $X(make) binaries  LD_SEARCH_FLAG..."

-- 
You received this message because you are subscribed to the "starkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/starkit?hl=en