scsh 0.6.7 make fail on opensuse 11.3 for x86_64

PILCH Hartmut <[email protected]> Thu, 9 Dec 2010 18:22:50 +0100
Newsgroups gmane.lisp.scheme.scsh
Message-ID <[email protected]>
This mail of May is the last one I received from the scsh-users list:

> Hey everyone, I've made a list of some of the things that need to be
> done for new scsh, to get it to a useful state. Any advice, comments,
> code, or other form of help you can offer related to them would be
> appreciated.

Meanwhile my scsh RPM package that I am re-compiling for every OpenSuse
version, this time 11.3 with, for the first time, the x86_64 architecture
instead of i586, is breaking:

    + cd scsh-0.6.7
    + sh ./configure --prefix=/usr
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for gcc... gcc
    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... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    defining signal constants
    checking for library containing strerror... none required
    checking for broken Linux that needs -static with -g... no
    checking for a BSD-compatible install... /usr/bin/install -c
    checking for ranlib... ranlib
    checking for an ANSI C-conforming const... yes
    checking whether byte ordering is bigendian... no
    checking for ELF... no
    checking for main in -lm... yes
    checking for main in -ldl... yes
    checking for main in -lmld... no
    checking for main in -lnsl... yes
    checking for main in -lgen... no
    checking for main in -lsocket... no
    checking for getpwnam in -lsun... no
    checking for crypt in -lc... no
    checking for crypt in -lcrypt... yes
    checking for main in -lelf... no
    checking for RISC/OS POSIX library lossage
    checking for an ANSI C-conforming const... (cached) yes
    checking return type of signal handlers... void
    checking how to run the C preprocessor... gcc -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 libgen.h usability... yes
    checking libgen.h presence... yes
    checking for libgen.h... yes
    checking sys/timeb.h usability... yes
    checking sys/timeb.h presence... yes
    checking for sys/timeb.h... yes
    checking posix/time.h usability... no
    checking posix/time.h presence... no
    checking for posix/time.h... no
    checking sys/select.h usability... yes
    checking sys/select.h presence... yes
    checking for sys/select.h... yes
    checking nlist.h usability... no
    checking nlist.h presence... no
    checking for nlist.h... no
    checking sys/un.h usability... yes
    checking sys/un.h presence... yes
    checking for sys/un.h... yes
    checking crypt.h usability... yes
    checking crypt.h presence... yes
    checking for crypt.h... yes
    checking for gettimeofday... yes
    checking for ftime... yes
    checking for nlist... no
    checking for select... yes
    checking for setitimer... yes
    checking for sigaction... yes
    checking for vasprintf... yes
    checking for socklen_t... yes
    checking for dlopen... yes
    checking for socket... yes
    checking for chroot... yes
    checking for strerror... yes
    checking for seteuid... yes
    checking for setegid... yes
    checking for struct nlist.n_name... no
    checking __NEXT__... no
    checking underscore before symbols... no
    checking link with -rdynamic... yes
    checking whether struct tm is in sys/time.h or time.h... time.h
    checking for struct tm.tm_zone... yes
    checking for struct tm.tm_gmtoff... no
    checking for getpt... yes
    checking for _getpty... no
    checking for grantpt... yes
    checking for unlockpt... yes
    checking for ptsname... yes
    checking for killpg... yes
    checking for tcgetpgrp... yes
    checking for openpty... no
    checking for openpty in -lutil... yes
    checking libutil.h usability... no
    checking libutil.h presence... no
    checking for libutil.h... no
    checking util.h usability... no
    checking util.h presence... no
    checking for util.h... no
    checking pty.h usability... yes
    checking pty.h presence... yes
    checking for pty.h... yes
    checking stropts.h usability... yes
    checking stropts.h presence... yes
    checking for stropts.h... yes
    checking for isastream... yes
    checking for const sys_errlist... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating scsh/endian.scm
    config.status: creating scsh-config
    config.status: creating c/sysdep.h
    config.status: executing scsh-config+x commands
    + make
    gcc -c -O2 -o c/main.o \
		    -DDEFAULT_IMAGE_NAME=\"/usr/lib/scsh/scsh.image\" \
		     -DHAVE_CONFIG_H ./c/main.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/process_args.o scsh/process_args.c
    gcc -c -O2 -o c/init.o \
		    -DDEFAULT_IMAGE_NAME=\"/usr/lib/scsh/scsh.image\" \
		     -DHAVE_CONFIG_H ./c/init.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o c/scheme48vm.o c/scheme48vm.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o c/scheme48heap.o c/scheme48heap.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o c/extension.o c/extension.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o c/external.o c/external.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o cig/libcig.o cig/libcig.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o cig/libcig1.o cig/libcig1.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/cstuff.o scsh/cstuff.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/dirstuff1.o scsh/dirstuff1.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/fdports1.o scsh/fdports1.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/flock1.o scsh/flock1.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/machine/time_dep1.o scsh/machine/time_dep1.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/signals1.o scsh/signals1.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/machine/libansi.o scsh/machine/libansi.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/network1.o scsh/network1.c
    scsh/network1.c: In function 'scheme_getsockopt':
    scsh/network1.c:418:4: warning: passing argument 5 of 'getsockopt' from incompatible pointer type
    /usr/include/sys/socket.h:190:12: note: expected 'socklen_t * __restrict__' but argument is of type 'size_t *'
    scsh/network1.c: In function 'scheme_getsockopt_linger':
    scsh/network1.c:435:4: warning: passing argument 5 of 'getsockopt' from incompatible pointer type
    /usr/include/sys/socket.h:190:12: note: expected 'socklen_t * __restrict__' but argument is of type 'size_t *'
    scsh/network1.c: In function 'scheme_getsockopt_timeout':
    scsh/network1.c:453:4: warning: passing argument 5 of 'getsockopt' from incompatible pointer type
    /usr/include/sys/socket.h:190:12: note: expected 'socklen_t * __restrict__' but argument is of type 'size_t *'
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/putenv.o scsh/putenv.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/rx/regexp1.o scsh/rx/regexp1.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/sleep1.o scsh/sleep1.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/syscalls1.o scsh/syscalls1.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/syslog1.o scsh/syslog1.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/time1.o scsh/time1.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/tty1.o scsh/tty1.c
    scsh/tty1.c: In function 'allocate_slave_name':
    scsh/tty1.c:497:14: warning: assignment makes pointer from integer without a cast
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/userinfo1.o scsh/userinfo1.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/sighandlers1.o scsh/sighandlers1.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/libscsh.o scsh/libscsh.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/md5.o scsh/md5.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o scsh/proc2.o scsh/proc2.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o c/srfi/srfi-27.o c/srfi/srfi-27.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o c/unix/misc.o c/unix/misc.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o c/unix/io.o c/unix/io.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o c/unix/fd-io.o c/unix/fd-io.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o c/unix/event.o c/unix/event.c
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o c/unix/socket.o c/unix/socket.c
    c/unix/socket.c: In function 's48_get_host_name':
    c/unix/socket.c:393:20: warning: incompatible implicit declaration of built-in function 'realloc'
    c/unix/socket.c:396:7: warning: incompatible implicit declaration of built-in function 'free'
    c/unix/socket.c:410:5: warning: incompatible implicit declaration of built-in function 'free'
    c/unix/socket.c:415:3: warning: incompatible implicit declaration of built-in function 'free'
    gcc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -o c/unix/dynamo.o c/unix/dynamo.c
    c/unix/dynamo.c: In function 'dynamic_load':
    c/unix/dynamo.c:167:45: warning: incompatible implicit declaration of built-in function 'strlen'
    c/unix/dynamo.c:175:4: warning: incompatible implicit declaration of built-in function 'strcpy'
    rm -f /tmp/s48_external_$$.c &&					\
	    ./build/build-external-modules /tmp/s48_external_$$.c		\
		    s48_init_additional_inits s48_init_socket s48_init_external_lookup s48_init_syslog s48_init_posix_regexp s48_init_userinfo s48_init_sighandlers s48_init_syscalls s48_init_network s48_init_flock s48_init_dirstuff s48_init_time s48_init_tty s48_init_cig s48_init_libscsh s48_init_md5 s48_init_srfi_27 s48_init_cig &&					\
	    gcc -rdynamic -O2 -o scshvm c/main.o scsh/process_args.o c/init.o c/scheme48vm.o c/scheme48heap.o c/extension.o c/external.o  cig/libcig.o cig/libcig1.o scsh/cstuff.o scsh/dirstuff1.o scsh/fdports1.o scsh/flock1.o scsh/machine/time_dep1.o scsh/signals1.o scsh/machine/libansi.o scsh/network1.o scsh/putenv.o scsh/rx/regexp1.o scsh/sleep1.o scsh/syscalls1.o scsh/syslog1.o scsh/time1.o scsh/tty1.o scsh/userinfo1.o scsh/sighandlers1.o scsh/libscsh.o scsh/md5.o scsh/proc2.o c/srfi/srfi-27.o c/unix/misc.o c/unix/io.o c/unix/fd-io.o c/unix/event.o		\
		    /tmp/s48_external_$$.c					\
		    c/unix/socket.o c/unix/dynamo.o 			\
		     -lcrypt -lnsl -ldl -lm -lc -lutil &&						\
	    rm -f /tmp/s48_external_$$.c
    ./build/build-usual-image . "./scheme" 'scsh.image' './scshvm' \
		    './build/initial.image'
    ./build/build-usual-image: line 34: 28447 Segmentation fault      ./$vm -o ./$vm -i $initial batch  <<EOF
    ,load $srcdir/scheme/env/init-defpackage.scm
    ((*structure-ref filenames 'set-translation!)
     "=scheme48/" "$srcdir/scheme/")
    ,load =scheme48/more-interfaces.scm =scheme48/sort/interfaces.scm
    ,load =scheme48/link-packages.scm
    ,load =scheme48/more-packages.scm
    (ensure-loaded command-processor)
    (ensure-loaded usual-commands)
    ,go ((*structure-ref command 'command-processor)
	 (structure-package usual-commands)
	 (list "batch"))
    (ensure-loaded usual-features)
    ,structure more-structures more-structures-interface
    ,in debuginfo (read-debug-info "$srcdir/build/initial.debug")
    ,keep maps source files
    ,translate =scheme48/ $lib/
    ,build ((*structure-ref package-commands-internal
			    'new-command-processor)
	    "(made by $USER on $date)"
	    usual-commands
	    built-in-structures more-structures) $image
    EOF

    make: *** [scsh.image] Error 139
    error: Bad exit status from /var/tmp/rpm-tmp.XG6kKH (%build)


    RPM build errors:
	Bad exit status from /var/tmp/rpm-tmp.XG6kKH (%build)
    1

-- 
Hartmut Pilch				http://a2e.de/phm