Unable to compile on FreeBSD

Kevin Oberman oberman at es.net
Thu Oct 12 20:17:07 UTC 2006


I maintain the FreeBSD port of the IRRToolSet and would like to bring
the port up to date at 4.8.4. So far, I have had NO success at all. I
was getting much farther in the past, but I suspect the gcc I am using is
a bit more strict about things than the prior version and C++ is not
something I am at all good with. (This does not make me the ideal port
maintainer, but no one else would take it and the version in ports at
the time was really old.)
I get through configure and make depends, but the make dies almost
immediately with a long list of warnings and errors:
g++ -c  -O3 -gstabs+ -frtti -DHAVE_CONFIG_H -I. -I. -I../../src -I.. -I../../src/Core -I../../src/rpsl  rpslcheck.cc
In file included from ../../src/Core/gnu/MLCG.h:24,
                 from ../../src/Core/util/List.hh:66,
                 from ../../src/rpsl/rpsl/object.hh:62,
                 from rpslcheck.cc:57:
../../src/Core/gnu/RNG.h:26:23: _G_config.h: No such file or directory
In file included from ../../src/Core/gnu/MLCG.h:24,
                 from ../../src/Core/util/List.hh:66,
                 from ../../src/rpsl/rpsl/object.hh:62,
                 from rpslcheck.cc:57:
