bug-gnu-fiasco
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pspp & redhat 7.3


From: Giampiero Salvi
Subject: pspp & redhat 7.3
Date: Tue, 7 Oct 2003 09:35:28 +0200 (CEST)

Hi all,
I didn't find a way to browse the mailing list archives
(if there are any). So I don't know if similar info has been
posted already.

This is my experience in installing pspp on redhat 7.3.

First I downloaded the package from http://packages.qa.debian.org/p/pspp.html

These are the commands to unpack and apply the last patch:
tar xvfz pspp_0.3.0.orig.tar.gz
gunzip pspp_0.3.0-8.diff.gz
cd pspp_0.3.0.orig
patch -p1 -i ../pspp_0.3.0-8.diff

then I tried ./configure (I also used the --prefix specification
but I don't include that for clarity here). When I run make I got a
problem that has already been reported, but to which I found no
answer on the net:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I../lib -I../intl
-D_GNU_SOURCE=1  -g -Wall -W -Wno-uninitialized -Wwrite-strings
-Wstrict-prototypes -Wpointer-arith -c glob.c
In file included from /usr/include/readline/history.h:34,
                 from glob.c:47:
/usr/include/readline/rltypedefs.h:65: parse error before `*'
make[2]: *** [glob.o] Error 1
make[2]: Leaving directory
`/space2/downloads/statistics/pspp/pspp-0.3.0.orig/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/space2/downloads/statistics/pspp/pspp-0.3.0.orig'
make: *** [all-recursive-am] Error 2

The reason for this seems to be that in rltypedefs.h at line 65,
there is a reference to the type FILE that has not been defined
before. This might be a bug in the readline package (I suspect),
in any case I solved the problem by including this line in the
beginning of src/glob.c (that includes history.h/rltypedefs.h)

#include <stdio.h>

To me it seems a fairly safe modification, but if there is any
trouble with it, please let me know.

Now again:
./configure
make
make install
Everything worked fine.

The next problem has also been reported, but with a slightly
unprecise solution. I don't know if this problem happens only
when using a non-standard installation path, but I suspect it
would happen in any case: running pspp I get

installation error: Cannot find output initialization file.  Use `-vv' to view
        search path.
Segmentation fault

(to note here that running with the -vv option will give exactly
the same error message).
This happens because pspp does not find the file 'devices' that
is located in $prefix/etc/pspp. The solution given in another
message was to explicitly specify that file with the -B option.
A better way (in my opinion) is to define the environmental
variable that tells pspp where to look for it (this was suggested
in the other post as well, but the wrong env. var. was considered).
In tcsh I did this:

setenv STAT_OUTPUT_INIT_PATH $prefix/etc/pspp

Where $prefix is the installation path (same as from the --prefix
option in configure)

Now everything works fine (at least the few things I tried).

hope this helps someone,
Giampiero




reply via email to

[Prev in Thread] Current Thread [Next in Thread]