bugGNU Octave - Bugs: bug #45644, Build system distributes .cc files...


bug #45644: Build system distributes .cc files in include/octave directory

Submitted by:  Rik <rik5>
Submitted on:  Tue 28 Jul 2015 05:13:17 PM UTC  
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 12 Aug 2016 10:58:40 PM UTC, comment #5:

Re-visiting this bug. The install process now installs many fewer .cc files. The list is

Still, the question remains why any get installed at all since I was able to compile files with mkoctfile that presumably used at least the header files.

Rik <rik5>
Project Administrator
Wed 29 Jul 2015 06:02:13 PM UTC, comment #4:

I don't know that the exact criteria is because I don't know when these files would be used. The definition of OCTAVE_API might be one, but I notice that even things like Array.h don't use OCTAVE_API and I'm pretty sure that needs to be exported.

I tried grep'ing for template as another criteria. graphics-props.cc does not have any templates or #defines and therefore looks like it doesn't need export.

Rik <rik5>
Project Administrator
Tue 28 Jul 2015 11:46:47 PM UTC, comment #3:

Btw none of these files are new, I have the same set of cc files in my 3.8.2 include directory.

But I agree with Rik it would be good to clean up what we're installing in include to try to make sure nothing extraneous is in there, but still supports whatever is considered the public API.

As a first order guess, should it be safe to delete any files that don't use the OCTAVE_API declaration?

Mike Miller <mtmiller>
Project Administrator
Tue 28 Jul 2015 07:44:27 PM UTC, comment #2:

@jwe: I thought there might be a use case for these files, but the examples I tried in examples/code all compiled with mkoctfile despite having deleted these *.cc files.

What is the use case for these files? Is it someone writing C++ and linking in liboctave? Is there example code that I could have tried that would have exercised this?

It seems to me that we might need some examples for using liboctave directly in C++.

Rik <rik5>
Project Administrator
Tue 28 Jul 2015 06:35:09 PM UTC, comment #1:

I think all but one of these files are templates or macros that must be available in order to instantiate new templates of different types.

The only one that looks suspicious to me is kpse.cc. For that, I checked in the following changeset:


John W. Eaton <jwe>
Project Administrator
Tue 28 Jul 2015 05:13:17 PM UTC, original submission:

The build system distributes necessary files for using mkoctfile in the include/octave directory. For the most part these are header files for the libraries liboctave and liboctinterp.

However, the distribution also includes a number of C++ .cc files. These seem unneccessary and probably an indication that the Autotools build rules are not correct.

The list of files is:

Rik <rik5>
Project Administrator


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by rik5 (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.4