From bug-octave-request at bevo dot che dot wisc dot edu Thu Jan 20 03:22:27 2000 Subject: Compiling octave 2.0.14 under Solaris 2.6 From: "Schoepp, Henry" To: "'bug-octave at bevo dot che dot wisc dot edu'" Date: Thu, 20 Jan 2000 03:22:35 -0600 (CST) [I'm posting this because it may be of some use to collect these quick fixes in one place, though a better solution is probably to use 2.0.15 now that it is released, since I think it includes fixes for all these problems (except the one that is really due to a bug in Make) --jwe] I am aware that you have probably corrected many of these problems. I decided I should post my resolutions to these issues. I acknowledge that these are poor solutions. They simply make it work for Solaris 2.6 compilation. The "correct" thing to do is at least enclose things in #ifdef, but I am lazy. :) I am willing to bet that some of these things have better solutions. 1) lo-mapper.cc requires "#include " and you have a patch for it. 2) sysdep.cc requires these lines: #include #include 3) In sysdep.cc, the tputs function requires a change to this: tputs (term_clrpag, 1, (int (*)(char))_rl_output_character_function); 4) In lex.l I modified the line that has octave_kw_lookup to Perfect_Hash::octave_kw_lookup. 5) I modified the line in src/Makefile so that the line with gperf in it uses -L C++ $< instead of $< 6) The final step was to manually compile libcruft with g77. The easiest way of doing this is to go to each subdirectory under libcruft and doing g77 -c *.f; ar rc ../libcruft.a *.o [This problem can also be fixed by avoiding GNU Make 3.77; I think 3.76.1 works, and also maybe newer versions. --jwe] Issues #1, #2, #3, and #6 seem to be known. By putting all these issues in one place, I hope to assist others trying to compile octave 2.0.14 under Solaris 2.6. It is my hope that some of these changes are examined more carefully and placed in an intelligent manner into the next release. Note, my methods are not considered intelligent. Henry C. Schoepp, Jr. Northrop Grumman MS #L04-224 2000 W NASA Blvd Melbourne, FL 32902 (407)726-7848 ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------