Make failed if gcc 4.9 is used

Bug #1380660 reported by Pavel Kazlenka on 2014-10-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Polygraph
Undecided
Unassigned

Bug Description

When trying to build latest polygraph trunk (r13877) on machine with gcc 4.9 installed next error occurs:

g++ -DHAVE_CONFIG_H -DDATA_DIR=\"/usr/local/share/polygraph\" -I../../src -I../../src -I/usr/include -I/usr/include -I/usr/include -g -O1 -Wall -Wwrite-strings -Woverloaded-virtual -MT ExpPortMgr.o -MD -MP -MF .deps/ExpPortMgr.Tpo -c -o ExpPortMgr.o ExpPortMgr.cc
In file included from ../../src/xstd/Socket.h:15:0,
                 from ExpPortMgr.cc:11:
../../src/xstd/Array.h: In constructor ‘ExpPortMgr::ExpPortMgr(const NetAddr&)’:
../../src/xstd/Array.h:26:16: error: ‘typedef short unsigned int Array<short unsigned int>::Value’ is inaccessible
   typedef Item Value;
                ^
ExpPortMgr.cc:27:18: error: within this context
  if (PortMax() > numeric_limits<Ports::Value>::max()) {
                  ^
In file included from ../../src/xstd/Socket.h:15:0,
                 from ExpPortMgr.cc:11:
../../src/xstd/Array.h:26:16: error: ‘typedef short unsigned int Array<short unsigned int>::Value’ is inaccessible
   typedef Item Value;
                ^
ExpPortMgr.cc:29:22: error: within this context
    "' option is " << numeric_limits<Ports::Value>::max() <<
                      ^
Makefile:634: recipe for target 'ExpPortMgr.o' failed
make[3]: *** [ExpPortMgr.o] Error 1

GCC version is 4.9.1 20140903 (prerelease)

Alex Rousskov (rousskov) on 2016-01-07
Changed in polygraph:
status: New → In Progress
Alex Rousskov (rousskov) wrote :

This bug has been fixed in the master branch.

Changed in polygraph:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers