From bug-octave-request at bevo dot che dot wisc dot edu Thu May 10 11:30:17 2001 Subject: Problems compiling under Mac OS X From: "John W. Eaton" To: Marius Schamschula Cc: bug-octave at bevo dot che dot wisc dot edu Date: Thu, 10 May 2001 11:29:36 -0500 On 10-May-2001, Marius Schamschula wrote: | I'm trying to compile octave from the current cvs sources under Mac OS X | (10.0.0.3) using cc (gcc version 2.95.2) and f2c. | | Problem 1: | The libcruft Makefile | | For whatever reason I have | | CRUFT_DIRS = amos blas blas-xtra dassl at FFT_DIR@ lapack \ | lapack-xtra linpack minpack misc odepack ordered-qz quadpack \ | ranlib slatec-err slatec-fn villad | | at FFT_DIR@ does not get replaced by fftpack This should be fixed in the current CVS. Try updating, then running autogen.sh and configure again, then if it still fails, send me mail. | Problem 2: | My current show-stopper | | c++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc -I../glob | -I../glob -DHAVE_CONFIG_H -fno-implicit-templates -g -O2 -Wall cmd- | edit.cc -o cmd-edit.o | cmd-edit.cc: In method `class string | command_editor::do_decode_prompt_string(const string &)': | cmd-edit.cc:826: `NPOS' undeclared (first use this function) | cmd-edit.cc:826: (Each undeclared identifier is reported only once | cmd-edit.cc:826: for each function it appears in.) | cmd-edit.cc:885: implicit declaration of function `int geteuid(...)' | make[2]: *** [cmd-edit.o] Error 1 | make[1]: *** [liboctave] Error 2 | make: *** [all] Error 2 | | Any ideas? Configure should have found that the standard string class defines npos as a member object, so it should have defined NPOS as std::string::npos. Can you please debug why this doesn't happen on your system? Check config.log and look for messages related to npos. jwe ------------------------------------------------------------- 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 -------------------------------------------------------------