Ad Widget

Collapse

iconv.h error on configuring zabbix 1.8 agent on hp-ux 11.23

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Akira Inagaki
    Junior Member
    • Feb 2012
    • 1

    #16
    I succeeded

    Hi, I had the same problem on HP-UX 11.23 IA64.
    and I succeeded by installing GNUbase, and editing configure file.

    Code:
    swlist -l file | egrep 'iconv\.(h|a|la|so)'
      GNUbase.GNUBASE-IPF-RUN: /usr/local/include/iconv.h
      GNUbase.GNUBASE-IPF-RUN: /usr/local/lib/hpux32/libiconv.a
      GNUbase.GNUBASE-IPF-RUN: /usr/local/lib/hpux32/libiconv.la
      GNUbase.GNUBASE-IPF-RUN: /usr/local/lib/hpux32/libiconv.so
    Code:
    diff -C2 configure.org configure
    *** configure.org       Tue Feb 28 01:18:03 2012
    --- configure   Tue Feb 28 01:19:06 2012
    ***************
    *** 13464,13472 ****
      echo $ECHO_N "checking for ICONV support... $ECHO_C" >&6; }
    
    !       if test -f /usr/include/iconv.h; then
    !               found_iconv="yes"
    !       elif test -f /usr/local/include/iconv.h; then
                    ICONV_CFLAGS="-I/usr/local/include"
    !               ICONV_LDFLAGS="-L/usr/local/lib"
                    found_iconv="yes"
            else
    --- 13464,13470 ----
      echo $ECHO_N "checking for ICONV support... $ECHO_C" >&6; }
    
    !       if test -f /usr/local/include/iconv.h; then
                    ICONV_CFLAGS="-I/usr/local/include"
    !               ICONV_LDFLAGS="-L/usr/local/lib/hpux32"
                    found_iconv="yes"
            else

    Comment

    • Netbulae
      Junior Member
      • Jul 2009
      • 27

      #17
      Compiling --static on Centos 6.2

      I had the same error about libiconv.h while compiling the 2.0rc2 agent on Centos 6.2 and --enable-static

      ./configure --enable-agent --enable-static

      The fix for me was "yum install glibc-static"

      Jorick Astrego
      Netbulae

      Comment

      • cferraro
        Junior Member
        • Jun 2011
        • 16

        #18
        Thanks for the post Jorick. The glibc-static RPM worked for me too.

        I didn't have it in my configured repos, so I pulled it from rpmfind.net

        Comment

        • Robert.hau
          Junior Member
          Zabbix Certified Specialist
          • Jun 2010
          • 10

          #19
          Thanks

          Thanks Guys, that was the problem with multiple iconv.h files.

          Comment

          Working...