From bug-octave-request at bevo dot che dot wisc dot edu Tue Dec 21 07:48:46 1999 Subject: Re: Octave-2.1.23 build with Cygnus gcc 2.95.2 From: William D Kirby To: "John W. Eaton" CC: christopher dot kennedy at gecm dot com, bug-octave@bevo.che.wisc.edu Date: Tue, 21 Dec 1999 07:52:23 -0500 I modified builtins.cc as suggested, and was able to complete the compilation process without errors. "John W. Eaton" wrote: > On 20-Dec-1999, christopher dot kennedy at gecm dot com wrote: > > | I am also building Octave with "Cygnus gcc 2.95.2" and have had the > | same "quad" problem in "builtins.cc" with all the recent "Bleeding > | Edge" Octave Versions. > | > | I have avoided the problem by expanding the first > | > | "XDEFUN_DLD_INTERNAL" in:- > | > | " > | static void > | install_quad_fcns (void) > | { > | XDEFUN_DLD_INTERNAL ( quad , args , nargout , 0 , > | "-*- texinfo -*-\n at deftypefn {Loadable Function} ...... > | > | XDEFUN_DLD_INTERNAL ( quad_options , args , , 0 , > | "-*- texinfo -*-\n at deftypefn {Loadable Function} ...... > | } > | " > | > | by hand after "builtins.cc" has been generated. > | > | The second > | > | "XDEFUN_DLD_INTERNAL ( quad_options , ...." > | > | has never given any problem and is translated successfully > | > | As to why this problem only arises with "quad" and none of the others, > | well ...... > > Ah. I think the problem is that some systems define quad to be a type > name (i.e., something like `#define quad quad_t'). This problem > showed up once before, so there is already code like this: > > #if defined (quad) > #undef quad > #endif > > in quad.cc. Things broke when some restructuring was done. So, I > think the solution is to have mkbuiltins add a similar #undef to the > generated builtins.cc file. > > Can you try adding those lines to the builtins.cc file by hand and see > if it solves the problem? They should probably go just after > variables.h is included. > > Thanks, > > jwe > > ----------------------------------------------------------------------- > 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 > ----------------------------------------------------------------------- ----------------------------------------------------------------------- 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 -----------------------------------------------------------------------