../../src/Core/gnu/RNG.h:30: error: `_G_uint32_t' does not name a type
../../src/Core/gnu/RNG.h:35: error: `_G_uint32_t' does not name a type
../../src/Core/gnu/RNG.h:49: error: `_G_uint32_t' does not name a type
In file included from ../../src/Core/util/List.hh:66,
                 from ../../src/rpsl/rpsl/object.hh:62,
                 from rpslcheck.cc:57:
../../src/Core/gnu/MLCG.h:32: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:33: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:34: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:35: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:40: error: expected `)' before "seed1"
../../src/Core/gnu/MLCG.h:44: error: `_G_uint32_t' does not name a type
../../src/Core/gnu/MLCG.h:46: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:47: error: `_G_int32_t' has not been declared
../../src/Core/gnu/MLCG.h:47: error: ISO C++ forbids declaration of `parameter' with no type
../../src/Core/gnu/MLCG.h:48: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:49: error: `_G_int32_t' has not been declared
../../src/Core/gnu/MLCG.h:49: error: ISO C++ forbids declaration of `parameter' with no type
../../src/Core/gnu/MLCG.h:50: error: `_G_int32_t' has not been declared
../../src/Core/gnu/MLCG.h:50: error: `_G_int32_t' has not been declared
../../src/Core/gnu/MLCG.h:50: error: ISO C++ forbids declaration of `parameter' with no type
../../src/Core/gnu/MLCG.h:50: error: ISO C++ forbids declaration of `parameter' with no type
../../src/Core/gnu/MLCG.h:53: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:60: error: variable or field `seed1' declared void
../../src/Core/gnu/MLCG.h:60: error: `MLCG::seed1' declared as an `inline' variable
../../src/Core/gnu/MLCG.h:60: error: `int MLCG::seed1' is not a static member of `class MLCG'
../../src/Core/gnu/MLCG.h:60: error: `_G_int32_t' was not declared in this scope../../src/Core/gnu/MLCG.h:61: error: expected `,' or `;' before '{' token
../../src/Core/gnu/MLCG.h:66: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:73: error: variable or field `seed2' declared void
../../src/Core/gnu/MLCG.h:73: error: `MLCG::seed2' declared as an `inline' variable
../../src/Core/gnu/MLCG.h:73: error: `int MLCG::seed2' is not a static member of `class MLCG'
../../src/Core/gnu/MLCG.h:73: error: `_G_int32_t' was not declared in this scope../../src/Core/gnu/MLCG.h:74: error: expected `,' or `;' before '{' token
../../src/Core/gnu/MLCG.h:80: error: variable or field `reseed' declared void
../../src/Core/gnu/MLCG.h:80: error: `MLCG::reseed' declared as an `inline' variable
../../src/Core/gnu/MLCG.h:80: error: `int MLCG::reseed' is not a static member of `class MLCG'
../../src/Core/gnu/MLCG.h:80: error: `_G_int32_t' was not declared in this scope../../src/Core/gnu/MLCG.h:80: error: `_G_int32_t' was not declared in this scope../../src/Core/gnu/MLCG.h:81: error: initializer expression list treated as compound expression
../../src/Core/gnu/MLCG.h:81: error: expected `,' or `;' before '{' token
In file included from ../../src/rpsl/gnu/SymID.defs.h:27,
                 from ../../src/rpsl/gnu/SymID.Set.h:27,
                 from ../../src/rpsl/gnu/SymID.VHSet.h:26,
                 from ../../src/rpsl/gnu/SetOfSymID.hh:59,
                 from ../../src/rpsl/rpsl/regexp.hh:60,
                 from ../../src/rpsl/rpsl/rpsl_attr.hh:69,
                 from ../../src/rpsl/rpsl/object.hh:65,
                 from rpslcheck.cc:57:
../../src/rpsl/gnu/std.h:32: error: `strcasecmp' does not name a type
gmake[2]: *** [rpslcheck.o] Error 1
gmake[2]: Leaving directory `/usr/home/oberman/utils/IRRToolSet-4.8.4/src/rpslcheck'
gmake[2]: Entering directory `/usr/home/oberman/utils/IRRToolSet-4.8.4/src/peval'
g++ -c  -O3 -gstabs+ -frtti -DHAVE_CONFIG_H -I. -I. -I../../src -I.. -I../../src/Core -I../../src/rpsl  peval.cc
In file included from ../../src/Core/gnu/MLCG.h:24,
                 from ../../src/Core/util/List.hh:66,
                 from ../../src/rpsl/rpsl/object.hh:62,
                 from ../../src/irr/irr.hh:58,
                 from peval.cc:75:
../../src/Core/gnu/RNG.h:26:23: _G_config.h: No such file or directory
In file included from ../../src/Core/gnu/MLCG.h:24,
                 from ../../src/Core/util/List.hh:66,
                 from ../../src/rpsl/rpsl/object.hh:62,
                 from ../../src/irr/irr.hh:58,
                 from peval.cc:75:
../../src/Core/gnu/RNG.h:30: error: `_G_uint32_t' does not name a type
../../src/Core/gnu/RNG.h:35: error: `_G_uint32_t' does not name a type
../../src/Core/gnu/RNG.h:49: error: `_G_uint32_t' does not name a type
In file included from ../../src/Core/util/List.hh:66,
                 from ../../src/rpsl/rpsl/object.hh:62,
                 from ../../src/irr/irr.hh:58,
                 from peval.cc:75:
../../src/Core/gnu/MLCG.h:32: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:33: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:34: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:35: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:40: error: expected `)' before "seed1"
../../src/Core/gnu/MLCG.h:44: error: `_G_uint32_t' does not name a type
../../src/Core/gnu/MLCG.h:46: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:47: error: `_G_int32_t' has not been declared
../../src/Core/gnu/MLCG.h:47: error: ISO C++ forbids declaration of `parameter' with no type
../../src/Core/gnu/MLCG.h:48: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:49: error: `_G_int32_t' has not been declared
../../src/Core/gnu/MLCG.h:49: error: ISO C++ forbids declaration of `parameter' with no type
../../src/Core/gnu/MLCG.h:50: error: `_G_int32_t' has not been declared
../../src/Core/gnu/MLCG.h:50: error: `_G_int32_t' has not been declared
../../src/Core/gnu/MLCG.h:50: error: ISO C++ forbids declaration of `parameter' with no type
../../src/Core/gnu/MLCG.h:50: error: ISO C++ forbids declaration of `parameter' with no type
../../src/Core/gnu/MLCG.h:53: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:60: error: variable or field `seed1' declared void
../../src/Core/gnu/MLCG.h:60: error: `MLCG::seed1' declared as an `inline' variable
../../src/Core/gnu/MLCG.h:60: error: `int MLCG::seed1' is not a static member of `class MLCG'
../../src/Core/gnu/MLCG.h:60: error: `_G_int32_t' was not declared in this scope../../src/Core/gnu/MLCG.h:61: error: expected `,' or `;' before '{' token
../../src/Core/gnu/MLCG.h:66: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:73: error: variable or field `seed2' declared void
../../src/Core/gnu/MLCG.h:73: error: `MLCG::seed2' declared as an `inline' variable
../../src/Core/gnu/MLCG.h:73: error: `int MLCG::seed2' is not a static member of `class MLCG'
../../src/Core/gnu/MLCG.h:73: error: `_G_int32_t' was not declared in this scope../../src/Core/gnu/MLCG.h:74: error: expected `,' or `;' before '{' token
../../src/Core/gnu/MLCG.h:80: error: variable or field `reseed' declared void
../../src/Core/gnu/MLCG.h:80: error: `MLCG::reseed' declared as an `inline' variable
../../src/Core/gnu/MLCG.h:80: error: `int MLCG::reseed' is not a static member of `class MLCG'
../../src/Core/gnu/MLCG.h:80: error: `_G_int32_t' was not declared in this scope../../src/Core/gnu/MLCG.h:80: error: `_G_int32_t' was not declared in this scope../../src/Core/gnu/MLCG.h:81: error: initializer expression list treated as compound expression
../../src/Core/gnu/MLCG.h:81: error: expected `,' or `;' before '{' token
In file included from ../../src/rpsl/gnu/SymID.defs.h:27,
                 from ../../src/rpsl/gnu/SymID.Set.h:27,
                 from ../../src/rpsl/gnu/SymID.VHSet.h:26,
                 from ../../src/rpsl/gnu/SetOfSymID.hh:59,
                 from ../../src/rpsl/rpsl/regexp.hh:60,
                 from ../../src/rpsl/rpsl/rpsl_attr.hh:69,
                 from ../../src/rpsl/rpsl/object.hh:65,
                 from ../../src/irr/irr.hh:58,
                 from peval.cc:75:
../../src/rpsl/gnu/std.h:32: error: `strcasecmp' does not name a type
gmake[2]: *** [peval.o] Error 1
gmake[2]: Leaving directory `/usr/home/oberman/utils/IRRToolSet-4.8.4/src/peval'gmake[2]: Entering directory `/usr/home/oberman/utils/IRRToolSet-4.8.4/src/RtConfig'
g++ -c  -O3 -gstabs+ -frtti  -DHAVE_CONFIG_H -I. -I. -I../../src -I.. -I../../src/Core -I../../src/rpsl  RtConfig.cc
In file included from ../../src/Core/gnu/MLCG.h:24,
                 from ../../src/Core/util/List.hh:66,
                 from ../../src/rpsl/rpsl/object.hh:62,
                 from ../../src/irr/irr.hh:58,
                 from RtConfig.cc:64:
../../src/Core/gnu/RNG.h:26:23: _G_config.h: No such file or directory
In file included from ../../src/Core/gnu/MLCG.h:24,
                 from ../../src/Core/util/List.hh:66,
                 from ../../src/rpsl/rpsl/object.hh:62,
                 from ../../src/irr/irr.hh:58,
                 from RtConfig.cc:64:
../../src/Core/gnu/RNG.h:30: error: `_G_uint32_t' does not name a type
../../src/Core/gnu/RNG.h:35: error: `_G_uint32_t' does not name a type
../../src/Core/gnu/RNG.h:49: error: `_G_uint32_t' does not name a type
In file included from ../../src/Core/util/List.hh:66,
                 from ../../src/rpsl/rpsl/object.hh:62,
                 from ../../src/irr/irr.hh:58,
                 from RtConfig.cc:64:
../../src/Core/gnu/MLCG.h:32: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:33: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:34: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:35: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:40: error: expected `)' before "seed1"
../../src/Core/gnu/MLCG.h:44: error: `_G_uint32_t' does not name a type
../../src/Core/gnu/MLCG.h:46: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:47: error: `_G_int32_t' has not been declared
../../src/Core/gnu/MLCG.h:47: error: ISO C++ forbids declaration of `parameter' with no type
../../src/Core/gnu/MLCG.h:48: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:49: error: `_G_int32_t' has not been declared
../../src/Core/gnu/MLCG.h:49: error: ISO C++ forbids declaration of `parameter' with no type
../../src/Core/gnu/MLCG.h:50: error: `_G_int32_t' has not been declared
../../src/Core/gnu/MLCG.h:50: error: `_G_int32_t' has not been declared
../../src/Core/gnu/MLCG.h:50: error: ISO C++ forbids declaration of `parameter' with no type
../../src/Core/gnu/MLCG.h:50: error: ISO C++ forbids declaration of `parameter' with no type
../../src/Core/gnu/MLCG.h:53: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:60: error: variable or field `seed1' declared void
../../src/Core/gnu/MLCG.h:60: error: `MLCG::seed1' declared as an `inline' variable
../../src/Core/gnu/MLCG.h:60: error: `int MLCG::seed1' is not a static member of `class MLCG'
../../src/Core/gnu/MLCG.h:60: error: `_G_int32_t' was not declared in this scope../../src/Core/gnu/MLCG.h:61: error: expected `,' or `;' before '{' token
../../src/Core/gnu/MLCG.h:66: error: `_G_int32_t' does not name a type
../../src/Core/gnu/MLCG.h:73: error: variable or field `seed2' declared void
../../src/Core/gnu/MLCG.h:73: error: `MLCG::seed2' declared as an `inline' variable
../../src/Core/gnu/MLCG.h:73: error: `int MLCG::seed2' is not a static member of `class MLCG'
../../src/Core/gnu/MLCG.h:73: error: `_G_int32_t' was not declared in this scope../../src/Core/gnu/MLCG.h:74: error: expected `,' or `;' before '{' token
../../src/Core/gnu/MLCG.h:80: error: variable or field `reseed' declared void
../../src/Core/gnu/MLCG.h:80: error: `MLCG::reseed' declared as an `inline' variable
../../src/Core/gnu/MLCG.h:80: error: `int MLCG::reseed' is not a static member of `class MLCG'
../../src/Core/gnu/MLCG.h:80: error: `_G_int32_t' was not declared in this scope../../src/Core/gnu/MLCG.h:80: error: `_G_int32_t' was not declared in this scope../../src/Core/gnu/MLCG.h:81: error: initializer expression list treated as compound expression
../../src/Core/gnu/MLCG.h:81: error: expected `,' or `;' before '{' token
In file included from ../../src/rpsl/gnu/SymID.defs.h:27,
                 from ../../src/rpsl/gnu/SymID.Set.h:27,
                 from ../../src/rpsl/gnu/SymID.VHSet.h:26,
                 from ../../src/rpsl/gnu/SetOfSymID.hh:59,
                 from ../../src/rpsl/rpsl/regexp.hh:60,
                 from ../../src/rpsl/rpsl/rpsl_attr.hh:69,
                 from ../../src/rpsl/rpsl/object.hh:65,
                 from ../../src/irr/irr.hh:58,
                 from RtConfig.cc:64:
../../src/rpsl/gnu/std.h:32: error: `strcasecmp' does not name a type
gmake[2]: *** [RtConfig.o] Error 1
gmake[2]: Leaving directory `/usr/home/oberman/utils/IRRToolSet-4.8.4/src/RtConfig'

Can anyone point me in the right direction? I am compiling with gcc 3.4.6.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman at es.net			Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751




More information about the irrtoolset mailing list