Ad Widget

Collapse

Configure failed with mysql support in 1.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sauter
    Junior Member
    • Dec 2005
    • 7

    #1

    Configure failed with mysql support in 1.4

    I'm trying to compile 1.4 on Solaris 10, but the command

    ./configure --prefix=/opt/zabbix --enable-server --enable-agent --with-mysql --with-net-snmp --with-curl

    produces the error:

    [...]
    checking for mysql_config... /opt/csw/mysql5/bin/mysql_config
    checking for main in -lmysqlclient ... no
    configure: error: Not found mysqlclient library

    I never had any problems compiling the 1.1.x releases, and I have now spent several hours on this problem, trying different settings and different locations of mysql with no luck, so now I'm stuck.
    Last edited by sauter; 01-06-2007, 09:38.
  • sauter
    Junior Member
    • Dec 2005
    • 7

    #2
    I found the problem. It had to do with the cflags that mysql_config produces. The MySQL distribution was compiled with Sun's compiler and not gcc, so the compiler flags in mysql_config are flags for Sun's compiler.

    I edited mysql_config and replaced "-mt" with "-pthreads", "-xarch=v8" with "-mcpu=v8" and then I also had to remove "-D_FILE_OFFSET_BITS=64" to get it through gcc.

    Comment

    • lcondado
      Member
      • May 2006
      • 37

      #3
      ¿ Did you had some trouble related to libidn ?

      ¿ Did you had some trouble related to libidn ?

      I can't compile the Zabbix server with Jabber support.

      I am using Solaris 10 too.

      Thanks.
      Last edited by lcondado; 01-06-2007, 23:30.

      Comment

      • sauter
        Junior Member
        • Dec 2005
        • 7

        #4
        No, I didn't try to compile with Jabber support, and I didn't have any other issues than the ones I mentioned.

        Comment

        • lolziac
          Junior Member
          • Jul 2007
          • 10

          #5
          This worked for me also on AIX 5.3, when trying to compile with gcc.

          I had to edit also mysql_config and edit the flags from
          -O3 -qstrict -qoptimize=3 -qmaxmem=8192
          to
          -pipe -mcpu=power3 -Wa,-many

          Thank you
          lolziac

          Comment

          Working...