Martynas Venckus [2007-01-31, 06:19:28]:
> Resubmitting the third time.
> 
> http://www.altroot.org/scsh-0.6.7.patch
> 
> The version we have is heavily outdated (last updated 4 years, 6 months
> ago), so it would be nice to have more recent and stable version in 4.1.
> 
> MAINTAINER has not responded in 2 months, the email in the Makefile
> bounces; i found he is using another one ([EMAIL PROTECTED]), but he
> just ignores the patch.
> 
> I also removed 108-lines-long patch-Makefile_in and did it in two lines in
> the post-install.
> 
> Tested on i386.

doesn't build on amd64, just like the in tree version.
trace and build log below.

$ gdb -c scshvm.core scshvm
...
#0  Hlookup2142 (table_124X=1331625099, string_125X=1331629259, key_126X=1768)
    at c/scheme48vm.c:725
725         arg0K1 = (h_129X + (((*((unsigned char *) ((((char *) (-3 + 
string_125X))) + i_128X))))));
(gdb) bt
#0  Hlookup2142 (table_124X=1331625099, string_125X=1331629259, key_126X=1768)
    at c/scheme48vm.c:725
#1  0x0000000000405b7d in s48_get_imported_binding (
    name_273X=0x525220 "s48-the-record-type") at c/scheme48vm.c:1573
#2  0x0000000000414858 in s48_initialize_external () at c/external.c:84
#3  0x0000000000423159 in s48_initialize_external_modules ()
    at /tmp/s48_external_14014.c:23
#4  0x00000000004042a6 in internal_s48_main (heap_size=5000000, 
    stack_size=2500, object_file=0x6e8 <Address 0x6e8 out of bounds>, 
    image_name=0x7f7ffffc161c "./build/initial.image", argc=2, 
    argv=0x7f7ffffc1128) at c/init.c:101
#5  0x0000000000403ed6 in main (argc=39347000, argv=0x4f5f0ccb) at c/main.c:73


