Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Sep 2005 14:50:46 -0400
From:      Barry Tigner <tigner@msu.edu>
To:        elwood@mc5sys.in-berlin.de
Cc:        ports@freebsd.org
Subject:   [Fwd: compiling Yabasic 2.761 on FreeBSD 5.4]
Message-ID:  <1126032646.4992.0.camel@eshop1.pa.msu.edu>

next in thread | raw e-mail | index | archive | help

--=-MmAA6JVTD6yMWu74sx5J
Content-Type: text/plain
Content-Transfer-Encoding: 7bit


-- 
Barry A. Tigner
Electronics Shop Mgr.
Physics and Astronomy dept.
Michigan State University
tigner@msu.edu
517-355-9200 x 2538
room 1223 Biomedical Physical Sciences bldg.

--=-MmAA6JVTD6yMWu74sx5J
Content-Disposition: inline
Content-Description: Forwarded message - compiling Yabasic 2.761 on FreeBSD 5.4
Content-Type: message/rfc822

Subject: compiling Yabasic 2.761 on FreeBSD 5.4
From: Barry Tigner <tigner@msu.edu>
Reply-To: tigner@msu.edu
To: mail@yabasic.de
Content-Type: text/plain
Organization: MSU Physics and Astronomy dept.
Message-Id: <1126030348.90076.14.camel@eshop1.pa.msu.edu>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.1.1 FreeBSD GNOME Team Port 
Date: Tue, 06 Sep 2005 14:12:28 -0400
Content-Transfer-Encoding: 7bit

Dear Mail@yabasic.de,

I have successfully compiled Yabasic 2.761 on FreeBSD 5.4.

I had initial errors in the runme.log file ...

yabasic.h:83:22: X11/Xlib.h: No such file or directory
yabasic.h:84:23: X11/Xutil.h: No such file or directory
yabasic.h:85:27: X11/Intrinsic.h: No such file or directory
yabasic.h:88:27: X11/keysymdef.h: No such file or directory

I created a softlink to X11 in the source directory.

ln -s /usr/X11R6/include/X11     X11

I then ran into this error...

main.c: In function `initialize':
main.c:799: error: too few arguments to function `setpgrp'
*** Error code 1

So I removed the following lines from main.c

#ifdef UNIX
  setpgrp();
#endif

Then I ran into this error...

In file included from bison.c:184:
/usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by
<stdlib.h>"
*** Error code 1

Which required that I replace malloc.h with stdlib.h in several files,

bison.c:#include <malloc.h>   -- replaced <malloc.h> with <stdlib.h>
configure:#  include <malloc.h>  -- replaced <malloc.h> with <stdlib.h>
yabasic.bison:#include <malloc.h>  -- replaced <malloc.h> with
<stdlib.h>

Now everything compiled ok, and I was able to write several programs to
test.
All of my previous programs worked ok, and I modified some to add color
graphics,
which worked flawlessly.

I compiled this as root. Here is the shell output.

------------------------------------------------------------------------
eshop1# ./runme

Running configure ...
Trying to make yabasic ...
Testing yabasic ...

SUCESS, you may now start yabasic from this directory
or install it in system by typing 'make install' (need to be root)

------------------------------------------------------------------------

Thanks ! for the great work on Yabasic 2.761.

I'm not sure why the changes I made worked, but I thought I would
give you the details to hopefully help a little bit.
-- 
Barry A. Tigner
Electronics Shop Mgr.
Physics and Astronomy dept.
Michigan State University
tigner@msu.edu
517-355-9200 x 2538
room 1223 Biomedical Physical Sciences bldg.

--=-MmAA6JVTD6yMWu74sx5J--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1126032646.4992.0.camel>