Subject: gnumeric-0.75 corrupt file?
To: None <current-users@netbsd.org, tech-pkg@netbsd.org>
From: Olaf Seibert <rhialto@polderland.nl>
List: tech-pkg
Date: 07/06/2002 17:43:26
I am building gnome, which includes gnumeric-0.75, but that fails with a
compilation error. Looking at the source reveals what seems to me like a
corrupted file.=20
Workaround: Add this to the Makefile:
CONFIGURE_ARGS+=3D --without-psiconv
I remember building gnumeric-1.* on the same machine before, and I have
the distfile to prove it. Was the gnome package changed to use the older
gnumeric?
These are the messages:
cc -DHAVE_CONFIG_H -I. -I. -I../.. -DGNOMELOCALEDIR=3D\"/usr/X11R6/share/lo=
cale\" -I../../src -I../../src -I/usr/X11R6/include/gnome-1.0 -DNEED_GNOMES=
UPPORT_H -I/usr/X11R6/lib/gnome-libs/include -I/usr/X11R6/include/gtk-1.2 -=
I/usr/pkg/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include -I/usr/X11R6/in=
clude -I/usr/pkg/include/gnome-1.0 -I/usr/pkg/include/freetype2 -I/usr/X11R=
6/include/gdk-pixbuf-1.0 -I/usr/pkg/include/ -I/usr/pkg/include/gnome-xml -=
I/usr/pkg/include -I/usr/X11R6/include/libglade-1.0 -I/usr/pkg/include/orbi=
t-1.0 -I/usr/pkg/include/libglade-1.0 -I/usr/tmp/math/gnumeric0/work/.build=
link/include -I/usr/pkg/include -I/usr/tmp/math/gnumeric0/work/.buildlink/i=
nclude/libglade-1.0 -I/usr/tmp/math/gnumeric0/work/.buildlink/include/gnome=
-1.0 -I/usr/pkg/share/x11-links/include -I/usr/X11R6/include/gtk-1.2 -I/usr=
/pkg/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include -I/usr/X11R6/include=
-I/usr/tmp/math/gnumeric0/work/.buildlink/include -O2 -I/usr/pkg/share/x11=
-links/include -Wall -Wunused -Wsign-promo -Wsign-compare -Wpointer-arith -=
Wnested-externs -Wchar-subscripts -c psiconv-read.c -fPIC -DPIC -o .libs/p=
siconv-read.o
psiconv-read.c: In function `expr_new_from_formula':
psiconv-read.c:423: parse error before `return'
psiconv-read.c:424: warning: control reaches end of non-void function
psiconv-read.c: In function `add_cell':
psiconv-read.c:439: warning: passing arg 1 of `value_new_from_psi_cell' fro=
m incompatible pointer type
psiconv-read.c:439: too few arguments to function `value_new_from_psi_cell'
psiconv-read.c:442: `expr' undeclared (first use in this function)
psiconv-read.c:442: (Each undeclared identifier is reported only once
psiconv-read.c:442: for each function it appears in.)
psiconv-read.c:448: `value' undeclared (first use in this function)
psiconv-read.c:433: warning: unused variable `psi_formula'
psiconv-read.c:432: warning: unused variable `tree'
gmake[3]: *** [psiconv-read.lo] Error 1
gmake[3]: Leaving directory `/usr/tmp/math/gnumeric0/work/gnumeric-0.75/plu=
gins/psiconv'
This is the relevant file, plugins/psiconv/psiconv-read.c.
Line 423 looks bad to me but I cannot see something immediately wrong with =
439.
415 static ExprTree *
416 expr_new_from_formula (const psiconv_sheet_cell psi_cell,
417 const psiconv_formula_list psi_formulas)
418 {
419 psiconv_formula formula;
420
421 formula =3D psiconv_get_formula (psi_formulas, psi_cell->re=
f_formul
a);
422
423 return (formula !=3D NULL) ? return parse_subexpr (formula=
) : NULL
;
424 }
425
426 static void
427 add_cell (Sheet *sheet, const psiconv_sheet_cell psi_cell,
428 const psiconv_formula_list psi_formulas, const MStyle * d=
efault
_style)
429 {
430 Cell *cell;
431 Value *val;
432 ExprTree *tree;
433 psiconv_formula psi_formula;
434
435 cell =3D sheet_cell_fetch (sheet, psi_cell->column, psi_cel=
l->row);
436 if (!cell)
437 return;
438
439 val =3D value_new_from_psi_cell (psi_cell);
440
441 if (psi_cell->calculated)
442 expr =3D expr_new_from_formula (psi_cell, psi_formu=
las);
=20
-Olaf.
--=20
___ Olaf 'Rhialto' Seibert - rhialto@ -- Woe betide the one who feels
\X/ polderland.nl -- remorse without sin - Tom Poes, "Het boze oog", 4444.