Can't compile Octave!

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Can't compile Octave!

Eyal Doron
Hi,
   Well, I finally tried it, and it didn't work. Not understanding
anything in C++, this is what happened:

1) I ran "configure", and then
   make CFLAGS=-O CXXFLAGS=-O LDFALGS=

2) At least two makefiles, created by "configure", had the line
   -include $(MAKEDEPS)
   as their last line. "make" did not like this line at all. I removed
   it and things seemed fine. This happened in liboctave and src.

3) I got several warnings (which I don't understand!)

tilde.c: In function `tilde_find_prefix':
tilde.c:96: warning: type mismatch in implicit declaration for built-in function `strlen'
tilde.c: In function `tilde_expand':
tilde.c:196: warning: type mismatch in implicit declaration for built-in function `strcpy'
tilde.c: In function `tilde_expand_word':
tilde.c:222: warning: cast to pointer from integer of different size
tilde.c:270: warning: cast to pointer from integer of different size

window.c: In function `build_message_buffer':
window.c:1362: warning: cast from pointer to integer of different size
window.c:1375: warning: cast from pointer to integer of different size

make[2]: Entering directory `/us1/pub/kits/octave-1.1.1/readline'
Makefile:70: warning: overriding commands for target `.c.o'
../Makeconf:214: warning: ignoring old commands for target `.c.o'

signals.c: In function `rl_set_sighandler':
signals.c:227: warning: assignment from incompatible pointer type
signals.c:232: warning: return from incompatible pointer type
signals.c: In function `rl_clear_signals':
signals.c:287: warning: passing arg 2 of `signal' from incompatible pointer type
signals.c:291: warning: passing arg 2 of `signal' from incompatible pointer type
signals.c:292: warning: passing arg 2 of `signal' from incompatible pointer type
signals.c:298: warning: passing arg 2 of `signal' from incompatible pointer type

In file included from /usr/include/sys/ttychars.h:82,
                 from /usr/include/sys/ioctl_compat.h:45,
                 from /usr/local/lib/gcc-lib/alpha-dec-osf3.0/2.6.3/include/sys/ioctl.h:286,
                 from /usr/include/sgtty.h:40,
                 from sysdep.cc:68:
/usr/include/sys/ttydefaults.h:73: warning: `CTRL' redefined
../readline/chardefs.h:37: warning: this is the location of the previous definition

In file included from /usr/include/sys/ttychars.h:82,
                 from /usr/include/sys/ioctl_compat.h:45,
                 from /usr/local/lib/gcc-lib/alpha-dec-osf3.0/2.6.3/include/sys/ioctl.h:286,
                 from /usr/include/sgtty.h:40,
                 from sysdep.cc:68:
/usr/include/sys/ttydefaults.h:73: warning: `CTRL' redefined
../readline/chardefs.h:37: warning: this is the location of the previous definition

gcc -c  -I. -I../src -I.. -I../liboctave -I../src -DHAVE_CONFIG_H  -O getopt.c
getopt.c: In function `_getopt_internal':
getopt.c:457: warning: type mismatch in implicit declaration for built-in function `strlen'

(there were some earlier ones about incompatible types, which unfortunately
scrolled off by scrollback buffer)

3) and FINALLY:

c++ -c  -I. -I../src -I.. -I../liboctave -I../src -DHAVE_CONFIG_H  -fno-implicit-templates  -g -O load-save.cc
load-save.cc: In function `int too_large_for_float(const class ComplexMatrix &)':
load-save.cc:872: `class Complex' used where a floating point value was expected
load-save.cc:872: aggregate value used where a float was expected
make[2]: *** [load-save.o] Error 1
make[2]: Leaving directory `/us1/pub/kits/octave-1.1.1/src'
make[1]: *** [src] Error 1
make[1]: Leaving directory `/us1/pub/kits/octave-1.1.1'
make: *** [all] Error 1


So, no luck. How is it done?

Eyal Doron.

P.S. This is on a DEC Alpha running OSF/1 3.0, gcc 2.6.3, GNU make 3.67