Path: news.net.uni-c.dk!noatun.mjolner.dk!mail-to-news From: Jan Atle Ramsli Newsgroups: comp.lang.beta Subject: Re: Seg fault on x86 (maybe a newbie question) Date: Fri, 23 Nov 2001 09:15:27 +0100 Organization: Posted to comp.lang.beta by a mailtonews script Lines: 36 Sender: lbr@mjolner.dk Approved: mailtonews@cs.au.dk Message-ID: <9tl0d1$1a6i$1@news.net.uni-c.dk> References: <20011123022101.7508.qmail@noatun.mjolner.dk> NNTP-Posting-Host: bifrost.mjolner.dk Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit X-Trace: news.net.uni-c.dk 1006503137 43218 130.225.4.254 (23 Nov 2001 08:12:17 GMT) X-Complaints-To: usenet@news.net.uni-c.dk NNTP-Posting-Date: Fri, 23 Nov 2001 08:12:17 +0000 (UTC) Mailing-List: contact usergroup-help@mjolner.dk; run by ezmlm X-No-Archive: yes X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.2.19 i686) X-Accept-Language: en X-Original-Message-ID: <3BFE059F.BB6C2BFD@skynet.be> X-Original-Sender: atle@excalibur.skynet.be Xref: news.net.uni-c.dk comp.lang.beta:13056 Stefan Tomlik wrote: > > > stomlik@darmah:~$ beta --static hello.bet > Mjolner BETA Compiler version 5.5 (818) for Linux (Intel > 386/486/586/Pentium) (elf) > Target machine type linux > Building dependency graph for: 'hello' ... > Translating fragments ... > Linking > /usr/lib/libc.a(strtoll.o): In function `__strtoll_internal': > strtoll.o(.text+0x420): undefined reference to `__udivdi3' > strtoll.o(.text+0x434): undefined reference to `__umoddi3' > /usr/lib/libc.a(strtoull.o): In function `__strtoull_internal': > strtoull.o(.text+0x420): undefined reference to `__udivdi3' > strtoull.o(.text+0x434): undefined reference to `__umoddi3' Just testing: You installed with something that works like this (assuming /cdrom) # cd /usr/lib # mkdir beta # for f in /cdrom/Linux/*.ta.gz ; do tar xvfz $f ; done # export BETALIB=`pwd` BETALIB must be set to the top level Beta directory (where you were when you executed the tar command above). 5 minutes ago, I executed the above on a Slackware 8 system, and now I can go to demo/guienv and execute ../../bin/beta HelloWorld.bet and it compiles and runs. I haven't even set PATH. But I did set BETALIB=/usr/lib/beta