Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Compiling tcl8.4.18: (2 Items)
   
Compiling tcl8.4.18  
I'm stuck in compiling the from pkgsrc. I hope the community can help me out.

I'm attempting to compile tcl8.4.18 but I get the following error:
----------------------------------------------------------------------------------
/home/av/test/HEAD_640/pkgsrc/lang/tcl> bmake install
=> Bootstrap dependency digest>=20010302: found digest-20080510
===> Installing for tcl-8.4.18
=> Becoming ``root'' to make su-install-all (/bin/su)
password:
=> Creating installation directories
Warning: tclStubInit.c may be out of date.
Developers may want to run "make genstubs" to regenerate.
This warning can be safely ignored, do not report as a bug!
libtool  --mode=compile gcc -c -O -O2 -pipe  -DTCL_DBGX= -Wall -Wno-implicit-int
 -fno-strict-aliasing -fPIC -I.  -I/home/av/test/HEAD_640/pkgsrc/lang/tcl/work/t
cl8.4.18/unix/../generic -I/home/av/test/HEAD_640/pkgsrc/lang/tcl/work/tcl8.4.18
/unix -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -
DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEE
K64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DH
AVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1
 -DHAVE_SYS_MODEM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_SELECT_H=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_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DNO_FSTATFS=1 -DSTD
C_HEADERS=1 -DNO_UNION_WAIT=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1
-DTCL_SHLIB_EXT=\".so\"  -DTCL_LIBRARY=\"/usr/pkg/lib/tcl8.4\"  -DTCL_PACKAGE_PA
TH="\"/usr/pkg/lib/tcl /usr/pkg/lib /usr/pkg/lib/tcl\""  /home/av/test/HEAD_640/
pkgsrc/lang/tcl/work/tcl8.4.18/unix/tclUnixInit.c
 gcc -c -O -O2 -pipe -DTCL_DBGX= -Wall -Wno-implicit-int -fno-strict-aliasing -f
PIC -I. -I/home/av/test/HEAD_640/pkgsrc/lang/tcl/work/tcl8.4.18/unix/../generic
-I/home/av/test/HEAD_640/pkgsrc/lang/tcl/work/tcl8.4.18/unix -DNO_VALUES_H=1 -DH
AVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 "-DTCL_WIDE_INT_TYPE=long
long" -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_
T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRT
OLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_SYS_MODEM_H=1 -D
USE_TERMIOS=1 -DHAVE_SYS_SELECT_H=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
_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DNO_FSTATFS=1 -DSTDC_HEADERS=1 -DNO_UNION_W
AIT=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_SHLIB_EXT=\".so\" -DTCL_LI
BRARY=\"/usr/pkg/lib/tcl8.4\" "-DTCL_PACKAGE_PATH=\"/usr/pkg/lib/tcl /usr/pkg/li
b /usr/pkg/lib/tcl\"" /home/av/test/HEAD_640/pkgsrc/lang/tcl/work/tcl8.4.18/unix
/tclUnixInit.c  -fPIC -DPIC -o .libs/tclUnixInit.o
gcc: error: environment variables QNX_HOST and QNX_TARGET not defined
*** Error code 1

Stop.
bmake: stopped in /home/av/test/HEAD_640/pkgsrc/lang/tcl/work/tcl8.4.18/unix
*** Error code 1

Stop.
bmake: stopped in /home/av/test/HEAD_640/pkgsrc/lang/tcl
*** Error code 1

Stop.
bmake: stopped in /home/av/test/HEAD_640/pkgsrc/lang/tcl
*** Error code 1

Stop.
bmake: stopped in /home/av/test/HEAD_640/pkgsrc/lang/tcl
----------------------------------------------------------------------------------

To make sure my environment file wasn't wrong, I echo the supposed missing variables:

----------------------------------------------------------------------------------
/home/av/test/HEAD_640/pkgsrc/lang/tcl> echo $QNX_HOST
/usr/qnx641/host/qnx6/x86
/home/av/test/HEAD_640/pkgsrc/lang/tcl> echo $QNX_TARGET
/usr/qnx641/target/qnx6
----------------------------------------------------------------------------------

So the environment variables exists... so what's causing the error?

Any ideas? Thanks!
Re: Compiling tcl8.4.18  
I think I found the problem: I had to log in as "root". tcl seem to compile fine now.