Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support compilation error on Solaris 10

  • compilation error on Solaris 10

    Posted by turi on January 10, 2007 at 02:11

    I am trying to set up babel on a solaris 10 box and when I run make it errors out on asprintf(). Here is the output:

    Undefined first referenced
    symbol in file
    asprintf babel_server.o
    ld: fatal: Symbol referencing errors. No output written to babelserver
    collect2: ld returned 1 exit status
    *** Error code 1

    As far as I now Solaris does not have support for asprintf() or vasprintf(). Am I missing something? Or do I need to get some other libs installed? Thanks.

    Sancho replied 18 years, 1 month ago 2 Members · 3 Replies
  • 3 Replies
  • Sancho

    Administrator
    January 10, 2007 at 03:43
    2309 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    I am trying to set up babel on a solaris 10 box and when I run make it errors out on asprintf(). Here is the output:

    Undefined first referenced
    symbol in file
    asprintf babel_server.o
    ld: fatal: Symbol referencing errors. No output written to babelserver
    collect2: ld returned 1 exit status
    *** Error code 1

    As far as I now Solaris does not have support for asprintf() or vasprintf(). Am I missing something? Or do I need to get some other libs installed? Thanks.

    Mmm insteresting. asprintf() is a GLIB standard function for GNU/Linux systems, actually I don’t know how to use it in Solaris. Alternatives are patching code for use a printf function (with a previos malloc and strcpy code) or install GLIB in Solaris.

    One question, why use Solaris and not Linux for Server ?. Do you have MySQL on Solaris too ?

  • turi

    Member
    January 10, 2007 at 19:24
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    One question, why use Solaris and not Linux for Server ?. Do you have MySQL on Solaris too ?

    Well, we have a lot of unused sparc boxes lying around 🙂 And yes I have mysql on it too. But I thought the documentation mentioned that Soalris was supported, and I think there is even a solaris agent. Isn’t it?

    I’ll try to compile the glib for my box and see if that solves the issue.

  • Sancho

    Administrator
    January 11, 2007 at 04:06
    2309 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    One question, why use Solaris and not Linux for Server ?. Do you have MySQL on Solaris too ?

    Well, we have a lot of unused sparc boxes lying around 🙂 And yes I have mysql on it too. But I thought the documentation mentioned that Soalris was supported, and I think there is even a solaris agent. Isn’t it?

    I’ll try to compile the glib for my box and see if that solves the issue.

    Yep, supported for AGENT only :-))

    I suppose it’s possible to run Console also (it’s PHP), but server will be more difficult. Babel 1.1 version NEEDS a GNU Linux with Inotify support in kernel (this is 2.6.16 or higher). You can also install GNU/Linux on your sparc box 🙂