Ad Widget

Collapse

Compile 1.4.2 on Solaris10 x86

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smsullivan
    Junior Member
    • Nov 2007
    • 11

    #1

    Compile 1.4.2 on Solaris10 x86

    Has anybody tried this yet. I have a fresh install of Solaris 10 x86 version installed and tried to install zabbix. I ran the ./configure with no errors. When I try to do make install I get the following
    Code:
    # make install
    Making install in create
    Making install in schema
    Making install in misc
    Making install in src
    Making install in libs
    Making install in zbxcrypto
    source='md5.c' object='md5.o' libtool=no \
    DEPDIR=.deps depmode=none /bin/bash ../../../depcomp \
    cc -DHAVE_CONFIG_H -I. -I. -I../../../include      -g -c md5.c
    source='base64.c' object='base64.o' libtool=no \
    DEPDIR=.deps depmode=none /bin/bash ../../../depcomp \
    cc -DHAVE_CONFIG_H -I. -I. -I../../../include      -g -c base64.c
    rm -f libzbxcrypto.a
    ar cru libzbxcrypto.a md5.o base64.o
    bash: ar: command not found
    *** Error code 127
    make: Fatal error: Command failed for target `libzbxcrypto.a'
    Current working directory /export/home/webops/Solaris Stuff/zabbix-1.4.2/src/libs/zbxcrypto
    *** Error code 1
    The following command caused the error:
    failcom='exit 1'; \
    for f in x $MAKEFLAGS; do \
      case $f in \
        *=* | --[!k]*);; \
        *k*) failcom='fail=yes';; \
      esac; \
    done; \
    dot_seen=no; \
    target=`echo install-recursive | sed s/-recursive//`; \
    list='zbxcrypto  zbxcommon  zbxlog  zbxnix  zbxconf  zbxsysinfo  zbxplugin  zbxsys  zbxcomms    '; for subdir in $list; do \
      echo "Making $target in $subdir"; \
      if test "$subdir" = "."; then \
        dot_seen=yes; \
        local_target="$target-am"; \
      else \
        local_target="$target"; \
      fi; \
      (cd $subdir && make  $local_target) \
      || eval $failcom; \
    done; \
    if test "$dot_seen" = "no"; then \
      make  "$target-am" || exit 1; \
    fi; test -z "$fail"
    make: Fatal error: Command failed for target `install-recursive'
    Current working directory /export/home/webops/Solaris Stuff/zabbix-1.4.2/src/libs
    *** Error code 1
    The following command caused the error:
    failcom='exit 1'; \
    for f in x $MAKEFLAGS; do \
      case $f in \
        *=* | --[!k]*);; \
        *k*) failcom='fail=yes';; \
      esac; \
    done; \
    dot_seen=no; \
    target=`echo install-recursive | sed s/-recursive//`; \
    list='libs    '; for subdir in $list; do \
      echo "Making $target in $subdir"; \
      if test "$subdir" = "."; then \
        dot_seen=yes; \
        local_target="$target-am"; \
      else \
        local_target="$target"; \
      fi; \
      (cd $subdir && make  $local_target) \
      || eval $failcom; \
    done; \
    if test "$dot_seen" = "no"; then \
      make  "$target-am" || exit 1; \
    fi; test -z "$fail"
    make: Fatal error: Command failed for target `install-recursive'
    Current working directory /export/home/webops/Solaris Stuff/zabbix-1.4.2/src
    *** Error code 1
    The following command caused the error:
    failcom='exit 1'; \
    for f in x $MAKEFLAGS; do \
      case $f in \
        *=* | --[!k]*);; \
        *k*) failcom='fail=yes';; \
      esac; \
    done; \
    dot_seen=no; \
    target=`echo install-recursive | sed s/-recursive//`; \
    list='create  misc  src  upgrades'; for subdir in $list; do \
      echo "Making $target in $subdir"; \
      if test "$subdir" = "."; then \
        dot_seen=yes; \
        local_target="$target-am"; \
      else \
        local_target="$target"; \
      fi; \
      (cd $subdir && make  $local_target) \
      || eval $failcom; \
    done; \
    if test "$dot_seen" = "no"; then \
      make  "$target-am" || exit 1; \
    fi; test -z "$fail"
    make: Fatal error: Command failed for target `install-recursive'
    #
  • jlofshult
    Junior Member
    • Mar 2007
    • 9

    #2
    Shawn,

    Check your PATH variable to make sure there is a path to the ar command. Check /usr/ccs/bin to see if it is there.

    Joe

    Comment

    • halomoan
      Junior Member
      • Jul 2007
      • 10

      #3
      Compile Zabbix 1.4.2 On Solaris10 x86 (mysql error)

      Hi Shawn

      I'm compiling Zabbix 1.4.2 on Solaris10 x86 too. But my error is about mysql.
      Are you using mysql also ? Is the mysql from Solaris CD or from http://www.blastwave.org/ packages ? Mine is from http://www.blastwave.org/ packages

      My error is:

      env CPPFLAGS='-I/opt/csw/mysql5/include/mysql/ -I/usr/sfw/include/ -I/opt/csw/include/' \
      LDFLAGS='-L/opt/csw/mysql5/lib/mysql/ -L/opt/csw/lib/ -L/usr/sfw/lib/' \
      ./configure --enable-server --with-mysql
      .
      .
      .
      checking for mysql_config... /opt/csw/mysql5/bin/mysql_config
      checking for main in -lmysqlclient ... no
      configure: error: Not found mysqlclient library


      Thank you.

      Regards,

      Halomoan

      Comment

      • smsullivan
        Junior Member
        • Nov 2007
        • 11

        #4
        Mine is from the Solaris CD.. So now I removed those downloaded them from sunfreeware and installed the package. I am now getting a compile error.

        I run the following command:
        configure --enable-server --with-mysql=/usr/local/mysql --with-libcurl --enable-agent

        I get this error:

        checking for getopt_long... yes
        checking for mysql_config... /usr/local/mysql
        configure: error: Not found MySQL library

        Comment

        • halomoan
          Junior Member
          • Jul 2007
          • 10

          #5
          try to set the correct search location for library in CPPFLAGS (include files) and LDFLAGS (lib files) before you start the ./configure

          the example that i have is like this:

          env CPPFLAGS='-I/opt/csw/mysql5/include/mysql/ -I/usr/sfw/include/ -I/opt/csw/include/' \
          LDFLAGS='-L/opt/csw/mysql5/lib/mysql/ -L/opt/csw/lib/ -L/usr/sfw/lib/' \
          ./configure --enable-server --with-mysql=/opt/csw/mysql5/lib/mysql/libmysqlclient.so

          Hope you success !

          Comment

          • smsullivan
            Junior Member
            • Nov 2007
            • 11

            #6
            Well I tried that and I still get the same error. All of my mysql is in /usr/local..
            I got the same error

            CPPFLAGS='-I/usr/local/mysql/include/mysql -I/usr/local/include' LDFLAGS='-L/usr/local/mysql/lib/mysql -L/usr/local/lib' ./configure --enable-server --with-mysql=/usr/local/mysql/lib/mysql/mysqlclient.so --with-libcurl --with-agent


            checking for mysql_config... /usr/local/mysql/lib/mysql/libmysqlcient.so
            configure: error: Not found MySQL library
            Last edited by smsullivan; 21-12-2007, 17:42.

            Comment

            • smsullivan
              Junior Member
              • Nov 2007
              • 11

              #7
              Okay. My path was wrong to my mysql_config. I got that figure now my make is crashing.
              Here is the output:

              Making all in create
              Making all in schema
              Making all in misc
              Making all in src
              Making all in libs
              Making all in zbxcrypto
              if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I/usr/local/mysql/include/mysql -g -O2 -I/usr/local/mysql/include/mysql -fpic -I/usr/local/include -MT md5.o -MD -MP -MF ".deps/md5.Tpo" -c -o md5.o md5.c; \
              then mv -f ".deps/md5.Tpo" ".deps/md5.Po"; else rm -f ".deps/md5.Tpo"; exit 1; fi
              In file included from /usr/include/sys/wait.h:42,
              from ../../../include/sysinc.h:156,
              from ../../../include/common.h:23,
              from md5.c:54:
              /usr/include/sys/siginfo.h:271: error: parse error before "ctid_t"
              /usr/include/sys/siginfo.h:304: error: parse error before '}' token
              /usr/include/sys/siginfo.h:306: error: parse error before '}' token
              /usr/include/sys/siginfo.h:402: error: parse error before "ctid_t"
              /usr/include/sys/siginfo.h:404: error: conflicting types for `__proc'
              /usr/include/sys/siginfo.h:273: error: previous declaration of `__proc'
              /usr/include/sys/siginfo.h:410: error: conflicting types for `__fault'
              /usr/include/sys/siginfo.h:279: error: previous declaration of `__fault'
              /usr/include/sys/siginfo.h:416: error: conflicting types for `__file'
              /usr/include/sys/siginfo.h:285: error: previous declaration of `__file'
              /usr/include/sys/siginfo.h:432: error: conflicting types for `__prof'
              /usr/include/sys/siginfo.h:299: error: previous declaration of `__prof'
              /usr/include/sys/siginfo.h:436: error: conflicting types for `__rctl'
              /usr/include/sys/siginfo.h:303: error: previous declaration of `__rctl'
              /usr/include/sys/siginfo.h:438: error: parse error before '}' token
              /usr/include/sys/siginfo.h:440: error: parse error before '}' token
              /usr/include/sys/siginfo.h:444: error: parse error before "k_siginfo_t"
              /usr/include/sys/siginfo.h:449: error: parse error before '}' token
              In file included from /usr/include/sys/procset.h:42,
              from /usr/include/sys/wait.h:43,
              from ../../../include/sysinc.h:156,
              from ../../../include/common.h:23,
              from md5.c:54:
              /usr/include/sys/signal.h:112: error: parse error before "siginfo_t"
              In file included from ../../../include/sysinc.h:156,
              from ../../../include/common.h:23,
              from md5.c:54:
              /usr/include/sys/wait.h:104: error: parse error before "siginfo_t"
              In file included from ../../../include/sysinc.h:168,
              from ../../../include/common.h:23,
              from md5.c:54:
              /usr/include/signal.h:129: error: parse error before "siginfo_t"
              /usr/include/signal.h:131: error: parse error before "siginfo_t"
              In file included from /usr/include/sys/klwp.h:41,
              from /usr/include/sys/thread.h:34,
              from /usr/include/sys/proc.h:37,
              from ../../../include/sysinc.h:184,
              from ../../../include/common.h:23,
              from md5.c:54:
              /usr/include/sys/contract.h:79: error: parse error before "ctid_t"
              /usr/include/sys/contract.h:89: error: parse error before '}' token
              /usr/include/sys/contract.h:92: error: parse error before "ctid_t"
              /usr/include/sys/contract.h:107: error: parse error before '}' token
              In file included from /usr/include/sys/thread.h:34,
              from /usr/include/sys/proc.h:37,
              from ../../../include/sysinc.h:184,
              from ../../../include/common.h:23,
              from md5.c:54:
              /usr/include/sys/klwp.h:116: error: parse error before "k_siginfo_t"
              /usr/include/sys/klwp.h:193: error: parse error before '}' token
              In file included from /usr/include/sys/proc.h:37,
              from ../../../include/sysinc.h:184,
              from ../../../include/common.h:23,
              from md5.c:54:
              /usr/include/sys/thread.h:166: error: parse error before "klwp_t"
              /usr/include/sys/thread.h:340: error: parse error before '}' token
              In file included from ../../../include/sysinc.h:184,
              from ../../../include/common.h:23,
              from md5.c:54:
              /usr/include/sys/proc.h:79: error: parse error before "kthread_t"
              /usr/include/sys/proc.h:85: error: parse error before '}' token
              /usr/include/sys/proc.h:211: error: parse error before "kthread_t"
              /usr/include/sys/proc.h:228: error: parse error before '*' token
              /usr/include/sys/proc.h:326: error: parse error before '*' token
              /usr/include/sys/proc.h:348: error: parse error before '}' token
              In file included from ../../../include/sysinc.h:190,
              from ../../../include/common.h:23,
              from md5.c:54:
              /usr/include/sys/procfs.h:129: error: parse error before "siginfo_t"
              /usr/include/sys/procfs.h:151: error: parse error before '}' token
              /usr/include/sys/procfs.h:185: error: parse error before "lwpstatus_t"
              In file included from ../../../include/sysinc.h:274,
              from ../../../include/common.h:23,
              from md5.c:54:
              /usr/include/kvm.h:65: error: parse error before '*' token
              /usr/include/kvm.h:66: error: parse error before '*' token
              /usr/include/kvm.h:69: error: parse error before "proc_t"
              *** Error code 1
              make: Fatal error: Command failed for target `md5.o'
              Current working directory /export/home/webops/programs/zabbix-1.4.4/src/libs/zbxcrypto
              *** Error code 1
              The following command caused the error:
              failcom='exit 1'; \
              for f in x $MAKEFLAGS; do \
              case $f in \
              *=* | --[!k]*);; \
              *k*) failcom='fail=yes';; \
              esac; \
              done; \
              dot_seen=no; \
              target=`echo all-recursive | sed s/-recursive//`; \
              list='zbxcrypto zbxcommon zbxlog zbxnix zbxconf zbxsysinfo zbxplugin zbxsys zbxcomms zbxdb zbxdbhigh zbxemail zbxsms'; for subdir in $list; do \
              echo "Making $target in $subdir"; \
              if test "$subdir" = "."; then \
              dot_seen=yes; \
              local_target="$target-am"; \
              else \
              local_target="$target"; \
              fi; \
              (cd $subdir && make $local_target) \
              || eval $failcom; \
              done; \
              if test "$dot_seen" = "no"; then \
              make "$target-am" || exit 1; \
              fi; test -z "$fail"
              make: Fatal error: Command failed for target `all-recursive'
              Current working directory /export/home/webops/programs/zabbix-1.4.4/src/libs
              *** Error code 1
              The following command caused the error:
              failcom='exit 1'; \
              for f in x $MAKEFLAGS; do \
              case $f in \
              *=* | --[!k]*);; \
              *k*) failcom='fail=yes';; \
              esac; \
              done; \
              dot_seen=no; \
              target=`echo all-recursive | sed s/-recursive//`; \
              list='libs zabbix_server'; for subdir in $list; do \
              echo "Making $target in $subdir"; \
              if test "$subdir" = "."; then \
              dot_seen=yes; \
              local_target="$target-am"; \
              else \
              local_target="$target"; \
              fi; \
              (cd $subdir && make $local_target) \
              || eval $failcom; \
              done; \
              if test "$dot_seen" = "no"; then \
              make "$target-am" || exit 1; \
              fi; test -z "$fail"
              make: Fatal error: Command failed for target `all-recursive'
              Current working directory /export/home/webops/programs/zabbix-1.4.4/src
              *** Error code 1
              The following command caused the error:
              failcom='exit 1'; \
              for f in x $MAKEFLAGS; do \
              case $f in \
              *=* | --[!k]*);; \
              *k*) failcom='fail=yes';; \
              esac; \
              done; \
              dot_seen=no; \
              target=`echo all-recursive | sed s/-recursive//`; \
              list='create misc src upgrades'; for subdir in $list; do \
              echo "Making $target in $subdir"; \
              if test "$subdir" = "."; then \
              dot_seen=yes; \
              local_target="$target-am"; \
              else \
              local_target="$target"; \
              fi; \
              (cd $subdir && make $local_target) \
              || eval $failcom; \
              done; \
              if test "$dot_seen" = "no"; then \
              make "$target-am" || exit 1; \
              fi; test -z "$fail"
              make: Fatal error: Command failed for target `all-recursive'

              Comment

              • nate015
                Junior Member
                • Jun 2009
                • 6

                #8
                Did you ever get this resolved?

                Comment

                Working...