Menu

Compiling under Solaris 8 SPARC

Porting
janvier
2001-12-07
2002-01-08
  • janvier

    janvier - 2001-12-07

    There was an error in compilation of CommonC++-1.9.1 under SPARC Solaris 8. I used gcc-3.0.2. The compiler said that atomic_t has been used as a type but it was not declared as a type.

    Can anyone help me?

     
    • lsh

      lsh - 2001-12-24

      I think this maybe a bug:
      I found this in src/config.h

      #ifdef HAVE_SYS_ATOMIC_H
      #include <sys/atomic.h>
      #define HAVE_ATOMIC
      #else
      #ifdef HAVE_ASM_ATOMIC_H
      #include <asm/atomic.h>
      #define HAVE_ATOMIC
      #endif

      and this in thread.h

      #ifdef  HAVE_ATOMIC
              atomic_t atomic;
      #else

      sys/atomic.h do exsist ,but I can not find where to declare "atomic_t"??

       
    • Frediano Ziglio

      Frediano Ziglio - 2002-01-06

      This problem have been fixed in cvs (after version 0.9.3). I tried to compile demo apps on sf compile farm but link fail. Do you have same problem or is a CF problem ??

       
      • Frediano Ziglio

        Frediano Ziglio - 2002-01-08

        I found problem. In thread we declare gethostname, giving a C++ mangling, removed definition and now it work

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.