bugGNU Octave - Bugs: bug #47128, Overlapping macro definitions in...

 
 

bug #47128: Overlapping macro definitions in octave-config.h and oct-conf-post.h

Submitter:  Rik <rik5>
Submitted:  Sat 13 Feb 2016 01:22:05 AM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 13 Feb 2016 01:22:05 AM UTC, original submission:  

I compiled a recent tip (21253:a66a737913b5) and installed locally.  When I try to build a .oct file (examples/code/helloworld.cc) I get warnings about re-definition of macros.

This is caused by overlap between the new octave-config.h and oct-conf-post.h which is included in config.h.


mkoctfile -v helloworld.cc
g++ -c  -fPIC -I/home/rik/local/include/octave-4.1.0+/octave/.. -I/home/rik/local/include/octave-4.1.0+/octave -I/home/rik/local/include -pthread -fopenmp -O2 -pipe    helloworld.cc -o helloworld.o
In file included from /home/rik/local/include/octave-4.1.0+/octave/config.h:3554:0,
                 from /home/rik/local/include/octave-4.1.0+/octave/../octave/oct.h:33,
                 from helloworld.cc:1:
/home/rik/local/include/octave-4.1.0+/octave/oct-conf-post.h:113:0: warning: "OCTAVE_INT_USE_LONG_DOUBLE" redefined
 #  define OCTAVE_INT_USE_LONG_DOUBLE
 ^
In file included from /home/rik/local/include/octave-4.1.0+/octave/../octave/oct.h:26:0,
                 from helloworld.cc:1:
/home/rik/local/include/octave-4.1.0+/octave/../octave/octave-config.h:106:0: note: this is the location of the previous definition
 #define OCTAVE_INT_USE_LONG_DOUBLE 1
 ^
In file included from /home/rik/local/include/octave-4.1.0+/octave/config.h:3554:0,
                 from /home/rik/local/include/octave-4.1.0+/octave/../octave/oct.h:33,
                 from helloworld.cc:1:
/home/rik/local/include/octave-4.1.0+/octave/oct-conf-post.h:138:0: warning: "OCTAVE_API" redefined
 #  define OCTAVE_API OCTAVE_IMPORT
 ^
In file included from /home/rik/local/include/octave-4.1.0+/octave/../octave/oct.h:26:0,
                 from helloworld.cc:1:
/home/rik/local/include/octave-4.1.0+/octave/../octave/octave-config.h:87:0: note: this is the location of the previous definition
 #  define OCTAVE_API
 ^
In file included from /home/rik/local/include/octave-4.1.0+/octave/config.h:3554:0,
                 from /home/rik/local/include/octave-4.1.0+/octave/../octave/oct.h:33,
                 from helloworld.cc:1:
/home/rik/local/include/octave-4.1.0+/octave/oct-conf-post.h:145:0: warning: "OCTINTERP_API" redefined
 #  define OCTINTERP_API OCTAVE_IMPORT
 ^
In file included from /home/rik/local/include/octave-4.1.0+/octave/../octave/oct.h:26:0,
                 from helloworld.cc:1:
/home/rik/local/include/octave-4.1.0+/octave/../octave/octave-config.h:88:0: note: this is the location of the previous definition
 #  define OCTINTERP_API
 ^
g++ -I/home/rik/local/include/octave-4.1.0+/octave/.. -I/home/rik/local/include/octave-4.1.0+/octave -I/home/rik/local/include -pthread -fopenmp -O2 -pipe -shared -Wl,-Bsymbolic  -o helloworld.oct  helloworld.o   -L/home/rik/local/lib/octave/4.1.0+ -L/home/rik/local/lib -loctinterp -loctave


Rik <rik5>
Group administrator

 

(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 rik5 (Submitted the item)
  • -email is unavailable- added by rik5
  •  

    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
    2016-02-18 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2016-02-13 rik5 Carbon-Copy- Added jwe

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code