+++ Sat Feb  3 15:30:45 CET 2007
===>  Checking files for scsh-0.6.7
`/a/distfiles/scsh-0.6.7.tar.gz' is up to date.
>> Checksum OK for scsh-0.6.7.tar.gz. (sha1)
===>  Extracting for scsh-0.6.7
===>  Patching for scsh-0.6.7
  I can't seem to find a patch in there anywhere.
===>   Ignoring patchfile patch-Makefile_in.orig
Running autoconf-2.59 in /a/obj/ports/scsh-0.6.7/scsh-0.6.7
Running autoheader-2.59 in /a/obj/ports/scsh-0.6.7/scsh-0.6.7
Touching configure.in
Touching ./Makefile.in
Touching configure
===>  Configuring for scsh-0.6.7
configure: loading site script /usr/ports/infrastructure/db/config.site
checking build system type... x86_64-unknown-openbsd4.0
checking host system type... x86_64-unknown-openbsd4.0
checking for gcc... 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... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ANSI C... none needed
defining signal constants
checking for library containing strerror... none required
checking for a BSD-compatible install... /usr/bin/install -c -o root -g bin
checking for ranlib... (cached) ranlib
checking for an ANSI C-conforming const... (cached) yes
checking whether byte ordering is bigendian... no
checking for ELF... no
checking for main in -lm... (cached) yes
checking for main in -ldl... no
checking for main in -lmld... no
checking for main in -lnsl... no
checking for main in -lgen... no
checking for main in -lsocket... no
checking for getpwnam in -lsun... no
checking for crypt in -lc... 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... (cached) void
checking how to run the C preprocessor... cc -E
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for libgen.h... (cached) 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 for sys/select.h... (cached) yes
checking for nlist.h... (cached) yes
checking for sys/un.h... (cached) yes
checking crypt.h usability... no
checking crypt.h presence... no
checking for crypt.h... no
checking for gettimeofday... (cached) yes
checking for ftime... no
checking for nlist... (cached) yes
checking for select... (cached) yes
checking for setitimer... (cached) yes
checking for sigaction... (cached) yes
checking for vasprintf... (cached) yes
checking for socklen_t... int
checking for dlopen... yes
checking for socket... (cached) yes
checking for chroot... (cached) yes
checking for strerror... (cached) yes
checking for seteuid... (cached) yes
checking for setegid... (cached) yes
checking for struct nlist.n_name... yes
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... (cached) time.h
checking for struct tm.tm_zone... (cached) yes
checking for struct tm.tm_gmtoff... yes
checking for getpt... (cached) no
checking for _getpty... (cached) no
checking for grantpt... (cached) no
checking for unlockpt... (cached) no
checking for ptsname... (cached) no
checking for killpg... (cached) yes
checking for tcgetpgrp... (cached) yes
checking for openpty... (cached) no
checking for openpty in -lutil... (cached) yes
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking for util.h... (cached) yes
checking for pty.h... (cached) no
checking sys/pty.h usability... no
checking sys/pty.h presence... no
checking for sys/pty.h... no
checking stropts.h usability... no
checking stropts.h presence... no
checking for stropts.h... no
checking for isastream... no
checking for const sys_errlist... no
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
===>  Building for scsh-0.6.7
cc -c -O2 -pipe -Wformat -Wbounded -o c/main.o  
-DDEFAULT_IMAGE_NAME=\"/usr/local/lib/scsh/scsh.image\"   -DHAVE_CONFIG_H 
./c/main.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/process_args.o scsh/process_args.c
cc -c -O2 -pipe -Wformat -Wbounded -o c/init.o  
-DDEFAULT_IMAGE_NAME=\"/usr/local/lib/scsh/scsh.image\"   -DHAVE_CONFIG_H 
./c/init.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
c/scheme48vm.o c/scheme48vm.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
c/scheme48heap.o c/scheme48heap.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
c/extension.o c/extension.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
c/external.o c/external.c
c/external.c: In function `s48_enter_char':
c/external.c:952: warning: comparison is always false due to limited range of 
data type
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
cig/libcig.o cig/libcig.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
cig/libcig1.o cig/libcig1.c
cig/libcig1.c: In function `scheme2c_strcpy':
cig/libcig1.c:54: warning: unsigned int format, different type arg (arg 3)
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/cstuff.o scsh/cstuff.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/dirstuff1.o scsh/dirstuff1.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/fdports1.o scsh/fdports1.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/flock1.o scsh/flock1.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/machine/time_dep1.o scsh/machine/time_dep1.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/signals1.o scsh/signals1.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/machine/libansi.o scsh/machine/libansi.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/network1.o scsh/network1.c
scsh/network1.c: In function `scheme_getsockopt':
scsh/network1.c:418: warning: passing arg 5 of `getsockopt' from incompatible 
pointer type
scsh/network1.c: In function `scheme_getsockopt_linger':
scsh/network1.c:435: warning: passing arg 5 of `getsockopt' from incompatible 
pointer type
scsh/network1.c: In function `scheme_getsockopt_timeout':
scsh/network1.c:453: warning: passing arg 5 of `getsockopt' from incompatible 
pointer type
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/putenv.o scsh/putenv.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/rx/regexp1.o scsh/rx/regexp1.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/sleep1.o scsh/sleep1.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/syscalls1.o scsh/syscalls1.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/syslog1.o scsh/syslog1.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/time1.o scsh/time1.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/tty1.o scsh/tty1.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/userinfo1.o scsh/userinfo1.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/sighandlers1.o scsh/sighandlers1.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/libscsh.o scsh/libscsh.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/md5.o scsh/md5.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
scsh/proc2.o scsh/proc2.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
c/srfi/srfi-27.o c/srfi/srfi-27.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
c/unix/misc.o c/unix/misc.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
c/unix/io.o c/unix/io.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
c/unix/fd-io.o c/unix/fd-io.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
c/unix/event.o c/unix/event.c
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
c/unix/socket.o c/unix/socket.c
c/unix/socket.c: In function `s48_get_host_name':
c/unix/socket.c:393: warning: cast to pointer from integer of different size
cc -c -DHAVE_CONFIG_H -I ./c -I./c -I./cig  -O2 -pipe -Wformat -Wbounded -o 
c/unix/dynamo.o c/unix/dynamo.c
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 &&                    
                     cc -rdynamic -O2 -pipe -Wformat -Wbounded -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                   
       -lm  -lutil &&                                                 rm -f 
/tmp/s48_external_$$.c
scsh/time1.o(.text+0x68): In function `make_newenv':
: warning: strcpy() is almost always misused, please use strlcpy()
c/extension.o(.text+0x42a): In function `s48_extended_vm':
: warning: sprintf() is often misused, please use snprintf()
./build/build-usual-image . "./scheme" 'scsh.image' './scshvm'  
'./build/initial.image'
Segmentation fault (core dumped) 
*** Error code 139

Stop in /a/obj/ports/scsh-0.6.7/scsh-0.6.7 (line 318 of Makefile).
*** Error code 1

Stop in /usr/ports/mystuff/shells/scsh (line 2063 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
--- Sat Feb  3 15:31:04 CET 2007

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

Reply via email to