Thread View: news.software.readers
3 messages
3 total messages
Started by E.
Thu, 02 May 1996 00:00
slrn problem, sort of.
Author: E.
Date: Thu, 02 May 1996 00:00
Date: Thu, 02 May 1996 00:00
17 lines
1043 bytes
1043 bytes
Well, slrn needs the slang lib, right? So I grab slang at the same
time that I grab slrn 0.8.8, and I go to compile. Well, in the slang
README.unx, it says that in src/mkfiles, there will be a makefile.elf, for
us Linux ELF people. There's not. I tried to just make it anyway, and it
failed. John? Is this an oversight, or did I miss something?
-E
--
"Egad, Brain! It looks just like ME, only FLAT!"
--Pinky
Re: slrn problem, sort of.
Author: John E. Davis
Date: Sat, 04 May 1996 00:00
Date: Sat, 04 May 1996 00:00
99 lines
4139 bytes
4139 bytes
On 2 May 1996 21:30:02 -0700, E. <fnargle@primenet.com>
wrote:
: Well, slrn needs the slang lib, right? So I grab slang at the same
: time that I grab slrn 0.8.8, and I go to compile. Well, in the slang
: README.unx, it says that in src/mkfiles, there will be a makefile.elf, for
: us Linux ELF people. There's not. I tried to just make it anyway, and it
: failed. John? Is this an oversight, or did I miss something?
The makefiles in src/mkfiles are unsupported. I have included makefile.elf
below. Also look at the makefile patch on "ftp://space.mit.edu/pub/davis/".
The problem with this patch is that it fails on some non-GNU makes. As a
result, I cannot include it in the main slang distribution as it is.
# S-Lang Makefile for Linux ELF -*- sh_mode -*-
#----------------------------------------------------------------------------
# Linux ELF shared library
# 1: `make clean` to remove old .o files
# 2: `make linux-so`
#
# In the next `M' and `m' refer to the major and minor versions, respectively
# 1: cp libslang.so.M.m /usr/local/lib
# 2: cd /usr/local/lib
# 3: ln -sf libslang.so.M.m libslang.so.M
# 4: ln -sf libslang.so.M libslang.so
#
# logon as root user and, if needed, add /usr/local/lib to /etc/ld.so.conf
# `lddconf -v` to make sure that the library is included
#
# you can now (once only) relink your binaries, future slang upgrades should
# be transparent
# My thanks to Mark Olesen <olesen@weber.me.QueensU.CA>.
#----------------------------------------------------------------------------
CC = gcc -O2 -fno-strength-reduce -Wall -fPIC -fstrict-prototypes
MAJOR_VER = 0
MINOR_VER = 99.30
LIBSO_MAJOR = libslang.so.$(MAJOR_VER)
LIBSO = $(LIBSO_MAJOR).$(MINOR_VER)
CFLAGS1 = -Dunix -DFLOAT_TYPE # -DNO_STDLIB_H
CFLAGS2 = $(CFLAGS1) -DHAS_MEMSET -DHAS_MEMCPY #-DHAS_MEMCMP #-DHAS_MEMCHR
ARCMD = ar cr # Most Unix
LIBSLANG = libslang.a # Most Unix
#-----------------------------------------------------------------------------
# Nothing below here should require changing
#-----------------------------------------------------------------------------
RANLIB = ranlib
CFLAGS = $(CLFAGS1) $(CFLAGS2) $(USETERMCAP)
OBJS = slang.o slparse.o slmath.o slfile.o slstd.o slarray.o slregexp.o \
slunix.o slmatrix.o slutty.o slkeymap.o slrline.o slerr.o sltoken.o\
slmemcpy.o slmemcmp.o slmemset.o slmemchr.o slxstrng.o slgetkey.o\
sldisply.o slsmg.o slsearch.o slcmd.o slmalloc.o slclass.o slmisc.o\
sltermin.o slprepr.o sltypes.o
EXEC = calc
$(LIBSLANG): $(OBJS)
rm -f $(LIBSLANG)
$(ARCMD) $(LIBSLANG) $(OBJS)
@echo
@echo Ignore any complaint about a missing ranlib from the next command.
@echo
$(RANLIB_PREFIX) $(RANLIB) $(LIBSLANG)
linux-so: $(LIBSO)
$(LIBSO): $(OBJS)
gcc -shared -Wl,-soname,$(LIBSO_MAJOR) -o $(LIBSO) $(OBJS)
calc: calc.o $(LIBSLANG)
$(CC) $(CFLAGS) calc.o -L. $(LIBSLANG) -lm -o $(EXEC)
worm.o: worm.c
$(CC) -c $(CFLAGS) -DSLANG worm.c
worm: worm.o $(LIBSLANG)
$(CC) $(CFLAGS) worm.o -o worm -L. -lslang $(LIBTERMCAP)
untic.o: untic.c sltermin.c
$(CC) -c $(CFLAGS) -DSLANG untic.c
untic: untic.o slerr.o sltoken.o
$(CC) untic.o slerr.o sltoken.o -o untic
clean:
/bin/rm -f *.o *.a *~ worm calc untic out out.* typescript
--
John E. Davis Center for Space Research/AXAF Science Center
617-258-8119 MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis
Re: slrn problem, sort of.
Author: Felix von Leitner
Date: Sat, 04 May 1996 00:00
Date: Sat, 04 May 1996 00:00
28 lines
1483 bytes
1483 bytes
-----BEGIN PGP SIGNED MESSAGE----- On 2 May 1996 21:30:02 -0700, E. <fnargle@primenet.com> wrote: > Well, slrn needs the slang lib, right? So I grab slang at the same > time that I grab slrn 0.8.8, and I go to compile. Well, in the slang > README.unx, it says that in src/mkfiles, there will be a makefile.elf, for > us Linux ELF people. There's not. I tried to just make it anyway, and it > failed. John? Is this an oversight, or did I miss something? You missed the "configure" script. Just run it and it will create a Makefile for you. Felix -----BEGIN PGP SIGNATURE----- Version: 2.6.2i iQCVAwUBMYuaxB/Da1Yoy+f1AQESFgP+LU+CCj1gwpjD6f26NQVCLl6LMwjy14wJ RrKz0/Fws5FzAyaGrq1Ph22iJi57Mw09MaHMGgG+cxTdS7YDK+Z8NItOElJSKveq OUuU3NVrje9I77wovrj0OPwsiMmMgcMEs/3JrfoAG66OciCYAkrRaOWh6hDMidFP KawWIO9CSE4= =GGcN -----END PGP SIGNATURE-----
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads