Re: install failure

From: Erick Gallesio <eg_at_kaolin.unice.fr>
Date: Fri, 08 Jul 1994 14:00:03 +0100

>
> bonjour,

>
> I tried to install STk-2.1 on a sparcstation running
> 4.1.3 with the cc and acc sun compilers. both failed.
> any suggestion ?
 
cc will not be able to compile STk since the Scheme interpreter is written in
ANSI C. I can, eventually, try to unprotoize it, but I'm not sure of the result
since my experience with the GNU unprotoize is rather negative.

>
> # ./configure
> .....
> checking for uid_t in sys/types.h
> creating config.status
> creating Makefile
> **** Configuring Extensions directory
> System support dynamic loading. Creating Makefile
> **** Configuring STklos directory
> System support dynamic loading. Creating Makefile
> cp: Makefile.sun: No such file or directory
>

The error is in the extension directory which is not useful for running STk.
In fact the stk-bin which lives in the Src directory should run without
problem.

Support for dynamic loading is not very good for now and limited to SunOS 4
(and probaly to gcc, I have no other C compiler for this system). Next release
will
probably include SunOS 5, Dec OSF1 and perhaps Linux.
If someone knows a little about this dynamic loading on those systems, please
mail me.

The file "Makefile.sun" which is absent in the distribution (I don't know how
I have lost it) is given at end of this message. It works with gcc and must be
adaptated for other compilers.

                -- Erick

------------------- Extensions/Makefile.sun for gcc --------------------
include ../config.make

#define here how to obtain Position Independant Code (pic) with your compiler
PIC = -fpic

# Define here the extension you want to be defined
EXT = hash.so time.so when.so

CFLAGS= $(PIC) $(STKCFLAGS) -DUSE_TK -I../Tk -I../Tcl -I../Src $(XINCLUDES)

##############################################################################
.SUFFIXES: .so .o .c

.c.so:
        $(CC) -c $(CFLAGS) -o $*.o $<
        ld -assert pure-text -o $*.so $*.o

.o.so:
        ld -assert pure-text -o $*.so $<
##############################################################################
all: $(EXT)

install:
        $(INSTALL) $(EXT) $(libdir)

clean:
        _at_/bin/rm -f *.o *.so core *~
Received on Mon Jul 21 2014 - 18:51:00 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST