bugGNU Octave - Bugs: bug #41635, netcdf package fails to compile...

 
 

bug #41635: netcdf package fails to compile with netcdf 4.3.1.1

Submitter:  Orion Poplawski <opoplawski>
Submitted:  Tue 18 Feb 2014 11:53:31 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * other Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 10 Jun 2015 02:04:16 PM UTC, comment #2: 

Sorry for my late response. Unfortunately, I do not get notifications from the bug tracker.

I found this bug independently, and I fixed it here:

https://sourceforge.net/p/octave/code/12661/

I prefer not to use "make constants" part of the build process, as it is a quite dump script which can fail if the header file gets too complex.

Thank you for reporting it. The bug can be closed.

Alexander Barth <abarth>
Wed 19 Feb 2014 12:32:58 AM UTC, comment #1: 

Adding the maintainer and author of the netcdf package to this bug.

Carnë Draug <carandraug>
Group Member
Tue 18 Feb 2014 11:53:31 PM UTC, original submission:  


mkoctfile __netcdf__.cc -lnetcdf
In file included from __netcdf__.cc:32:0:
netcdf_constants.h: In function 'void init()':
netcdf_constants.h:154:53: error: 'NC_INDEPENDENT' was not declared in this scope
   netcdf_constants["NC_INDEPENDENT"] = octave_value(NC_INDEPENDENT);
                                                     ^
netcdf_constants.h:155:52: error: 'NC_COLLECTIVE' was not declared in this scope
   netcdf_constants["NC_COLLECTIVE"] = octave_value(NC_COLLECTIVE);
                                                    ^
make: *** [__netcdf__.oct] Error 1


This is because NC_COLLECTIVE and NC_INDEPENDENT are only relevant for the parallel/MPI interface to netcdf and have been moved to netcdf_par.h.

You can work around this by running "make constants" first.  Perhaps this should be part of the standard build process?

Orion Poplawski <opoplawski>

 

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

Attach Files:
   
   
Comment:
   

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 (Updated the item)
  • -email is unavailable- added by abarth (Posted a comment)
  • -email is unavailable- added by carandraug (Alexander Barth, maintainer and author of the netcdf package)
  • -email is unavailable- added by opoplawski (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-06-10 mtmiller StatusNone Fixed
        Open/ClosedOpen Closed
    2014-02-19 carandraug Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code