1753774 Members
6413 Online
108799 Solutions
New Discussion юеВ

Failed to compile tcl

 
chenn_1
Advisor

Failed to compile tcl

I failed to compile tcl8.5.8 and I am wondering if this is a HP-UX specific porting proble. The platform is PA, and OS version is 11.31 Fusion 1009.

The ./configure info and build log are list as below. Thanks in advance.

-------------------- ./configure -------------
# ./configure
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... no
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for inline... no
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dirent.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for building with threads... no (default)
checking for sin... no
checking for main in -lieee... no
checking for main in -linet... no
checking net/errno.h usability... no
checking net/errno.h presence... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking how to build libraries... shared
checking for ranlib... ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking if compiler supports visibility "hidden"... no
checking if rpath support is requested... yes
checking system version... HP-UX-B.11.31
checking for dlopen in -ldl... no
checking for ar... ar
checking for shl_load in -ldld... yes
checking for build with symbols... no
checking for required early compiler flags... _LARGEFILE64_SOURCE
checking for 64-bit integer type... long long
checking for struct dirent64... no
checking for struct stat64... yes
checking for open64... yes
checking for lseek64... yes
checking for off64_t... yes
checking whether byte ordering is bigendian... yes
checking for getcwd... yes
checking for opendir... yes
checking for strtol... yes
checking for waitpid... yes
checking for strerror... yes
checking for getwd... yes
checking for wait3... yes
checking for uname... yes
checking for realpath... yes
checking for getaddrinfo... yes
checking for working getaddrinfo...
checking sys/modem.h usability... yes
checking sys/modem.h presence... yes
checking for sys/modem.h... yes
checking termios vs. termio vs. sgtty... termios
checking for fd_set in sys/types... no
checking for fd_mask in sys/select... missing
checking whether struct tm is in sys/time.h or time.h... time.h
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for struct tm.tm_zone... no
checking for tzname... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking for mktime... yes
checking tm_tzadj in struct tm... no
checking tm_gmtoff in struct tm... no
checking long timezone variable... yes
checking for struct stat.st_blksize... yes
checking for fstatfs... yes
checking for working memcmp... yes
checking for memmove... yes
checking for strstr... yes
checking proper strstr implementation... ok
checking for strtoul... yes
checking proper strtoul implementation... ok
checking for strtod... yes
checking proper strtod implementation... ok
checking for strtod... (cached) yes
checking for Solaris2.4/Tru64 strtod bugs... ok
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for socklen_t... no
checking for intptr_t... no
checking for pointer-size signed integer type... none
checking for uintptr_t... no
checking for pointer-size unsigned integer type... none
checking for opendir... (cached) yes
checking union wait... no
checking for strncasecmp... yes
checking for BSDgettimeofday... no
checking for gettimeofday... yes
checking for gettimeofday declaration... present
checking whether char is unsigned... yes
checking signed char declarations... no
checking for a putenv() that copies the buffer... yes
checking langinfo.h usability... no
checking langinfo.h presence... yes
configure: WARNING: langinfo.h: present but cannot be compiled
configure: WARNING: langinfo.h: check for missing prerequisite headers?
configure: WARNING: langinfo.h: see the Autoconf documentation
configure: WARNING: langinfo.h: section "Present But Cannot Be Compiled"
configure: WARNING: langinfo.h: proceeding with the preprocessor's result
configure: WARNING: langinfo.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------ ##
configure: WARNING: ## Report this to the tcl lists. ##
configure: WARNING: ## ------------------------------ ##
checking for langinfo.h... yes
checking whether to use nl_langinfo... yes
checking for chflags... no
checking isnan... no
checking for fts... no
checking sys/ioctl.h usability... no
checking sys/ioctl.h presence... yes
configure: WARNING: sys/ioctl.h: present but cannot be compiled
configure: WARNING: sys/ioctl.h: check for missing prerequisite headers?
configure: WARNING: sys/ioctl.h: see the Autoconf documentation
configure: WARNING: sys/ioctl.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/ioctl.h: proceeding with the preprocessor's result
configure: WARNING: sys/ioctl.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------ ##
configure: WARNING: ## Report this to the tcl lists. ##
configure: WARNING: ## ------------------------------ ##
checking for sys/ioctl.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking system version... (cached) HP-UX-B.11.31
checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... O_NONBLOCK
checking whether to use dll unloading... yes
checking for timezone data... supplied by Tcl
checking whether to enable DTrace support... no
checking if the C stack grows upwards in memory... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating dltest/Makefile
config.status: creating tclConfig.sh


----------- end ./configure --------------



------------ ./make -----------------------

