regcomp.o error while compiling tcl 8.4.13

Rob Burris robert.burris at colorado.edu
Wed Nov 21 09:34:39 PST 2007


Hi Guys,

I made it through LFS 6.2 and I'm now working on BLFS. Trying to compile 
TCL 8.4.13 and I get the following error message.

gcc -c -O2 -DTCL_DBGX= -fPIC -I/tcl8.4.13/unix/../generic 
-I/tcl8.4.13/unix -DHAVE_LIMITS_H=1 -DNO_STDLIB_H=1 -DNO_STRING_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 
-D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 
-DHAVE_PTHREAD_ATFORK=1 -DTCL_THREADS=1 -DPEEK_XCLOSEIM=1 
-D_LARGEFILE64_SOURCE=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_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_TIMEZONE_VAR=1 
-DHAVE_ST_BLKSIZE=1 -Dmode_t=int -Dpid_t=int -Dsize_t=unsigned 
-Duid_t=int -Dgid_t=int -Dsocklen_t=unsigned -DNO_UNION_WAIT=1 
-DGETTOD_NOT_DECLARED=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_PUTENV_THAT_COPIES=1 
-DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_SHLIB_EXT=\".so\" 
/tcl8.4.13/unix/../generic/regcomp.c
In file included from /usr/include/stdio.h:34,
from /tcl8.4.13/unix/../generic/tcl.h:159,
from /tcl8.4.13/unix/../generic/tclInt.h:32,
from /tcl8.4.13/unix/../generic/regcustom.h:30,
from /tcl8.4.13/unix/../generic/regguts.h:38,
from /tcl8.4.13/unix/../generic/regcomp.c:33:
/usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/stddef.h:214: error: 
duplicate ‘unsigned’
In file included from /tcl8.4.13/unix/../generic/../compat/string.h:28,
from /tcl8.4.13/unix/../generic/tclInt.h:49,
from /tcl8.4.13/unix/../generic/regcustom.h:30,
from /tcl8.4.13/unix/../generic/regguts.h:38,
from /tcl8.4.13/unix/../generic/regcomp.c:33:
/usr/include/sys/types.h:67: error: two or more data types in 
declaration specifiers
/usr/include/sys/types.h:72: error: two or more data types in 
declaration specifiers
/usr/include/sys/types.h:82: error: two or more data types in 
declaration specifiers
/usr/include/sys/types.h:100: error: two or more data types in 
declaration specifiers
/tcl8.4.13/unix/../generic/regcomp.c: In function ‘dovec’:
/tcl8.4.13/unix/../generic/regcomp.c:1589: warning: passing argument 1 
of ‘free’ from incompatible pointer type
make: *** [regcomp.o] Error 1

I'm guessing this has something to do with an improperly compiled GCC 
from the previous LFS section? Something I'm hoping I can go back and 
redo. Obviously, I haven't yet compiled GCC from BLFS. Any help or 
suggestions is appreciated.

Cheers,
Rob



More information about the lfs-support mailing list