From owner-bug-octave at bevo dot che dot wisc dot edu Sun Nov 3 18:20:43 1996 Subject: Problems in octave-1.90 From: Joao Cardoso To: bug-octave at bevo dot che dot wisc dot edu Date: Mon, 4 Nov 96 00:18:06 GMT Hi, I was unable to compile octave-1.90. I am using gcc-2.7.2, glib++- 2.7.1, f2c, gnu ar/as/make/etc on sco-3.2v4.0. 1-I had to export LIBS=-lsocket before starting configure, as some functions can only be found there, such as bcopy, bzero, gethostname, and others. 2-The Makefile in libcruft has a very long string. My _kernel_ only accepts strings up to 5Kbytes, so I have to split it as follows: CR1 = balgen blas dassl eispack fftpack fsqp lapack linpack minpack CR2 = misc npsol odepack qpsol quadpack ranlib slatec-fn villad CRUFT_FSRC1 = $(foreach dir, $(CR1), $(wildcard $(srcdir)/$(dir)/*.f)) CRUFT_FSRC2 = $(foreach dir, $(CR2), $(wildcard $(srcdir)/$(dir)/*.f)) CRUFT_OBJ21 = $(patsubst $(srcdir)/%, %, $(CRUFT_FSRC1)) CRUFT_OBJ22 = $(patsubst $(srcdir)/%, %, $(CRUFT_FSRC2)) CRUFT_OBJ11 = $(patsubst %.f, %.o, $(CRUFT_OBJ21)) CRUFT_OBJ12 = $(patsubst %.f, %.o, $(CRUFT_OBJ22)) ... $(AR) $(ARFLAGS) libcruft.a $(CRUFT_OBJ11) $(AR) $(ARFLAGS) libcruft.a $(CRUFT_OBJ12) $(AR) $(ARFLAGS) libcruft.a $(MISC_OBJ) 3- There was a problem in libcruft/misc with `d1mach.f'; after 'configure' and 'make' somehow d1mach.f disapear?? I had to extract it again from the tar file. - Misterious. 4-Then, in octave-1.90/src, compiler errors: c++ -c -I. -I../src -I.. -I../liboctave -I../src -I../glob - DHAVE_CONFIG_H -fno-implicit-templates -O3 -m486 -pipe mappers.cc mappers.cc: In function `void install_mapper_functions()': mappers.cc:439: no matching function for call to `builtin_mapper_function::builtin_mapper_function (int, {unknown type}, int, {unknown type}, double, double, int, char[6], char[51])' mappers.h:53: candidates are: builtin_mapper_function::builtin_mapper_function(int (*)(int), double (*)(double), double (*)(const complex &), complex (*)(const complex &), double, double, int, basic_string >, const basic_string > &) mappers.h:58: builtin_mapper_function::builtin_mapper_function(const builtin_mapper_function &) mappers.cc:439: in base initialization for class `builtin_mapper_function' mappers.cc:451: no matching function for call to `builtin_mapper_function::builtin_mapper_function (int, {unknown type}, int, {unknown type}, double, double, int, char[6], char[51])' mappers.h:53: candidates are: builtin_mapper_function::builtin_mapper_function(int (*)(int), double (*)(double), double (*)(const complex &), complex (*)(const complex &), double, double, int, basic_string >, const basic_string > &) mappers.h:58: builtin_mapper_function::builtin_mapper_function(const builtin_mapper_function &) mappers.cc:451: in base initialization for class `builtin_mapper_function' mappers.cc:457: no matching function for call to `builtin_mapper_function::builtin_mapper_function (int, {unknown type}, int, {unknown type}, double, double, int, char[6], char[51])' mappers.h:53: candidates are: builtin_mapper_function::builtin_mapper_function(int (*)(int), double (*)(double), double (*)(const complex &), complex (*)(const complex &), double, double, int, basic_string >, const basic_string > &) mappers.h:58: builtin_mapper_function::builtin_mapper_function(const builtin_mapper_function &) mappers.cc:457: in base initialization for class `builtin_mapper_function' 5-then after 'make -i', I got an undefined reference to `S_ISSOCK in liboctave/file-ops.cc. It seems that my system don't make a 'socket' file, so there is no such macro defined. Can these problems, specifically problem 4, be corrected? Looking forward for 2.0, thanks, Joao -- Joao Cardoso, INESC | e-mail: jcardoso at inescn dot pt R. Jose Falcao 110 | tel: + 351 2 2094345 4000 Porto, Portugal | fax: + 351 2 2008487