[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cannot KCC compile all of indep-utils




Hello all.

Again, perhaps not in the main stream of ns-users, but anyway...
This is for the 1999-12-18 snapshot of ns-2.1b6.

Further on with my KCC compilations..., when I try to compile the 
indep-utils, I have to add #include <stdllib.h> to proxytrace.cc
-lm to the Makefiles, but, I cannot compile ucb/utils.cc...

Attached is the log output of the compiler...

Any hints?

/ChJ
KCC -c  -I. -I/home/chj/ftp/NetSim/tclcl-1.0b9-current -I/home/chj/ftp/NetSim/otcl-1.0a4 -I/home/chj/ftp/NetSim/tk8.0.5/generic -I/home/chj/ftp/NetSim/tcl8.0.5/generic -o utils.o utils.cc
"/home/guneri/kai-3.4d/KCC_BASE/include/new", line 39: error: linkage
          specification is incompatible with previous "operator new"
  void *operator new(std::size_t) MSIPL_THROW_STR(std::bad_alloc);
        ^

"/home/guneri/kai-3.4d/KCC_BASE/include/new", line 42: error: more than one
          instance of overloaded function "operator new" has "C" linkage
  void *operator new(std::size_t, const std::nothrow_t&) throw();
        ^

"/home/guneri/kai-3.4d/KCC_BASE/include/new", line 46: error: more than one
          instance of overloaded function "operator new" has "C" linkage
  inline void *operator new(std::size_t, void* where) MSIPL_THROW {return where;}
               ^

"/home/guneri/kai-3.4d/KCC_BASE/include/new", line 50: error: linkage
          specification is incompatible with previous "operator new[]"
  void *operator new[](std::size_t) MSIPL_THROW_STR(std::bad_alloc);
        ^

"/home/guneri/kai-3.4d/KCC_BASE/include/new", line 51: error: more than one
          instance of overloaded function "operator new[]" has "C" linkage
  void *operator new[](std::size_t, const std::nothrow_t&) throw();
        ^

"/home/guneri/kai-3.4d/KCC_BASE/include/new", line 52: error: more than one
          instance of overloaded function "operator new[]" has "C" linkage
  inline void *operator new[](std::size_t, void* where) MSIPL_THROW {return where;}
               ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 17: error: this
          declaration may not have extern "C" linkage
  template<class charT> class char_traits;
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 18: error: this
          declaration may not have extern "C" linkage
  template<> class char_traits<char>;
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 23: error: this
          declaration may not have extern "C" linkage
  template<class T> class allocator;
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 25: error: this
          declaration may not have extern "C" linkage
  template<class charT,class traits = char_traits<charT> > class basic_ios;
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 26: error: this
          declaration may not have extern "C" linkage
  template<class charT,class traits = char_traits<charT> > class basic_streambuf;
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 27: error: this
          declaration may not have extern "C" linkage
  template<class charT,class traits = char_traits<charT> > class basic_istream;
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 28: error: this
          declaration may not have extern "C" linkage
  template<class charT,class traits = char_traits<charT> > class basic_ostream;
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 29: error: this
          declaration may not have extern "C" linkage
  template<class charT,class traits = char_traits<charT> > class basic_iostream;
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 30: error: this
          declaration may not have extern "C" linkage
  template<class charT,class traits = char_traits<charT>,
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 32: error: this
          declaration may not have extern "C" linkage
  template<class charT,class traits = char_traits<charT>,
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 34: error: this
          declaration may not have extern "C" linkage
  template<class charT,class traits = char_traits<charT>,
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 36: error: this
          declaration may not have extern "C" linkage
  template<class charT,class traits = char_traits<charT>,
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 38: error: this
          declaration may not have extern "C" linkage
  template<class charT,class traits = char_traits<charT> > class basic_filebuf;
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 39: error: this
          declaration may not have extern "C" linkage
  template<class charT,class traits = char_traits<charT> > class basic_ifstream;
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 40: error: this
          declaration may not have extern "C" linkage
  template<class charT,class traits = char_traits<charT> > class basic_ofstream;
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 41: error: this
          declaration may not have extern "C" linkage
  template<class charT,class traits = char_traits<charT> > class basic_fstream;
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 42: error: this
          declaration may not have extern "C" linkage
  template<class charT,class traits = char_traits<charT> > class basic_istreambuf_iterator;
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 43: error: this
          declaration may not have extern "C" linkage
  template<class charT,class traits = char_traits<charT> > class basic_ostreambuf_iterator;
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iosfwd", line 82: error: this
          declaration may not have extern "C" linkage
  template<class stateT> class fpos;
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 41: error: this
          declaration may not have extern "C" linkage
  template <class Iterator>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 53: error: this
          declaration may not have extern "C" linkage
  template <class T>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 64: error: this
          declaration may not have extern "C" linkage
  template <class T>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 77: error: this
          declaration may not have extern "C" linkage
  template <class Category, class T, class Distance = ptrdiff_t, class Pointer = T*, class Reference = T& >
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 113: error: this
          declaration may not have extern "C" linkage
  template <class Iterator, class Distance>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 119: error: this
          declaration may not have extern "C" linkage
  template <class Iterator, class Distance>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 127: error: this
          declaration may not have extern "C" linkage
  template <class Iterator, class Distance>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 133: error: this
          declaration may not have extern "C" linkage
  template <class Iterator, class Distance>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 143: error: this
          declaration may not have extern "C" linkage
  template <class Iterator, class Distance>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 153: error: this
          declaration may not have extern "C" linkage
  template <class InputIterator, class Distance>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 159: error: this
          declaration may not have extern "C" linkage
  template <class InputIterator>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 171: error: this
          declaration may not have extern "C" linkage
  template <class Iterator> 
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 209: error: this
          declaration may not have extern "C" linkage
  template <class Iter>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 211: error: this
          declaration may not have extern "C" linkage
  template <class Iter>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 213: error: this
          declaration may not have extern "C" linkage
  template <class Iter>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 215: error: this
          declaration may not have extern "C" linkage
  template <class Iter>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 217: error: this
          declaration may not have extern "C" linkage
  template <class Iter>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 219: error: this
          declaration may not have extern "C" linkage
  template <class Iter>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 222: error: this
          declaration may not have extern "C" linkage
  template <class Iter>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 228: error: this
          declaration may not have extern "C" linkage
  template <class Iter>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 239: error: this
          declaration may not have extern "C" linkage
  template <class Container>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 259: error: this
          declaration may not have extern "C" linkage
  template <class Container>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 266: error: this
          declaration may not have extern "C" linkage
  template <class Container>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 284: error: this
          declaration may not have extern "C" linkage
  template <class Container>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 291: error: this
          declaration may not have extern "C" linkage
  template <class Container>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 312: error: this
          declaration may not have extern "C" linkage
  template <class Container, class Iterator>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 324: error: this
          declaration may not have extern "C" linkage
  template <class T, class charT = char, class traits = char_traits<charT>, class Distance = ptrdiff_t>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 361: error: this
          declaration may not have extern "C" linkage
  template <class T, class charT, class traits, class Distance>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 368: error: this
          declaration may not have extern "C" linkage
  template <class T, class charT, class traits, class Distance>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 376: error: this
          declaration may not have extern "C" linkage
  template <class T, class charT = char, class traits =  char_traits<charT> > 
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 403: error: this
          declaration may not have extern "C" linkage
  template < class charT, class traits = char_traits<charT> >
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 471: error: this
          declaration may not have extern "C" linkage
  template <class charT, class traits>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 475: error: this
          declaration may not have extern "C" linkage
  template <class charT, class traits>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/iterator", line 480: error: this
          declaration may not have extern "C" linkage
  template <class charT, class traits =  char_traits<charT> >
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/utility", line 26: error: this
          declaration may not have extern "C" linkage
  template <class T> inline bool operator!=(const T& x, const T& y) { return ! (x == y); } 
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/utility", line 27: error: this
          declaration may not have extern "C" linkage
  template <class T> inline bool operator>(const T& x, const T& y) { return y < x; }
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/utility", line 28: error: this
          declaration may not have extern "C" linkage
  template <class T> inline bool operator<=(const T& x, const T& y) { return  !(y < x);}
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/utility", line 29: error: this
          declaration may not have extern "C" linkage
  template <class T> inline bool operator>=(const T& x, const T& y) { return  !(x < y);}
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/utility", line 35: error: this
          declaration may not have extern "C" linkage
  template <class T1, class T2>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/utility", line 51: error: this
          declaration may not have extern "C" linkage
  template <class T1, class T2>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/utility", line 53: error: this
          declaration may not have extern "C" linkage
  template <class T1, class T2>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/utility", line 57: error: this
          declaration may not have extern "C" linkage
  template <class T1, class T2> inline bool operator!=(const pair<T1, T2>& x, const pair<T1, T2>& y) { return !(x == y); }
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/utility", line 58: error: this
          declaration may not have extern "C" linkage
  template <class T1, class T2> inline bool operator>(const pair<T1, T2>& x, const pair<T1, T2>& y) { return (y < x); }
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/utility", line 59: error: this
          declaration may not have extern "C" linkage
  template <class T1, class T2> inline bool operator>=(const pair<T1, T2>& x, const pair<T1, T2>& y) { return !(x < y); }
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/utility", line 60: error: this
          declaration may not have extern "C" linkage
  template <class T1, class T2> inline bool operator<=(const pair<T1, T2>& x, const pair<T1, T2>& y) { return !(y < x); }
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/utility", line 62: error: this
          declaration may not have extern "C" linkage
  template <class T1, class T2> inline pair<T1, T2> make_pair(const T1& x, const T2& y) { return pair<T1, T2> (x, y); }
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 49: error: this
          declaration may not have extern "C" linkage
  template <class T> class allocator; // forward declaration
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 51: error: this
          declaration may not have extern "C" linkage
  template<>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 64: error: this
          declaration may not have extern "C" linkage
  template <class T>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 147: error: this
          declaration may not have extern "C" linkage
  template <class T1, class T2>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 150: error: this
          declaration may not have extern "C" linkage
  template <class T1, class T2>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 159: error: this
          declaration may not have extern "C" linkage
      template <class T1, class T2>
      ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 162: error: this
          declaration may not have extern "C" linkage
      template <class T>
      ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 165: error: this
          declaration may not have extern "C" linkage
      template <class ForwardIterator>
      ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 176: error: this
          declaration may not have extern "C" linkage
  template <class OutputIterator, class T>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 204: error: this
          declaration may not have extern "C" linkage
  template <class T>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 217: error: this
          declaration may not have extern "C" linkage
  template <class T>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 223: error: this
          declaration may not have extern "C" linkage
  template <class InputIterator, class ForwardIterator>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 242: error: this
          declaration may not have extern "C" linkage
  template<> inline char*
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 253: error: this
          declaration may not have extern "C" linkage
  template <class ForwardIterator, class T>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 269: error: this
          declaration may not have extern "C" linkage
  template<>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 280: error: this
          declaration may not have extern "C" linkage
  template <class ForwardIterator, class Size, class T>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 296: error: this
          declaration may not have extern "C" linkage
  template<>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 298: error: this
          declaration may not have extern "C" linkage
  template<>
  ^

"/home/guneri/kai-3.4d/KCC_BASE/include/memory", line 312: error: this
          declaration may not have extern "C" linkage
  template <class X>
  ^

"utils.cc", line 294: warning: variable "ml" was set but never used
    int i, substrlen, ml;
                      ^

90 errors detected in the compilation of "utils.cc".
KCC: Compilation failed.
make: *** [utils.o] Error 2
make: Target `all' not remade because of errors.