高橋征義です。

とある方から、sparc版の古いSunOS(4.1.3)でRuby 1.6.6がコンパイル
できない、という連絡がありました。

サポートしているSunOSのバージョンはいくつまで、という明示的な
制限ってあるんでしょうか。

いただいたmakeのログとconfigureのログを以下に添付します。



/usr/bin/cc -g -I. -I. -I/home/usr/kshibata/include -c file.c "file.c", line 273: auto variable member has size 0 "file.c", line 273: no automatic aggregate initialization "file.c", line 273: no automatic aggregate initialization "file.c", line 274: warning: illegal pointer combination "file.c", line 274: no automatic aggregate initialization "file.c", line 275: warning: illegal pointer combination "file.c", line 275: no automatic aggregate initialization "file.c", line 276: warning: illegal pointer combination "file.c", line 276: no automatic aggregate initialization "file.c", line 277: warning: illegal pointer combination "file.c", line 277: no automatic aggregate initialization "file.c", line 278: warning: illegal pointer combination "file.c", line 278: no automatic aggregate initialization "file.c", line 279: warning: illegal pointer combination "file.c", line 279: no automatic aggregate initialization "file.c", line 280: warning: illegal pointer combination "file.c", line 280: no automatic aggregate initialization "file.c", line 281: warning: illegal pointer combination "file.c", line 281: no automatic aggregate initialization "file.c", line 282: warning: illegal pointer combination "file.c", line 282: no automatic aggregate initialization "file.c", line 283: warning: illegal pointer combination "file.c", line 283: no automatic aggregate initialization "file.c", line 284: warning: illegal pointer combination "file.c", line 284: no automatic aggregate initialization "file.c", line 285: warning: illegal pointer combination "file.c", line 285: no automatic aggregate initialization "file.c", line 286: warning: illegal pointer combination "file.c", line 286: no automatic aggregate initialization "file.c", line 293: warning: sizeof returns value less than or equal to zero *** Error code 1 make: Fatal error: Command failed for target `file.o'
loading cache ./config.cache checking host system type... sparc-sun-sunos4.1.3_JL checking target system type... sparc-sun-sunos4.1.3_JL checking build system type... sparc-sun-sunos4.1.3_JL checking for gcc... (cached) /usr/bin/cc checking whether the C compiler (/usr/bin/cc ) works... yes checking whether the C compiler (/usr/bin/cc ) is a cross-compiler... no checking whether we are using GNU C... (cached) no checking whether /usr/bin/cc accepts -g... (cached) yes checking how to run the C preprocessor... (cached) /usr/bin/cc -E checking for bison... no checking for byacc... no checking for ranlib... (cached) ranlib checking for ar... (cached) ar checking for ar... (cached) ar checking whether ln -s works... (cached) yes checking whether make sets ${MAKE}... (cached) yes checking for AIX... no checking for minix/config.h... (cached) no checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking for executable suffix... (cached) no checking for object suffix... (cached) o checking size of int... (cached) 4 checking size of short... (cached) 2 checking size of long... (cached) 4 checking size of long long... (cached) 0 checking size of __int64... (cached) 0 checking size of void*... (cached) 4 checking size of float... (cached) 4 checking size of double... (cached) 8 checking for prototypes... (cached) no checking token paste string... (cached) knr checking for variable length prototypes and stdarg.h... (cached) no checking for gcc attribute noreturn... (cached) no checking for crypt in -lcrypt... (cached) no checking for dlopen in -ldl... (cached) yes checking for shl_load in -ldld... (cached) no checking for dirent.h that defines DIR... (cached) yes checking for opendir in -ldir... (cached) no checking for ANSI C header files... (cached) no checking for sys/wait.h that is POSIX.1 compatible... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for limits.h... (cached) yes checking for sys/file.h... (cached) yes checking for sys/ioctl.h... (cached) yes checking for fcntl.h... (cached) yes checking for sys/fcntl.h... (cached) yes checking for sys/select.h... (cached) no checking for sys/time.h... (cached) yes checking for sys/times.h... (cached) yes checking for sys/param.h... (cached) yes checking for syscall.h... (cached) yes checking for pwd.h... (cached) yes checking for a.out.h... (cached) yes checking for utime.h... (cached) yes checking for memory.h... (cached) yes checking for direct.h... (cached) no checking for sys/resource.h... (cached) yes checking for uid_t in sys/types.h... (cached) yes checking for size_t... (cached) yes checking for st_blksize in struct stat... (cached) yes checking for st_blocks in struct stat... (cached) yes checking for st_rdev in struct stat... (cached) yes checking type of array argument to getgroups... (cached) int checking return type of signal handlers... (cached) void checking for working alloca.h... (cached) yes checking for alloca... (cached) yes checking for pid_t... (cached) yes checking for vfork.h... (cached) yes checking for working vfork... (cached) yes checking for 8-bit clean memcmp... (cached) no checking for dup2... (cached) yes checking for memmove... (cached) no checking for mkdir... (cached) yes checking for strcasecmp... (cached) yes checking for strncasecmp... (cached) yes checking for strerror... (cached) no checking for strftime... (cached) yes checking for strchr... (cached) yes checking for strstr... (cached) yes checking for strtoul... (cached) no checking for crypt... (cached) yes checking for flock... (cached) yes checking for vsnprintf... (cached) no checking for isinf... (cached) yes checking for isnan... (cached) yes checking for finite... (cached) yes checking for fmod... (cached) no checking for killpg... (cached) yes checking for drand48... (cached) yes checking for random... (cached) yes checking for wait4... (cached) yes checking for waitpid... (cached) yes checking for syscall... (cached) yes checking for getcwd... (cached) yes checking for chroot... (cached) yes checking for truncate... (cached) yes checking for chsize... (cached) no checking for times... (cached) yes checking for utimes... (cached) yes checking for fcntl... (cached) yes checking for lockf... (cached) yes checking for lstat... (cached) yes checking for symlink... (cached) yes checking for readlink... (cached) yes checking for setitimer... (cached) yes checking for setruid... (cached) yes checking for seteuid... (cached) yes checking for setreuid... (cached) yes checking for setrgid... (cached) yes checking for setegid... (cached) yes checking for setregid... (cached) yes checking for pause... (cached) yes checking for getpgrp... (cached) yes checking for setpgrp... (cached) yes checking for getpgid... (cached) no checking for setpgid... (cached) yes checking for getgroups... (cached) yes checking for getpriority... (cached) yes checking for getrlimit... (cached) yes checking for dlopen... (cached) yes checking for sigprocmask... (cached) yes checking for sigaction... (cached) yes checking for _setjmp... (cached) yes checking for setsid... (cached) yes checking for telldir... (cached) yes checking for seekdir... (cached) yes checking for fchmod... (cached) yes checking whether struct tm is in sys/time.h or time.h... (cached) time.h checking for tm_zone in struct tm... (cached) yes checking for external int daylight... (cached) no checking whether getpgrp takes no argument... (cached) no checking whether setpgrp takes no argument... (cached) no checking for working strtod... (cached) yes checking whether byte ordering is bigendian... (cached) yes checking for working const... (cached) no checking whether char is unsigned... (cached) no checking for inline... (cached) no checking whether right shift preserve sign bit... (cached) yes checking count field in FILE structures... (cached) _cnt checking whether ELF binaries are produced... (cached) no checking whether OS depend dynamic link works... yes creating config.h creating ./config.status creating Makefile creating ext/extmk.rb
高橋征義 (TAKAHASHI Masayoshi) Email:maki / inac.co.jp