Fwd: unable to compile on freebsd

Charlie Younghusband charlieyounghusband at gmail.com
Fri Aug 26 15:19:32 UTC 2016


Hi,
I was looking to compile this on a modern FreeBSD machine, but it doesn't work.   This looks similar to bug 1380660 reported in 2014 but slightly different.  I got it working fine on an Ubuntu box for now, but advice for running on recent FreeBSD?

--

oot at REG-TS:~/web-polygraph/polygraph-4.9.0 # uname -a
FreeBSD REG-TS 10.2-RELEASE FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 15:26:37 UTC 2015     root at releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
root at REG-TS:~/web-polygraph/polygraph-4.9.0 # make
Making all in .
Making all in src
make  all-recursive
Making all in xstd
Making all in base
Making all in xml
Making all in app
Making all in beep
Making all in icp
Making all in kerberos
Making all in runtime
c++ -DHAVE_CONFIG_H    -DDATA_DIR=\"/usr/local/share/polygraph\"  -I../../src  -I../../src -I/usr/include -I/usr/include  -g -O3 -Wall -Wwrite-strings -Woverloaded-virtual -MT ExpPortMgr.o -MD -MP -MF .deps/ExpPortMgr.Tpo -c -o ExpPortMgr.o ExpPortMgr.cc
In file included from ExpPortMgr.cc:6:
../../src/base/polygraph.h:11:17: warning: using directive refers to
        implicitly-defined namespace 'std'
using namespace std;
                  ^
In file included from ExpPortMgr.cc:6:
In file included from ../../src/base/polygraph.h:14:
In file included from ../../src/config.h:488:
../../src/post-config.h:11:17: warning: using directive refers to
        implicitly-defined namespace 'std'
using namespace std;
                  ^
ExpPortMgr.cc:27:40: error: 'Value' is a protected member of
        'Array<unsigned short>'
          if (PortMax() > numeric_limits<Ports::Value>::max()) {
                                                ^
../../src/xstd/Ring.h:16:13: note: constrained by protected inheritance here
class Ring: protected Array<Item> {
              ^~~~~~~~~~~~~~~~~~~~~
../../src/xstd/Array.h:26:16: note: member is declared here
                  typedef Item Value;
                               ^
ExpPortMgr.cc:29:44: error: 'Value' is a protected member of
        'Array<unsigned short>'
                          "' option is " << numeric_limits<Ports::Value>::max() <<
                                                                  ^
../../src/xstd/Ring.h:16:13: note: constrained by protected inheritance here
class Ring: protected Array<Item> {
              ^~~~~~~~~~~~~~~~~~~~~
../../src/xstd/Array.h:26:16: note: member is declared here
                  typedef Item Value;
                               ^
2 warnings and 2 errors generated.
*** Error code 1

Stop.
make[3]: stopped in /root/web-polygraph/polygraph-4.9.0/src/runtime
*** Error code 1

Stop.
make[2]: stopped in /root/web-polygraph/polygraph-4.9.0/src
*** Error code 1

Stop.
make[1]: stopped in /root/web-polygraph/polygraph-4.9.0/src
*** Error code 1

Stop.
make: stopped in /root/web-polygraph/polygraph-4.9.0



More information about the Users mailing list