Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. `pthread_cond_reltimedwait_np' was not declared building agent on Solaris

`pthread_cond_reltimedwait_np' was not declared building agent on Solaris

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 38.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    C
    code4pay
    wrote on last edited by
    #1

    Hi Trying to build the agent on Sparc Solaris 5.8, using gcc
    using
    ./configure --prefix=/opt/netxms  --with-agent --disable-encryption --disable-iconv
    make
    and I get the error

    DISABLE_ICONV -D_THREAD_SAFE -DPREFIX=\"/opt/netxms\" -DPREFIXW=L\"/opt/netxms\" -DDATADIR=\"/opt/netxms/share/netxms\" -DLIBDIR=\"/opt/netxms/lib\" -g -O2 -fno-rtti -fno-exceptions -fno-const-strings -Wno-deprecated -MT base64.lo -MD -MP -MF .deps/base64.Tpo -c base64.cpp  -fPIC -DPIC -o .libs/base64.o
    In file included from ../../include/nms_util.h:40,
                    from libnetxms.h:28,
                    from base64.cpp:44:
    ../../include/nms_threads.h: In function `BOOL ConditionWait(netxms_condition_t*, DWORD)':
    ../../include/nms_threads.h:849: error: `pthread_cond_reltimedwait_np' was not declared in this scope
    make[3]: *** [base64.lo] Error 1

    uname -a
    SunOS cscsydhnms56 5.8 Generic_117350-59 sun4u sparc SUNW,UltraAX-i2 Solaris
     
    gcc -v
    Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/specs
    Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
    Thread model: posix
    gcc version 3.4.6

    config.log attached (had to gzip it)

    Any Ideas?

    thanks


    config.log.gz

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi!

      Very strange - configure found that this function exists, but looks like it is not declared. Could you please post pthread.h from your system? Unfortunately I don't have any Sparc Solaris systems available, only Solaris 10 for x86, on which everything compiles without problems. Also, as a workaround, you can comment out or remove line

      #define HAVE_PTHREAD_COND_RELTIMEDWAIT_NP 1
      

      in config.h.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • C
        C
        code4pay
        wrote on last edited by
        #3

        Thanks again Victor the work around was a success.  I have attached the pthread.h.
        It seems that it is only Solaris 8, Solaris 9 built ok with out the hack.

        I had another issue with expat being too old I received this error in case some on else has the issue
         “message.cpp:297: `XML_STATUS_ERROR' undeclared (first use this function)”  Upgraded expat and all went ok.
         
        Thanks Again.


        pthread.h

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups