Ad Widget

Collapse

Solaris 9: Problem Install zabbix-1.6.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Oslaes
    Junior Member
    • Jul 2009
    • 3

    #1

    Solaris 9: Problem Install zabbix-1.6.5

    Hi,
    I've some problem when try to lunch the script ./configure.
    If somebody have some suggestion i will be very happy..
    this is the command's syntax:

    $ ./configure --enable-server --with-mysql=/opt/csw/mysql5/bin/mysql_config --with-net-snmp --with-libcurl


    The output of the script its

    checking for mysql_config... /opt/csw/mysql5/bin/mysql_config
    checking for main in -lmysqlclient ... no






    This the config.log it was created by configure, which was
    generated by GNU Autoconf 2.61. Invocation command line was

    $ ./configure --enable-server --with-mysql=/opt/csw/mysql5/bin/mysql_config --with
    -net-snmp --with-libcurl

    ## --------- ##
    ## Platform. ##
    ## --------- ##

    hostname = RLMIUX060
    uname -m = sun4u
    ...skipping...
    LDFLAGS=' -L/opt/csw/lib/32 -L/opt/csw/mysql5/lib/sparcv8/mysql -L/opt/csw/lib'
    LIBCURL_CFLAGS=''
    LIBCURL_LDFLAGS=''
    LIBCURL_LIBS=''
    LIBOBJS=''
    LIBS='-lkvm -lm -lresolv -lnsl -lkstat -lsocket '
    LTLIBOBJS=''
    MAKEINFO='${SHELL} /_INSTALL/zabbix-1.6.5/missing --run makeinfo'
    MYSQL_CFLAGS='-I/opt/csw/mysql5/include/mysql -mt -D_FORTEC_ -xarch=v8 -D_FILE_O
    FFSET_BITS=64 -DHAVE_CURSES_H -DHAVE_RWLOCK_T'
    MYSQL_CONFIG='/opt/csw/mysql5/bin/mysql_config'
    MYSQL_LDFLAGS=' -L/opt/csw/lib/32 -L/opt/csw/mysql5/lib/sparcv8/mysql -L/opt/csw/lib
    '
    MYSQL_LIBS=''
    MYSQL_VERSION=''
    | /* confdefs.h. */
    | #define PACKAGE_NAME ""
    | #if defined __stub_getopt_long || defined __stub___getopt_long
    | choke me
    | #endif
    |
    | int
    | main ()
    | {
    | return getopt_long ();
    | ;
    | return 0;
    | }
    configure:8326: result: no
    configure:8778: checking for mysql_config
    configure:8809: result: /opt/csw/mysql5/bin/mysql_config
    configure:8924: checking for main in -lmysqlclient
    configure:8953: gcc -o conftest -g -O2 -I/opt/csw/mysql5/include/mysql -mt -D_FORTE
    C_ -xarch=v8 -D_FILE_OFFSET_BITS=64 -DHAVE_CURSES_H -DHAVE_RWLOCK_T -L/opt/cs
    w/lib/32 -L/opt/csw/mysql5/lib/sparcv8/mysql -L/opt/csw/lib conftest.c -lmysqlclient
    -lkvm -lm -lresolv -lnsl -lkstat -lsocket >&5
    gcc: language arch=v8 not recognized
    ld: fatal: file conftest.c: unknown file type
    ld: fatal: File processing errors. No output written to conftest
    collect2: ld returned 1 exit status
    configure:8959: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME ""
    | #define PACKAGE_TARNAME ""
    | #define PACKAGE_VERSION ""
    | #define PACKAGE_STRING ""
    | #define PACKAGE_BUGREPORT ""
    | #define PACKAGE "zabbix"
    | #define VERSION "1.6.5"
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    configure:8326: result: no
    configure:8778: checking for mysql_config
    configure:8809: result: /opt/csw/mysql5/bin/mysql_config
    configure:8924: checking for main in -lmysqlclient
    configure:8953: gcc -o conftest -g -O2 -I/opt/csw/mysql5/include/mysql -mt -D_FORTE
    C_ -xarch=v8 -D_FILE_OFFSET_BITS=64 -DHAVE_CURSES_H -DHAVE_RWLOCK_T -L/opt/cs
    w/lib/32 -L/opt/csw/mysql5/lib/sparcv8/mysql -L/opt/csw/lib conftest.c -lmysqlclient
    -lkvm -lm -lresolv -lnsl -lkstat -lsocket >&5
    gcc: language arch=v8 not recognized
    ld: fatal: file conftest.c: unknown file type
    ld: fatal: File processing errors. No output written to conftest
    collect2: ld returned 1 exit status
    configure:8959: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    [root@RLMIUX060]/# tail -f /_INSTALL/zabbix-1.6.5/config.log
    #define RETSIGTYPE void
    #define HAVE_GETLOADAVG 1
    #define HAVE_SOCKET 1
    #define HAVE_STRTOD 1
    #define HAVE_SNPRINTF 1
    #define HAVE_VSNPRINTF 1
    #define HAVE_HSTRERROR 1
    #define HAVE_ATOLL 1

    configure: exit 1
    ^[^[[6~^[[6~
    :Q
    | #define HAVE___VA_COPY 1
    | #define HAVE_SYS_SWAP_SWAPTABLE 1
    | #define HAVE_FUNCTION_INITGROUPS 1
    | #define HAVE_FUNCTION_SETEUID 1
    | #define HAVE___VA_ARGS__ 1
    | #define RETSIGTYPE void
    | #define HAVE_GETLOADAVG 1
    | #define HAVE_SOCKET 1
    | #define HAVE_STRTOD 1
    | #define HAVE_SNPRINTF 1
    | #define HAVE_VSNPRINTF 1
    | #define HAVE_HSTRERROR 1
    | #define HAVE_ATOLL 1
    | /* end confdefs.h. */
    |
    |
    | int
    | main ()
    | {
    | return main ();
    | ;
    | return 0;
    | }
    configure:8977: result: no
    configure:8985: error: Not found mysqlclient library

    Installed packages


    PKGINST: CSWmysql5
    PKGINST: CSWmysql5bench
    PKGINST: CSWmysql5client
    PKGINST: CSWmysql5devel
    PKGINST: CSWmysql5rt
    PKGINST: CSWmysql5test
    PKGINST: CSWpmdbdmysql


    Bye Bye Ale
  • Oslaes
    Junior Member
    • Jul 2009
    • 3

    #2
    Solved

    I'm solved the problem

    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.
    Reply With Quote

    NOW I HAVE ANOTHER PROBLEM WITH LIBCURL



    checking for hstrerror... yes
    checking for atoll... yes
    checking for getopt_long... no
    checking for mysql_config... /opt/csw/mysql5/bin/mysql_config
    checking for main in -lmysqlclient ... yes
    checking for function PQserverVersion()... no
    checking for ZABBIX server database selection... ok
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for gawk... (cached) nawk
    checking for curl-config... /opt/csw/bin/curl-config
    checking for the version of libcurl... 7.19.5
    checking for libcurl >= version 7.13.1... yes
    checking for main in -lcurl... no
    configure: error: Not found libcurl library



    this is my config.log

    |
    | int
    | main ()
    | {
    | return main ();
    | ;
    | return 0;
    | }
    configure:10135: result: no
    configure:10143: error: Not found libcurl library

    ## ---------------- ##
    ## Cache variables. ##
    ## ---------------- ##

    Comment

    • nmail_uk
      Member
      • May 2009
      • 65

      #3
      I had to manually force the configure flags for cURL on 1.6.5 on Solaris 10 and CentOS 5.3.

      CFLAGS="-I/path/to/curl" LDFLAGS="-L/path/to/curl -lcurl"

      Mine did get past configure though, but failed on make.

      Comment

      • Oslaes
        Junior Member
        • Jul 2009
        • 3

        #4
        Thanks to replied but i have also problems:
        I tried to modify the flags and lunch the script in this way:

        ./configure CFLAGS="-I/opt/csw/bin/curl" LDFLAGS="-L/opt/csw/bin -lcurl" --enable-server --with-mysql --with-net-snmp --with-libcurl


        checking for curl-config... /opt/csw/bin/curl-config
        checking for the version of libcurl... 7.19.5
        checking for libcurl >= version 7.13.1... yes
        checking for main in -lcurl... no
        configure: error: Not found libcurl library

        Bye

        Comment

        • nmail_uk
          Member
          • May 2009
          • 65

          #5
          Please zip up and post your config.log file after you run configure to get an error. I'll have a look and see what the actual error is.

          Comment

          • inacioalves
            Junior Member
            • Sep 2009
            • 2

            #6
            I am with the same problem.

            I use slackware 13 with pgsql8.4. I am send my config.log

            I would like to know why I'm not able to compile the source.

            Code:
            #curl-config --libs
            -lcurl -lidn -lssl -lcrypto -lldap -lrt -lssl -lcrypto -ldl -lz
            Attached Files

            Comment

            • vijaya.r85
              Junior Member
              • Apr 2009
              • 20

              #7
              Solaris 9: Problem Install zabbix-1.6.5

              Hi,

              Can you just give a try with
              env LDFLAGS=' -L/opt/curl/lib -L/usr/local/lib -L/opt/coolstack/lib/' \
              env CFLAGS=' -I/opt/curl/include -I/usr/local/include' \
              ./configure --prefix=/export/home/zabbix/server --enable-server \ --enable-agent --with-mysql --with-net-snmp=/opt/coolstack/bin/net-snmp-config --with-libcurl=/opt/curl/bin/curl-config

              Substitute the appropriate path accordingly and run this command.
              Hope it will help

              Regards,
              Vijaya

              Comment

              • inacioalves
                Junior Member
                • Sep 2009
                • 2

                #8
                Hi vijaya,

                thanks for your help. I'm compiling with
                Code:
                ./configure --enable-server --enable-agent --with-pgsql=/usr/local/pgsql/bin/pg_config --with-net-snmp --with-libcurl=/sbin/curl-config
                and I get the error in my config.log

                Comment

                Working...