From owner-bug-octave at bevo dot che dot wisc dot edu Wed Dec 18 15:34:41 1996 Subject: 2.0 compilation problem From: "John W. Eaton" To: Francesco Potorti` Cc: Octave bugs list Date: Wed, 18 Dec 1996 15:34:01 -0600 On 18-Dec-1996, Francesco Potorti` wrote: : 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 I don't understand why this should be necessary if you installed gcc properly. If you run ./configure --prefix=/usr/users/pot ; make bootstrap ; make install it should just work. : 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: : : ... : : The strange thing is that there is no `::' in stddef.h. Did you run Octave's configure script before or after fixing the include path for gcc? It should have found that your system provides a declaration for NPOS, but I would guess that it did not, and added #define NPOS string::npos to config.h. The reason I didn't define this to be (size_t)(-1) is that I understand that the draft standard has changed and because it appears that libg++ 2.8.x will have string::npos but not NPOS. The quick solution would probably be to delete the definition of NPOS in Octave's config.h file. However, this shouldn't really be necessary. If running Octave's configure with gcc properly installed still results in NPOS being defined in Octave's config.h file, can you try to find out why? Thanks, jwe