lotus



previous page: Lx01) What are the system requirements to run BETA on Linux machines?
  
page up: BETA Programming Language FAQ
  
next page: Lx03) Why does GuiEnv demos segmentation fail?

Lx02) How to make the BETA compiler version 5.0/5.1 work with Linux ELF libraries




Description

This article is from the FAQ, by with numerous contributions by others.

Lx02) How to make the BETA compiler version 5.0/5.1 work with Linux ELF libraries

If you are using a Linux version with support for the ELF libraries, the
Mjolner System (release 3.1) cannot be used immediately. You will have to
introduce the following patch:

1. Make sure that /usr/lib/crt0.o can be found. E.g. do this:

pushd /usr/lib; ln -s /usr/i486-linuxaout/lib/crt0.o; popd

2. Make sure the linker is called with "-m i386linux", either by adding

LINKOPT linux '-m i386linux';

in the top of basiclib/v1.4/private/betaenv_unixbody.bet, or
(preferable) by adding this in your .bashrc (or the corresponding stuff
in your .tcshrc):

export BETALINKOPTIONS='-dc -dp -X -m i386linux';

The BETALINKOPTIONS environment variable sets *all* options to the
linker, that is why you have to set the other stuff in the variable
too.

Disclaimer: This has not been tried with the Motif libraries, but it ought
to work.

Thanks to Erik Ernst <eernst@daimi.aau.dk> and Stephen J Bevan
<bevan@cs.man.ac.uk> for their investigations on this subject.

 

Continue to:















TOP
previous page: Lx01) What are the system requirements to run BETA on Linux machines?
  
page up: BETA Programming Language FAQ
  
next page: Lx03) Why does GuiEnv demos segmentation fail?