Problem compiling TCL

Dan Nicholson dbn.lists at gmail.com
Sat Oct 29 14:25:26 PDT 2005


On 10/29/05, Paul Lewis <paul.lewis at st-annes.oxford.ac.uk> wrote:
> I'm using LFS 6.1, and have come across a problem when I try to compile TCL
> (version 8.4.9, as recommended by the book). I have been following the
> instructions in the book exactly, with no deviations. I have booted from the
> LiveCD to create my own LFS environment. The only anomaly might be that I'm
> creating it inside a VMWare machine - using version 5.
<snip>
> lfs:/mnt/lfs/sources/tcl8.4.9/unix$ make
> gcc -pipe -c -02  -DTCL_DBGX= -Wall -Wno-implicit-int -fno-strict-aliasing
> -fPIC
>  -I./../generic -I. -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1
> -DTCL_WIDE_INT_TYP
> E=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
> -DHA
> VE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1
> -DHAVE_LIMITS_H=
> 1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1
> -DTIME_WITH_SYS_TIM
> E=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 -Dstrtod=fixstrtod -DSTDC_HEADERS=1
> -DH
> AVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1
> -DTCL_SHLIB_EXT=
> \".so\" ./../compat/strstr.c
> ./../compat/strstr.c: In function 'strstr':
> ./../compat/strstr.c:67: error: 'NULL' undeclared (first use in this
> function)

That's strange.  For me, tcl doesn't even compile strstr.c.  I suppose
that's because it finds that function on the system.  Here's the
relevant configure line:
checking for strstr... yes
Could you post the configure log please?  It seems that installing
inside VMWare might be a problem.  That's speculation, though, because
I know nothing about how VMWare works or what it does.  Maybe not a
good idea unless you're experienced with lfs.

Actually, now that I looked at the order of the packages, I think you
might have had problems with your glibc build since I believe it
provides the function strstr in /tools/include/bits/string.h.  Did you
pass the sanity check at the bottom of Ch. 5.7?

--
Dan



More information about the lfs-support mailing list