# make
cc -c -O +z -I"." -I/home/adam/tcl8.5.8/unix/../unix -I/home/adam/tcl8.5.8/unix/../generic -I/home/adam/tcl8.5.8/unix/../libtommath -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tcl\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -Dinline= -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -D_XOPEN_SOURCE_EXTENDED=1 -D_XOPEN_SOURCE=1 -DTCL_SHLIB_EXT=\".sl\" -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1 -DTCL_TOMMATH=1 -DMP_PREC=4 -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 -DWORDS_BIGENDIAN=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1 -DHAVE_WAITPID=1 -DHAVE_SYS_MODEM_H=1 -DUSE_TERMIOS=1 -DNO_FD_SET=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -Dsocklen_t=int -DNO_UNION_WAIT=1 -D__CHAR_UNSIGNED__=1 -DHAVE_PUTENV_THAT_COPIES=1 -DHAVE_LANGINFO=1 -DNO_ISNAN=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_UNLOAD_DLLS=1 /home/adam/tcl8.5.8/unix/../generic/regcomp.c
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The +z option is available only with the C/ANSI C product; ignored.
(Bundled) cc: "/usr/include/sys/types.h", line 473: error 1000: Unexpected symbol: "int".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 453: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 495: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 495: error 1506: Parameters allowed in function definition only.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 569: error 1000: Unexpected symbol: "Tcl_RegExpIndices".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 573: error 1761: __synchronous keyword not supported on HP-PA systems.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 647: error 1000: Unexpected symbol: "*".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 647: error 1506: Parameters allowed in function definition only.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 648: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 648: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 650: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 650: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 651: error 1000: Unexpected symbol: "data".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 651: error 1506: Parameters allowed in function definition only.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 652: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 652: error 1506: Parameters allowed in function definition only.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 653: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 653: warning 5: "const" will become a keyword.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 653: error 1000: Unexpected symbol: "const".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 653: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 655: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 655: error 1000: Unexpected symbol: "Tcl_CmdProc".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 655: warning 5: "const" will become a keyword.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 655: error 1000: Unexpected symbol: "ClientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 655: error 1000: Unexpected symbol: "const".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 655: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 658: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 658: warning 5: "const" will become a keyword.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 658: error 1000: Unexpected symbol: "const".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 658: error 1000: Unexpected symbol: "Tcl_Command".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 658: warning 5: "const" will become a keyword.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 658: error 1000: Unexpected symbol: "*".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 658: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 661: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 662: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 664: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 664: warning 5: "const" will become a keyword.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 664: error 1000: Unexpected symbol: "char".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 664: error 1000: Unexpected symbol: "Tcl_EncodingState".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 664: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 668: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 668: error 1506: Parameters allowed in function definition only.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 669: error 1000: Unexpected symbol: "*".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 669: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 670: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 670: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 672: error 1000: Unexpected symbol: "*".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 672: error 1000: Unexpected symbol: ")".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 674: error 1616: Unable to open intrinsic file "/usr/local/lib/sysintr".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 674: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 674: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 676: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 676: error 1506: Parameters allowed in function definition only.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 677: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 677: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 678: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 678: error 1506: Parameters allowed in function definition only.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 679: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 680: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 681: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 681: error 1506: Parameters allowed in function definition only.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 682: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 682: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 684: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 684: error 1000: Unexpected symbol: "*".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 684: error 1000: Unexpected symbol: ")".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 686: error 1616: Unable to open intrinsic file "/usr/local/lib/sysintr".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 686: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 686: error 1506: Parameters allowed in function definition only.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 687: error 1000: Unexpected symbol: "clientData".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 687: warning 5: "const" will become a keyword.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 687: error 1000: Unexpected symbol: "*".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 687: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 689: error 1000: Unexpected symbol: "*".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 689: error 1506: Parameters allowed in function definition only.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 690: error 1000: Unexpected symbol: "*".
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 690: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 692: warning 5: "const" will become a keyword.
(Bundled) cc: "/home/adam/tcl8.5.8/unix/../generic/tcl.h", line 692: error 1000: Unexpected symbol: "char".
(Bundled) cc: panic 2017: Cannot recover from earlier errors, terminating.

----------- end ./make ------------
3 REPLIES 3
Steven Schweda
Honored Contributor

Re: Failed to compile tcl

> The platform is [...]

Simpler (and more reliable):

uname -a

> (Bundled) cc: [...]

You're using the bundled C compiler, which is
intended only for building a kernel, not for
general use. To do any real work, you should
buy the real compiler from HP or install GCC.
Torsten.
Acclaimed Contributor

Re: Failed to compile tcl

Why not using this depot?

http://hpux.connect.org.uk/hppd/hpux/Tcl/tcltk-8.5.8/

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Tim Nelson
Honored Contributor

Re: Failed to compile tcl

I agree with Steven, you either need ANSI/C package ($$) or GCC. The bundled compiler has only enough guts to compile a kernel.

Compiling these on HPUX is not for the faint of heart.

I also agree with Torsten, use the ported depot and dont forget all the runtime dependencies.

"expat fontconfig freetype gettext libXft libXrender libiconv zlib "