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:11I 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 1As 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
-
::
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 1As 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 ?
-
::
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.
-
::
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 🙂