help-octave
[Top][All Lists]
Advanced

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

Installationunder Mandrake 8.0/gcc 2.96


From: Stephan Wehner
Subject: Installationunder Mandrake 8.0/gcc 2.96
Date: Fri, 22 Jun 2001 10:49:26 -0400
User-agent: Mutt/1.2.5i

I downloaded the source for octave 2.0.16 and cannot complete
the build under Mandrake 8.0 with gcc 2.96. I don't know which of these
two is behind the trouble.

Running ./configure seems successful.

End of output after running ./configure:
        ============================================================
        Octave is now configured for i686-pc-linux-gnu
        
          Source directory:     .
          Installation prefix:  /usr/local
          C compiler:           gcc  -mieee-fp -g -O2 -Wall
          C++ compiler:         c++  -mieee-fp -fno-rtti -fno-exceptions 
-fno-implicit-templates -g -O2 -Wall
          Fortran compiler:     g77 -O
          Fortran libraries:     -lg2c -lm 
-L/usr/lib/gcc-lib/i586-mandrake-linux/2.96 
-L/usr/lib/gcc-lib/i586-mandrake-linux/2.96/../../../../i586-mandrake-linux/lib 
-L/usr/lib/gcc-lib/i586-mandrake-linux/2.96/../../.. -lm
          Use GNU readline:     true
          Default pager:        less
          gnuplot:              gnuplot
        
          Do internal array bounds checking:       false
          Build shared libraries:                  false
          Minimal kernel option:                   false
          Dynamic Linking (dlopen/dlsym):          true
          Dynamic Linking (shl_load/shl_findsym):  false
        
        configure: warning: I didn't find runtest -- install DejaGNU if you 
want to run `make check'
        ============================================================

Running make fails with errors as follows:

First few errors:
        cmd-hist.cc: In method `command_history::command_history (const string 
        &, int)':
        ../readline/history.h:161: too many arguments to function `int 
        read_history ()'
        cmd-hist.cc:69: at this point in file
        cmd-hist.cc: In method `void command_history::add (const string &)':
        ../readline/history.h:71: too many arguments to function `void 
        add_history ()'
        cmd-hist.cc:132: at this point in file
        cmd-hist.cc: In method `void command_history::remove (int)':
... and so on.

Now I went into ../readline/history.h and changed the prototypes
of the functions mentioned in the errors. I don't really know what I
am doing, but I try it out and make gets a little further:

First set of warnings:
        readline.c: In function `readline_internal_teardown':
        readline.c:405: warning: passing arg 3 of `replace_history_entry' from 
incompatible pointer type
        readline.c: In function `maybe_replace_line':
        readline.c:1847: warning: passing arg 3 of `replace_history_entry' from 
incompatible pointer type

I changed the prototype as follows:
        extern HIST_ENTRY *replace_history_entry (int, char*,char*);

Then error:
        file-ops.cc: In method `string file_stat::mode_as_string () const':
        file-ops.cc:125: too many arguments to function `void mode_string ()'
        file-ops.cc:132: at this point in file

So in file_ops.cc  I change
        extern "C" void mode_string ();
to
        extern "C" void mode_string (mode_t, char*);

And make gets further, and fails at making the kpathsea parts:
        pathsearch.cc: In method `string_vector dir_path::all_directories ()':
        ../kpathsea/pathsearch.h:47: too many arguments to function 
        `str_llist_elt **kpse_element_dirs ()'
        pathsearch.cc:76: at this point in file
        pathsearch.cc: In method `string dir_path::find_first (const string 
        &)':
        ../kpathsea/pathsearch.h:67: too many arguments to function `char 
        *kpse_path_search ()'
        pathsearch.cc:112: at this point in file

So I look at the code and add
        #define HAVE_PROTOTYPES SW_yes
to kpathsea/c-proto.h

make now fails with
        prog-args.cc: In method `int prog_args::getopt ()':
        getopt.h:104: too many arguments to function `int getopt ()'
        prog-args.cc:38: at this point in file

And I add
        #define __GNU_LIBRARY__ SW_yes
to liboctave/getopt.h
This is of course a desperate attempt at getting further.

make produces a lot of warnings of the kind
        making octave.d from octave.cc
        making data.df from data.cc
        data.cc:1107:3: warning: pasting ""__"" and ""I"" does not give a valid 
preprocessing token
        data.cc:1107:3: warning: pasting ""I"" and ""__"" does not give a valid 
preprocessing token

And the error at which I give up:
        data.cc:1155:3: warning: pasting ""realmin"" and ""__"" does not give a 
valid preprocessing token
        In file included from ov.h:43,
                         from variables.h:38,
                         from defun-int.h:26,
                         from defun.h:30,
                         from data.cc:43:
        pt-exp.h:138: parse error before `not'
        pt-exp.h:143: missing ';' before right brace
        pt-exp.h:145: parse error before `int'
        pt-exp.h:148: parse error before `*'

make clean ; make gets stuck at the same point.

Any advice?

--Stephan



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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