Ad Widget

Collapse

Solaris 10 troubles with 1.8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbli
    Junior Member
    • Mar 2010
    • 3

    #1

    Solaris 10 troubles with 1.8

    on Solaris 10 it is not possible to compile the version 1.8.x with --enable-static, it gives iconv.h not found, even it is there.
    If it is compiled without static libraries, then it works but gives a high load on the agend itself >1% cpu, the version 1.6.2 is somewhere at 0.1% cpu.



    I checked the 1.8 agentd and it does lots and lots of kstat request interval is somewhere at 1 second.

    Memory consumption is not correct calculated, it takes memory (RAM) and SWAP space, not only RAM.

    individual zones (Container) cannot be measured, only the whole physical box


    please provide a solution to make it run even on Solaris 10 (zones)


    compiling does still not work (1.8.2)
    checking for ICONV support... configure: error: Unable to find iconv.h "no"

    config.log output:
    configure:12969: gcc -o conftest -g -O2 -static conftest.c -lkvm -lm -lnsl -lkstat -lsocket -lresolv >&5
    ld: fatal: library -lkvm: not found
    ld: fatal: library -lm: not found
    ld: fatal: library -lnsl: not found
    ld: fatal: library -lkstat: not found
    ld: fatal: library -lsocket: not found
    ld: fatal: library -lresolv: not found
    ld: fatal: library -lc: not found
    ld: fatal: library -lc: not found
    ld: fatal: File processing errors. No output written to conftest
    collect2: ld returned 1 exit status
    configure:12975: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    ...
    ...
    | /* end confdefs.h. */
    |
    | #include <stdlib.h>
    | #include <iconv.h>
    |
    | int
    | main ()
    | {
    |
    | iconv_t cd = iconv_open("","");
    | iconv(cd, NULL, NULL, NULL, NULL);
    | iconv_close(cd);
    |
    | ;
    | return 0;
    | }
    configure:13025: gcc -o conftest -g -O2 -static conftest.c -lkvm -lm -lnsl -lkstat -lsocket -lresolv -liconv >&5
    ld: fatal: library -lkvm: not found
    ld: fatal: library -lm: not found
    ld: fatal: library -lnsl: not found
    ld: fatal: library -lkstat: not found
    ld: fatal: library -lsocket: not found
    ld: fatal: library -lresolv: not found
    ld: fatal: library -liconv: not found
    ld: fatal: library -lc: not found
    ld: fatal: library -lc: not found
    ld: fatal: File processing errors. No output written to conftest
    collect2: ld returned 1 exit status
    configure:13031: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    ...
    ...
    | #define HAVE_PUTENV 1
    | /* end confdefs.h. */
    |
    | #include <stdlib.h>
    | #include <iconv.h>
    |
    | int
    | main ()
    | {
    |
    | iconv_t cd = iconv_open("","");
    | iconv(cd, NULL, NULL, NULL, NULL);
    | iconv_close(cd);
    |
    | ;
    | return 0;
    | }
    configure:13076: error: Unable to find iconv.h "no"
    Last edited by zabbli; 30-03-2010, 11:13.
  • zabbli
    Junior Member
    • Mar 2010
    • 3

    #2
    this compiling errors occur with gcc and sun studio compiler.


    thats my simple command:
    ./configure --prefix=/opt/zabbix --enable-agent --enable-static

    Comment

    • mister
      Junior Member
      • Mar 2008
      • 7

      #3
      I had the same problem with 1.8.1. Wasn't an issue with 1.6.x.

      1. I had to compile/install the opensource libiconv library (used version 1.12 since it was handy for me, but I built it in a slightly non-standard location and you could probably just use a pre-built package from sunfreeware.com).

      2. Changed my LD_LIBRARY_PATH to include the new libiconv folder first.
      - LD_LIBRARY_PATH=/usr/local/libiconv/lib:$LD_LIBRARY_PATH ; export LD_LIBRARY_PATH

      3. Added a compile option (still missing the iconv.h include for some reason) when running the configure:
      CPPFLAGS="-I/usr/local/libiconv/include" ./configure --prefix=....etc

      Cheers.

      Comment

      Working...