scheme / scsh

A Unix shell embedded in scheme
Other
386 stars 36 forks source link

Installation problem on NetBSD and OpenBSD #30

Open wsgac opened 9 years ago

wsgac commented 9 years ago

I encountered a problem while trying to install scsh on NetBSD and OpenBSD. On OpenBSD, after a successful ./configure and make i did make install and received the following error message:

./build/build-image.sh .  "/usr/local/lib/scsh-0.7/" '/usr/local/lib/scsh-0.7/scsh.image' 
'/usr/local/bin/scheme48 -h 0' './rx/interfaces.scm  ./rx/packages.scm  ./scheme/scsh-interfaces.scm  
./scheme/scsh-package.scm  ./scheme/lib/ccp-pack.scm  ./scheme/lib/char-package.scm'

error: File not found [shared_object_dlopen]
       #{byte-vector 47 117 115 114 47 108 ---}
*** Error 1 in /usr/local/src/scsh (Makefile:175 'install-scsh-image')

I then tried copying all .so files from ./c in scsh to $PREFIX/lib/scsh-0.7 and ran make install again. The installation apparently succeeded, but scsh failed to launch.

Analogous procedure on NetBSD resulted in a completely successful installation and a running scsh. I don't have sufficient knowledge of make and autoconf to suggest what part might be failing, but I guess there must be some quirk that prevents the copying under NetBSD.

On OpenBSD it seems more serious. I tried running the scsh image manually by issuing scheme48 -i scsh.image but got the following:

Maximum heap size 4000000 is too small, using 5433344 cells instead.
VM exception `wrong-type-argument' with no handler in place
opcode is: stored-object-ref
stack template id's:  <-  <-  <- 6625 <- 3309 <-

I also tried increasing the heap size - scheme48 -i scsh.image -h 10000000 with the following output:

VM exception `wrong-type-argument' with no handler in place
opcode is: stored-object-ref
stack template id's:  <-  <-  <- 6625 <- 3309 <- 

If you need any more info, please let me know. Hope you'll be able to find some reasonable solution, as scsh is a really great piece of software and OpenBSD ports system only provides version 0.6.7.

Scheme48 - version: 1.9.2 Scsh - version: 0.7 - head commit: a51bd4a5a10f4aa63392825d69fdcb7c8620fca8 NetBSD - version: 6.1_STABLE (amd64) OpenBSD - version: 5.5 GENERIC.MP (amd64)

roderyc commented 9 years ago

@wsgac thanks for the report! I'll fire up a vm and investigate this when I have the time.

wsgac commented 9 years ago

Thanks @roderyc . Good luck!

karahobny commented 6 years ago

wrangling with the same problem on openbsd-x86_64. I reckon there hasn't been any development on this frontier, or if some kind soul would know a way around.