You are not logged in.

#1 2008-07-12 14:58:55

ptcek
Member
From: Prague
Registered: 2008-07-11
Posts: 7

[SOLVED] Light Spreadsheet and SC,Oleo problems

Hi everyone,

I'm new to Arch Linux and i'm searching for a light spreadsheet for console. The only one in repos is Gnumeric, but it doesn't fit my needs. I hit

sc spreadsheat and
Oleo .

But Oleo stucks while running ./configure when "checking for working mktime..." and sc comes with this error while compiling:

vi.c:43:1: warning: "bool" redefined
In file included from /usr/include/curses.h:168,
                 from vi.c:17:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.1/include/stdbool.h:36:1: warning: this is the location of the previous definition
vi.c: In function 'doshell':
vi.c:1410: warning: incompatible implicit declaration of built-in function 'execl'
gcc -DSYSV3 -O2 -pipe   -c -o vmtbl.o vmtbl.c
gcc -DSYSV3 -O2 -pipe   -c -o xmalloc.o xmalloc.c
xmalloc.c:9: error: conflicting types for 'malloc'
xmalloc.c:10: warning: conflicting types for built-in function 'realloc'
make: *** [xmalloc.o] Error 1

Anyone know, what should be done about it? I don't understand that compiling error and in case of Oleo i think it's some kind of bug.

Last edited by ptcek (2008-07-15 13:04:17)

Offline

#2 2008-07-12 17:13:53

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: [SOLVED] Light Spreadsheet and SC,Oleo problems

The following patch fixed the sc compiling error for me:

diff -ru sc-7.15.orig/xmalloc.c sc-7.15/xmalloc.c                         
--- sc-7.15.orig/xmalloc.c      2008-05-13 21:43:44.954564164 +0200
+++ sc-7.15/xmalloc.c   2008-05-13 21:43:57.067800337 +0200
@@ -6,8 +6,8 @@
 #include <curses.h>
 #include "sc.h"

-extern char    *malloc();
-extern char    *realloc();
+extern void    *malloc();
+extern void    *realloc();
 extern void    free();
 void           fatal();

Offline

#3 2008-07-13 09:53:46

ptcek
Member
From: Prague
Registered: 2008-07-11
Posts: 7

Re: [SOLVED] Light Spreadsheet and SC,Oleo problems

I applied the patch and now I am able to create binary and even run it. But I can't enter strings or numbers into the cells. For example with

=1 the input line looks like i> let A0 = 1

it should enter number 1 into the cell... instead i get an error

syntax error: let A0<= = 1

for input line which looks like

i> leftstring A0 = "money"

i get

syntax error: leftstring A0<= = "money"

I'm aware of that one equality sign which seems to me to be extra. Is it right? If it's right, how to correct it?

There's piece of code given when compiling

vi.c:43:1: warning: "bool" redefined
In file included from /usr/include/curses.h:168,
                 from vi.c:17:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.1/include/stdbool.h:36:1: warning: this is the location of the previous definition
vi.c: In function 'doshell':
vi.c:1410: warning: incompatible implicit declaration of built-in function 'execl'
gcc -DSYSV3 -O2 -pipe   -c -o vmtbl.o vmtbl.c
gcc -DSYSV3 -O2 -pipe   -c -o xmalloc.o xmalloc.c
gcc  abbrev.o cmds.o color.o crypt.o format.o frame.o gram.o help.o interp.o lex.o pipe.o range.o sc.o screen.o sort.o version.o vi.o vmtbl.o xmalloc.o -lm -lncurses -o sc
rm -f pvmtbl.c
ln vmtbl.c pvmtbl.c
gcc -DSYSV3 -O2 -pipe -c -DPSC pvmtbl.c
rm -f pxmalloc.c
ln xmalloc.c pxmalloc.c
gcc -DSYSV3 -O2 -pipe -c -DPSC pxmalloc.c
gcc -DSYSV3 -O2 -pipe  -o psc psc.c pvmtbl.o pxmalloc.o 
rm -f qhelp.c
ln help.c qhelp.c
gcc -DSYSV3 -O2 -pipe  -DQREF -DTROFF -DSCNAME=\"SC\" -o scqref qhelp.c
qhelp.c: In function 'main':
qhelp.c:645: warning: incompatible implicit declaration of built-in function 'exit'

Offline

#4 2008-07-14 15:33:35

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: [SOLVED] Light Spreadsheet and SC,Oleo problems

I remember having similar problems, I don't know how I fixed them, though. Here's the package that works for me:
http://nooms.de/files/sc-7.15-1-i686.pkg.tar.gz

Offline

#5 2008-07-15 12:44:18

ptcek
Member
From: Prague
Registered: 2008-07-11
Posts: 7

Re: [SOLVED] Light Spreadsheet and SC,Oleo problems

Thanks!

that pkg works fine and on my x86_64 i got working sc-7.15 with your patch, version 7.16 seems to contain more things to fix.

Offline

#6 2010-02-15 20:47:57

jt512
Member
Registered: 2009-02-19
Posts: 256

Re: [SOLVED] Light Spreadsheet and SC,Oleo problems

I have adopted the SC package in the AUR.  Using a new patch from Ubuntu, version 7.16-3 builds and works properly.  It is much more featureful than version 7.15.

Jay

Offline

Board footer

Powered by FluxBB