How to install newlisp on Debian - cannot compile.

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
hh1000
Posts: 2
Joined: Tue Mar 09, 2004 7:37 am
Location: Canada

How to install newlisp on Debian - cannot compile.

Post by hh1000 »

First off, I am very impressed with what has been done with newlisp. What a nice piece of software. I am so looking forward to using this language for a number of projects.

Minor problem though ...

I would like to create some webapps for my Debian box, unfortunately I get these errors when I try to compile and install newlisp_7500.

# make linux
make -f makefile_linux
make[1]: Entering directory `/root/newlisp/newlisp_7500'
gcc -Wall -pedantic -c -O2 -g -DNANOSLEEP -DREADLINE -DOPSYS=1 newlisp.c
newlisp.c:28: readline/readline.h: No such file or directory
newlisp.c:29: readline/history.h: No such file or directory
make[1]: *** [newlisp.o] Error 1
make[1]: Leaving directory `/root/newlisp/newlisp_7500'
make: *** [linux] Error 2

If I edit makefile_linux and use the CFLAGS that do don't "-DREADLINE", ie the third option, I run into this:

make -f makefile_linux
make[1]: Entering directory `/root/newlisp/newlisp_7500'
gcc -Wall -pedantic -Wno-uninitialized -O2 -c -g -DNANOSLEEP newlisp.c
gcc -Wall -pedantic -Wno-uninitialized -O2 -c -g -DNANOSLEEP nl-symbol.c
gcc -Wall -pedantic -Wno-uninitialized -O2 -c -g -DNANOSLEEP nl-math.c
gcc -Wall -pedantic -Wno-uninitialized -O2 -c -g -DNANOSLEEP nl-list.c
gcc -Wall -pedantic -Wno-uninitialized -O2 -c -g -DNANOSLEEP nl-liststr.c
gcc -Wall -pedantic -Wno-uninitialized -O2 -c -g -DNANOSLEEP nl-string.c
gcc -Wall -pedantic -Wno-uninitialized -O2 -c -g -DNANOSLEEP nl-filesys.c
nl-filesys.c: In function `p_systemInfo':
nl-filesys.c:754: `OPSYS' undeclared (first use in this function)
nl-filesys.c:754: (Each undeclared identifier is reported only once
nl-filesys.c:754: for each function it appears in.)
make[1]: *** [nl-filesys.o] Error 1
make[1]: Leaving directory `/root/newlisp/newlisp_7500'
make: *** [linux] Error 2

Any help or suggestions would be greatly appreciated.

Thanks,
Henry Hansen.

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

Hello Henry,

Welcome and enjoy, as we all do :-)

But first you need to get past this 'issue' you encounter..

What version of Debian do you run?

Norman.
-- (define? (Cornflakes))

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Welcome Henry,

in tne makefile: makefile_linux take out -DREADLINE

CFLAGS = -Wall -pedantic -c -O2 -g -DNANOSLEEP -DOPSYS=1

but leave in the OPSYS definition. The readline library is not strictly required but gives you comand line editing.

In the make line to the followong shange to take out the -lreadline

$(CC) $(OBJS) -g -lm -ldl -o newlisp

Regarding the OPSYS problem: make sure -DOPSYS is in your CFLAGS, just like shown above in this post. It was forgotten in the third of the outcommented lines in makefile_linux.

You also may switch to the latest version in the development directory, which is stable, but you compile problems have nothing to do with it.

Lutz

hh1000
Posts: 2
Joined: Tue Mar 09, 2004 7:37 am
Location: Canada

Post by hh1000 »

With the CFLAG changes i was able to get a clean compile and install.

Thank you for your quick and helpful answer.

Take Care,

Henry Hansen.

P.S. /etc/debian_version is 3.0 in text mode on a vintage P166 with 64MB. The computer is unstoppable.

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Glad you made it!

If you work with newLISP interactively you might want to look for that readline library. It is a standard GNU library and probably somewhere on your Debian install disks. You will be able to recall you last line/history and do pretty much all the commandline editing things you can do in your normal Unix shell.

Lutz

Locked