From owner-bug-octave at bevo dot che dot wisc dot edu Sat Dec 21 22:34:14 1996 Subject: Re: 2.0 compilation problem From: dave massie To: Francesco Potorti` cc: Octave bugs list Date: Sat, 21 Dec 1996 23:51:07 -0500 (EST) just a note. i had similar problems, plus the compile kept failing. i sent a note to this group and was advised i probably had an incorrect version of a library or a library installed in the wrong place. it turned out that was exactly correct. i took the advise as an opportunity to do the ground-up upgrade to v2.0 of linux. after reformatting the disk and doing a complete re-install octave compiled perfectly -- no warnings, no problems AT ALL! i wanted to mention my experience. it wont apply to all, but it did wonders for me. thanks!!! dave massie On Wed, 18 Dec 1996, Francesco Potorti` wrote: > Date: Wed, 18 Dec 96 14:42 MET > From: Francesco Potorti` > To: Octave bugs list > Subject: 2.0 compilation problem > > Hi, > I just installed gcc 2.7.2 under my home directory, because my > sysadmin is not very responsive. I try to compile octave 2.0 under > Alpha, but after the compilation goes on flawlessly for a while, I get > file not found errors. Indeed, g++ does not look in the include dirs > it has set up under my home directory. That's why I have added this > to the gcc specs file: > > -isystem /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include > -isystem /usr/users/pot/alpha-dec-osf3.0/include > -isystem /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++ > -isystem /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std > -isystem /usr/include/g++ -isystem /usr/include/g++/std > > This makes the compilation proceed futher, but then it stops with an > error which I don't know how to handle. I am stuck, because I suspect > a gcc installation problem. Can you confirm this? Here is the error, > obtained with a make all in liboctave: > > sable$ make all > c++ -c -I. -I.. -I../liboctave -I../src -I../glob -I../libcruft/misc -DHAVE_CONFIG_H -fno-implicit-templates -g -O2 -Wall CollocWt.cc > In file included from /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/bastring.h:35, > from /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/string.h:6, > from /usr/include/g++/string:5, > from mach-info.h:26, > from data-conv.h:28, > from dMatrix.h:35, > from CollocWt.h:32, > from CollocWt.cc:33: > /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/stddef.h:15: parse error before `::' > /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/straits.h: In function `static char * string_char_traits::move(char *, const char *, long unsigned int)': > In file included from /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/bastring.h:36, > from /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/string.h:6, > from /usr/include/g++/string:5, > from mach-info.h:26, > from data-conv.h:28, > from dMatrix.h:35, > from CollocWt.h:32, > from CollocWt.cc:33: > /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/straits.h:129: warning: implicit declaration of function `int memmove(...)' > /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/straits.h: In function `static char * string_char_traits::set(char *, const char &, long unsigned int)': > /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/straits.h:131: warning: implicit declaration of function `int memset(...)' > /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/sinst.h: At top level: > In file included from /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/bastring.h:571, > from /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/string.h:6, > from /usr/include/g++/string:5, > from mach-info.h:26, > from data-conv.h:28, > from dMatrix.h:35, > from CollocWt.h:32, > from CollocWt.cc:33: > /usr/users/pot/lib/gcc-lib/alpha-dec-osf3.0/2.7.2/include/g++/std/sinst.h:53: parse error before `/' > make: *** [CollocWt.o] Error 1 > > > The strange thing is that there is no `::' in stddef.h. Here is the > file: > > /* The -*- C++ -*- standard definitions header.*/ > /* This file is part of the GNU ANSI C++ Library.*/ > > #ifndef __STDDEF__ > #define __STDDEF__ > > #ifdef __GNUG__ > #pragma interface "std/stddef.h" > #endif > > #include <_G_config.h> > #include > > extern "C++" { > const size_t NPOS = (size_t)(-1); > typedef void fvoid_t(); > > #ifndef _WINT_T > #define _WINT_T > typedef _G_wint_t wint_t; > #endif > > } /* extern "C++"*/ > > #endif > > >