2 Replies Latest reply on Oct 19, 2017 10:39 AM by sugar2

    I can't compile (gcc) in solaris 11.3 non global zone, please help (thanks in advance)

    sugar2

      I can't compile anything, the final make error says "Command failed for target `install-recursive'", but I am not able to identify the root cause of that error, I tried with cc, gcc 4.5, also gcc 5.2, using make, using gmake 3.82, ld 5.11, gld 2.31... and I am totally stuck yet... please help, to find the cause of the error I will really appreciate it.

       

      Its a solaris non-global zone., I read in another post that the error could be the linker, and suggested to use the gnu one, well, I tried with the ld and gld flags, and still getting very similar error in make:

      The output of make says: (however I am not able to interpret that reason, so I don't know how to resolve the cause of the error:

      fail=; \

      if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_with_option: internal error: invalid"  "target option '${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  sane_makeflags=$MAKEFLAGS;  if test -n '' && test -n '1'; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \ ]*)  bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs     ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test $skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  -*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dEDm]) skip_next=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \

        failcom='fail=yes'; \

      else \

        failcom='exit 1'; \

      fi; \

       

       

      Here the full output of what I am trying to compile (zabbix source code but it fails with any other source that I have tried),

       

      Note: for config I used this command: ./configure --enable-server --enable-proxy --enable-agent --enable-java --enable-ipv6 --with-mysql --with-libxml2 --with-unixodbc --with-net-snmp --with-ssh2 --with-openipmi=/usr/local --with-libevent --with-libpcre --with-libcurl --with-iconv

      and for make I used this command: make install

       

       

      by the way here the full outputs:

      config:

      root@monitor:/export/home/aldo/zabbix-3.4.2# ./configure --enable-server --enable-proxy --enable-agent --enable-java --enable-ipv6 --with-mysql --with-libxml2 --with-unixodbc --with-net-snmp --with-ssh2 --with-openipmi=/usr/local --with-libevent --with-libpcre --with-libcurl --with-iconv

      checking for a BSD-compatible install... /usr/bin/ginstall -c

      checking whether build environment is sane... yes

      checking for a thread-safe mkdir -p... /usr/bin/gmkdir -p

      checking for gawk... gawk

      checking whether make sets $(MAKE)... yes

      checking whether make supports nested variables... yes

      configure: Configuring Zabbix 3.4.2

      checking whether make sets $(MAKE)... (cached) yes

      checking build system type... i386-pc-solaris2.11

      checking host system type... i386-pc-solaris2.11

      checking for gcc... gcc

      checking whether the C compiler works... yes

      checking for C compiler default output file name... a.out

      checking for suffix of executables...

      checking whether we are cross compiling... no

      checking for suffix of object files... o

      checking whether we are using the GNU C compiler... yes

      checking whether gcc accepts -g... yes

      checking for gcc option to accept ISO C89... none needed

      checking whether gcc understands -c and -o together... yes

      checking for style of include used by make... GNU

      checking dependency style of gcc... gcc3

      checking how to run the C preprocessor... gcc -E

      checking for grep that handles long lines and -e... /usr/bin/ggrep

      checking for egrep... /usr/bin/ggrep -E

      checking for ANSI C header files... yes

      checking for sys/types.h... yes

      checking for sys/stat.h... yes

      checking for stdlib.h... yes

      checking for string.h... yes

      checking for memory.h... yes

      checking for strings.h... yes

      checking for inttypes.h... yes

      checking for stdint.h... yes

      checking for unistd.h... yes

      checking stdio.h usability... yes

      checking stdio.h presence... yes

      checking for stdio.h... yes

      checking for stdlib.h... (cached) yes

      checking for string.h... (cached) yes

      checking for unistd.h... (cached) yes

      checking netdb.h usability... yes

      checking netdb.h presence... yes

      checking for netdb.h... yes

      checking signal.h usability... yes

      checking signal.h presence... yes

      checking for signal.h... yes

      checking syslog.h usability... yes

      checking syslog.h presence... yes

      checking for syslog.h... yes

      checking time.h usability... yes

      checking time.h presence... yes

      checking for time.h... yes

      checking errno.h usability... yes

      checking errno.h presence... yes

      checking for errno.h... yes

      checking for sys/types.h... (cached) yes

      checking for sys/stat.h... (cached) yes

      checking netinet/in.h usability... yes

      checking netinet/in.h presence... yes

      checking for netinet/in.h... yes

      checking math.h usability... yes

      checking math.h presence... yes

      checking for math.h... yes

      checking sys/socket.h usability... yes

      checking sys/socket.h presence... yes

      checking for sys/socket.h... yes

      checking dirent.h usability... yes

      checking dirent.h presence... yes

      checking for dirent.h... yes

      checking ctype.h usability... yes

      checking ctype.h presence... yes

      checking for ctype.h... yes

      checking mtent.h usability... no

      checking mtent.h presence... no

      checking for mtent.h... no

      checking fcntl.h usability... yes

      checking fcntl.h presence... yes

      checking for fcntl.h... yes

      checking sys/param.h usability... yes

      checking sys/param.h presence... yes

      checking for sys/param.h... yes

      checking arpa/inet.h usability... yes

      checking arpa/inet.h presence... yes

      checking for arpa/inet.h... yes

      checking sys/vfs.h usability... yes

      checking sys/vfs.h presence... yes

      checking for sys/vfs.h... yes

      checking sys/pstat.h usability... no

      checking sys/pstat.h presence... no

      checking for sys/pstat.h... no

      checking sys/sysinfo.h usability... yes

      checking sys/sysinfo.h presence... yes

      checking for sys/sysinfo.h... yes

      checking sys/statvfs.h usability... yes

      checking sys/statvfs.h presence... yes

      checking for sys/statvfs.h... yes

      checking sys/statfs.h usability... yes

      checking sys/statfs.h presence... yes

      checking for sys/statfs.h... yes

      checking for sys/socket.h... (cached) yes

      checking sys/loadavg.h usability... yes

      checking sys/loadavg.h presence... yes

      checking for sys/loadavg.h... yes

      checking for arpa/inet.h... (cached) yes

      checking sys/vmmeter.h usability... no

      checking sys/vmmeter.h presence... no

      checking for sys/vmmeter.h... no

      checking for strings.h... (cached) yes

      checking vm/vm_param.h usability... no

      checking vm/vm_param.h presence... no

      checking for vm/vm_param.h... no

      checking sys/time.h usability... yes

      checking sys/time.h presence... yes

      checking for sys/time.h... yes

      checking kstat.h usability... yes

      checking kstat.h presence... yes

      checking for kstat.h... yes

      checking sys/syscall.h usability... yes

      checking sys/syscall.h presence... yes

      checking for sys/syscall.h... yes

      checking sys/sysmacros.h usability... yes

      checking sys/sysmacros.h presence... yes

      checking for sys/sysmacros.h... yes

      checking for stdint.h... (cached) yes

      checking mach/host_info.h usability... no

      checking mach/host_info.h presence... no

      checking for mach/host_info.h... no

      checking mach/mach_host.h usability... no

      checking mach/mach_host.h presence... no

      checking for mach/mach_host.h... no

      checking knlist.h usability... no

      checking knlist.h presence... no

      checking for knlist.h... no

      checking pwd.h usability... yes

      checking pwd.h presence... yes

      checking for pwd.h... yes

      checking sys/var.h usability... yes

      checking sys/var.h presence... yes

      checking for sys/var.h... yes

      checking arpa/nameser.h usability... yes

      checking arpa/nameser.h presence... yes

      checking for arpa/nameser.h... yes

      checking assert.h usability... yes

      checking assert.h presence... yes

      checking for assert.h... yes

      checking sys/dkstat.h usability... no

      checking sys/dkstat.h presence... no

      checking for sys/dkstat.h... no

      checking sys/disk.h usability... no

      checking sys/disk.h presence... no

      checking for sys/disk.h... no

      checking sys/sched.h usability... no

      checking sys/sched.h presence... no

      checking for sys/sched.h... no

      checking zone.h usability... yes

      checking zone.h presence... yes

      checking for zone.h... yes

      checking nlist.h usability... yes

      checking nlist.h presence... yes

      checking for nlist.h... yes

      checking kvm.h usability... yes

      checking kvm.h presence... yes

      checking for kvm.h... yes

      checking linux/kernel.h usability... no

      checking linux/kernel.h presence... no

      checking for linux/kernel.h... no

      checking procinfo.h usability... no

      checking procinfo.h presence... no

      checking for procinfo.h... no

      checking sys/dk.h usability... no

      checking sys/dk.h presence... no

      checking for sys/dk.h... no

      checking sys/resource.h usability... yes

      checking sys/resource.h presence... yes

      checking for sys/resource.h... yes

      checking pthread.h usability... yes

      checking pthread.h presence... yes

      checking for pthread.h... yes

      checking windows.h usability... no

      checking windows.h presence... no

      checking for windows.h... no

      checking process.h usability... no

      checking process.h presence... no

      checking for process.h... no

      checking conio.h usability... no

      checking conio.h presence... no

      checking for conio.h... no

      checking sys/wait.h usability... yes

      checking sys/wait.h presence... yes

      checking for sys/wait.h... yes

      checking pcreposix.h usability... yes

      checking pcreposix.h presence... yes

      checking for pcreposix.h... yes

      checking stdarg.h usability... yes

      checking stdarg.h presence... yes

      checking for stdarg.h... yes

      checking winsock2.h usability... no

      checking winsock2.h presence... no

      checking for winsock2.h... no

      checking pdh.h usability... no

      checking pdh.h presence... no

      checking for pdh.h... no

      checking psapi.h usability... no

      checking psapi.h presence... no

      checking for psapi.h... no

      checking sys/sem.h usability... yes

      checking sys/sem.h presence... yes

      checking for sys/sem.h... yes

      checking sys/ipc.h usability... yes

      checking sys/ipc.h presence... yes

      checking for sys/ipc.h... yes

      checking sys/shm.h usability... yes

      checking sys/shm.h presence... yes

      checking for sys/shm.h... yes

      checking Winldap.h usability... no

      checking Winldap.h presence... no

      checking for Winldap.h... no

      checking Winber.h usability... no

      checking Winber.h presence... no

      checking for Winber.h... no

      checking lber.h usability... yes

      checking lber.h presence... yes

      checking for lber.h... yes

      checking ws2tcpip.h usability... no

      checking ws2tcpip.h presence... no

      checking for ws2tcpip.h... no

      checking for inttypes.h... (cached) yes

      checking sys/file.h usability... yes

      checking sys/file.h presence... yes

      checking for sys/file.h... yes

      checking grp.h usability... yes

      checking grp.h presence... yes

      checking for grp.h... yes

      checking execinfo.h usability... yes

      checking execinfo.h presence... yes

      checking for execinfo.h... yes

      checking libperfstat.h usability... no

      checking libperfstat.h presence... no

      checking for libperfstat.h... no

      checking sys/systemcfg.h usability... no

      checking sys/systemcfg.h presence... no

      checking for sys/systemcfg.h... no

      checking sys/mnttab.h usability... yes

      checking sys/mnttab.h presence... yes

      checking for sys/mnttab.h... yes

      checking mntent.h usability... no

      checking mntent.h presence... no

      checking for mntent.h... no

      checking sys/times.h usability... yes

      checking sys/times.h presence... yes

      checking for sys/times.h... yes

      checking dlfcn.h usability... yes

      checking dlfcn.h presence... yes

      checking for dlfcn.h... yes

      checking sys/utsname.h usability... yes

      checking sys/utsname.h presence... yes

      checking for sys/utsname.h... yes

      checking sys/un.h usability... yes

      checking sys/un.h presence... yes

      checking for sys/un.h... yes

      checking event.h usability... yes

      checking event.h presence... yes

      checking for event.h... yes

      checking for resolv.h... yes

      checking for net/if.h... yes

      checking for net/if_mib.h... no

      checking for sys/mount.h... yes

      checking for sys/proc.h... yes

      checking for sys/sysctl.h... no

      checking for sys/user.h... yes

      checking for sys/swap.h... yes

      checking for sys/ucontext.h... yes

      checking for devstat.h... no

      checking for linux/netlink.h... no

      checking for library containing socket... -lsocket

      checking for library containing kstat_open... -lkstat

      checking for library containing gethostbyname... -lnsl

      checking for library containing clock_gettime... none required

      checking for library containing dlopen... none required

      checking for library containing perfstat_memory_total... no

      checking for library containing devstat_getdevs... no

      checking for library containing getdevs... no

      checking for library containing backtrace_symbols... none required

      checking for main in -lm... yes

      checking for main in -lkvm... yes

      checking for DNS lookup functions... yes

      checking for an ANSI C-conforming const... yes

      checking for pid_t... yes

      checking for socklen_t... yes

      checking for actual socklen_t parameter type in socket functions... socklen_t

      checking for integer field name in union sigval of struct siginfo_t... sival_int

      checking for union semun... no

      checking for struct swaptable in sys/swap.h... yes

      checking for struct sensordev in sys/sensors.h... no

      checking for struct statvfs64 in sys/statvfs.h... yes

      checking for struct statfs64 in sys/statfs.h... no

      checking for field ss_family in struct sockaddr_storage... yes

      checking for field mem_unit in struct sysinfo... no

      checking for field freeswap in struct sysinfo... no

      checking for field totalswap in struct sysinfo... no

      checking for field totalram in struct sysinfo... no

      checking for field sharedram in struct sysinfo... no

      checking for field bufferram in struct sysinfo... no

      checking for field freeram in struct sysinfo... no

      checking for field uptime in struct sysinfo... no

      checking for field procs in struct sysinfo... no

      checking for field tm_gmtoff in struct tm... no

      checking for function sysconf() in unistd.h... yes

      checking for function initgroups()... yes

      checking for functions seteuid() and setegid()... yes

      checking for function setproctitle()... no

      checking for function sysctlbyname()... no

      checking for function sysctl (KERN_BOOTTIME)... no

      checking for function sysctl (HW_NCPU)... no

      checking for function sysctl (KERN_MAXFILES)... no

      checking for function sysctl (KERN_MAXPROC)... no

      checking for function sysctl (KERN_CPTIME,KERN_CPTIME2)... no

      checking for function clock_gettime in time.h... yes

      checking for macro __va_copy() in stdarg.h... yes

      checking for macro __VA_ARGS__... yes

      checking return type of signal handlers... void

      checking for getloadavg... yes

      checking for hstrerror... yes

      checking for getenv... yes

      checking for putenv... yes

      checking for sigqueue... yes

      checking for /proc filesystem... yes

      checking for file /proc/stat... no

      checking for file /proc/cpuinfo... no

      checking for file /proc/0/psinfo... no

      checking for file /proc/loadavg... no

      checking for file /proc/net/dev... no

      checking for long long format... no

      checking for -rdynamic linking option... yes

      checking for libperfstat 5.2.0.40 fileset... no

      checking for libperfstat 5.3.0.60 fileset... no

      checking for architecture... solaris (solaris2.11)

      checking for -m64 compilation flag... yes

      checking size of void *... 8

      checking for mysql_config... /opt/csw/bin/mysql_config

      checking for main in -lmysqlclient... yes

      checking for Oracle support... no

      checking for Zabbix server/proxy database selection... ok

      checking for multirow insert statements... yes

      checking for pkg-config... no

      checking for xml2-config... /usr/bin/xml2-config

      checking for xmlReadMemory in -lxml2... yes

      checking for odbc_config... /usr/bin/odbc_config

      checking for SQLAllocHandle in -lodbc... yes

      checking for net-snmp-config... /usr/bin/net-snmp-config

      checking for main in -lnetsnmp... yes

      checking for localname in struct snmp_session... yes

      checking for SSH2 support... yes

      checking for OPENIPMI support... yes

      checking for libevent support... yes

      checking for libpcre support... yes

      checking for javac... javac

      checking for jar... jar

      checking for gawk... (cached) gawk

      checking for curl-config... /usr/bin/curl-config

      checking for the version of libcurl... 7.40.0

      checking for libcurl >= version 7.13.1... yes

      checking for main in -lcurl... yes

      checking whether libcurl is usable... yes

      checking for curl_free... yes

      checking for curl_easy_escape... yes

      checking for ICONV support... yes

      checking for mkdir -p candidate... ok (/usr/bin/gmkdir -p)

      checking that generated files are newer than configure... done

      configure: creating ./config.status

      config.status: creating Makefile

      config.status: creating database/Makefile

      config.status: creating misc/Makefile

      config.status: creating src/Makefile

      config.status: creating src/libs/Makefile

      config.status: creating src/libs/zbxlog/Makefile

      config.status: creating src/libs/zbxalgo/Makefile

      config.status: creating src/libs/zbxmemory/Makefile

      config.status: creating src/libs/zbxcrypto/Makefile

      config.status: creating src/libs/zbxconf/Makefile

      config.status: creating src/libs/zbxdbcache/Makefile

      config.status: creating src/libs/zbxdbhigh/Makefile

      config.status: creating src/libs/zbxmedia/Makefile

      config.status: creating src/libs/zbxsysinfo/Makefile

      config.status: creating src/libs/zbxcommon/Makefile

      config.status: creating src/libs/zbxsysinfo/agent/Makefile

      config.status: creating src/libs/zbxsysinfo/common/Makefile

      config.status: creating src/libs/zbxsysinfo/simple/Makefile

      config.status: creating src/libs/zbxsysinfo/linux/Makefile

      config.status: creating src/libs/zbxsysinfo/aix/Makefile

      config.status: creating src/libs/zbxsysinfo/freebsd/Makefile

      config.status: creating src/libs/zbxsysinfo/hpux/Makefile

      config.status: creating src/libs/zbxsysinfo/openbsd/Makefile

      config.status: creating src/libs/zbxsysinfo/osx/Makefile

      config.status: creating src/libs/zbxsysinfo/solaris/Makefile

      config.status: creating src/libs/zbxsysinfo/osf/Makefile

      config.status: creating src/libs/zbxsysinfo/netbsd/Makefile

      config.status: creating src/libs/zbxsysinfo/unknown/Makefile

      config.status: creating src/libs/zbxnix/Makefile

      config.status: creating src/libs/zbxsys/Makefile

      config.status: creating src/libs/zbxcomms/Makefile

      config.status: creating src/libs/zbxcommshigh/Makefile

      config.status: creating src/libs/zbxdb/Makefile

      config.status: creating src/libs/zbxdbupgrade/Makefile

      config.status: creating src/libs/zbxjson/Makefile

      config.status: creating src/libs/zbxhttp/Makefile

      config.status: creating src/libs/zbxserver/Makefile

      config.status: creating src/libs/zbxicmpping/Makefile

      config.status: creating src/libs/zbxexec/Makefile

      config.status: creating src/libs/zbxself/Makefile

      config.status: creating src/libs/zbxmodules/Makefile

      config.status: creating src/libs/zbxregexp/Makefile

      config.status: creating src/libs/zbxtasks/Makefile

      config.status: creating src/libs/zbxipcservice/Makefile

      config.status: creating src/zabbix_agent/Makefile

      config.status: creating src/zabbix_get/Makefile

      config.status: creating src/zabbix_sender/Makefile

      config.status: creating src/zabbix_server/Makefile

      config.status: creating src/zabbix_server/alerter/Makefile

      config.status: creating src/zabbix_server/dbsyncer/Makefile

      config.status: creating src/zabbix_server/dbconfig/Makefile

      config.status: creating src/zabbix_server/discoverer/Makefile

      config.status: creating src/zabbix_server/housekeeper/Makefile

      config.status: creating src/zabbix_server/httppoller/Makefile

      config.status: creating src/zabbix_server/pinger/Makefile

      config.status: creating src/zabbix_server/poller/Makefile

      config.status: creating src/zabbix_server/snmptrapper/Makefile

      config.status: creating src/zabbix_server/timer/Makefile

      config.status: creating src/zabbix_server/trapper/Makefile

      config.status: creating src/zabbix_server/escalator/Makefile

      config.status: creating src/zabbix_server/proxypoller/Makefile

      config.status: creating src/zabbix_server/selfmon/Makefile

      config.status: creating src/zabbix_server/vmware/Makefile

      config.status: creating src/zabbix_server/taskmanager/Makefile

      config.status: creating src/zabbix_server/ipmi/Makefile

      config.status: creating src/zabbix_server/scripts/Makefile

      config.status: creating src/zabbix_server/preprocessor/Makefile

      config.status: creating src/zabbix_proxy/Makefile

      config.status: creating src/zabbix_proxy/heart/Makefile

      config.status: creating src/zabbix_proxy/housekeeper/Makefile

      config.status: creating src/zabbix_proxy/proxyconfig/Makefile

      config.status: creating src/zabbix_proxy/datasender/Makefile

      config.status: creating src/zabbix_proxy/taskmanager/Makefile

      config.status: creating src/zabbix_java/Makefile

      config.status: creating upgrades/Makefile

      config.status: creating man/Makefile

      config.status: creating include/config.h

      config.status: include/config.h is unchanged

      config.status: executing depfiles commands

       

       

       

       

      Configuration:

       

       

        Detected OS:           solaris2.11

        Install path:          /usr/local

        Compilation arch:      solaris

       

       

        Compiler:              gcc

        Compiler flags:         -m64 -g -O2 -Iyes/include

       

       

        Library-specific flags:

          database:               -I/opt/csw/include/mysql -m32 -fPIC  -g -fabi-version=2

          libXML2:               -I/usr/include/libxml2

          unixODBC:              -I/usr/include/odbc

          Net-SNMP:               -I. -I/usr/include

          OpenIPMI:              -I/usr/local/include

          libssh2:               -I/usr/include

          iconv:                 -I/yes/include

       

       

        Enable server:         yes

        Server details:

          With database:         MySQL

          WEB Monitoring:        cURL

          Native Jabber:         no

          SNMP:                  yes

          IPMI:                  yes

          SSH:                   yes

          TLS:                   no

          ODBC:                  yes

          Linker flags:             -L/opt/csw/lib      -L/usr/lib  -L/usr/lib -L/usr/lib -L/usr/local/lib -Lyes/lib    -rdynamic  -Lyes/lib -L/yes/lib

          Libraries:               -lmysqlclient      -lxml2  -lodbc  -lnetsnmp -lssh2 -lOpenIPMI -lOpenIPMIposix -levent    -lcurl -lidn -lssl -lcrypto -lssl -lcrypto -lgss -llber-2.4 -lldap_r-2.4 -lz -lsocket -lnsl -lkvm -lm -lnsl -lkstat -lsocket  -lresolv -lpcreposix -lpcre

       

       

        Enable proxy:          yes

        Proxy details:

          With database:         MySQL

          WEB Monitoring:        cURL

          SNMP:                  yes

          IPMI:                  yes

          SSH:                   yes

          TLS:                   no

          ODBC:                  yes

          Linker flags:             -L/opt/csw/lib     -L/usr/lib  -L/usr/lib -L/usr/lib -L/usr/local/lib -Lyes/lib    -rdynamic  -Lyes/lib -L/yes/lib

          Libraries:               -lmysqlclient     -lxml2  -lodbc  -lnetsnmp -lssh2 -lOpenIPMI -lOpenIPMIposix -levent    -lcurl -lidn -lssl -lcrypto -lssl -lcrypto -lgss -llber-2.4 -lldap_r-2.4 -lz -lsocket -lnsl -lkvm -lm -lnsl -lkstat -lsocket  -lresolv -lpcreposix -lpcre

       

       

        Enable agent:          yes

        Agent details:

          TLS:                   no

          Linker flags:              -rdynamic  -Lyes/lib -L/yes/lib

          Libraries:                 -lcurl -lidn -lssl -lcrypto -lssl -lcrypto -lgss -llber-2.4 -lldap_r-2.4 -lz -lsocket -lnsl -lkvm -lm -lnsl -lkstat -lsocket  -lresolv -lpcreposix -lpcre

       

       

        Enable Java gateway:   yes

        Java gateway details:

          Java compiler:         javac

          Java archiver:         jar

       

       

        LDAP support:          no

        IPv6 support:          yes

       

       

      ***********************************************************

      *            Now run 'make install'                       *

      *                                                         *

      *            Thank you for using Zabbix!                  *

      *              <http://www.zabbix.com>                    *

      ***********************************************************

       

       

       

       

      Here is the make output:

      root@monitor:/export/home/aldo/zabbix-3.4.2# make install

      Making install in src

      Making install in libs

      Making install in zbxcrypto

      Making install in zbxcommon

      Making install in zbxlog

      Making install in zbxalgo

      Making install in zbxnix

      Making install in zbxconf

      Making install in zbxhttp

      Making install in zbxsysinfo

      Making install in agent

      Making install in common

      Making install in simple

      Making install in solaris

      Making install in zbxsys

      Making install in zbxcomms

      Making install in zbxjson

      Making install in zbxexec

      Making install in zbxmodules

      Making install in zbxregexp

      Making install in zbxipcservice

      Making install in zbxcommshigh

      Making install in zbxdb

      Making install in zbxdbupgrade

      Making install in zbxdbcache

      Making install in zbxdbhigh

      Making install in zbxhttp

      Making install in zbxmemory

      Making install in zbxserver

      Making install in zbxicmpping

      Making install in zbxmedia

      Making install in zbxself

      Making install in zbxtasks

      Making install in zabbix_agent

      /usr/bin/gmkdir -p '/usr/local/sbin'

        /usr/bin/ginstall -c zabbix_agentd '/usr/local/sbin'

      make  install-data-hook

      /usr/bin/gmkdir -p "/usr/local/etc/zabbix_agentd.conf.d"

      /usr/bin/gmkdir -p "/usr/local/lib"

      test -f "/usr/local/etc/zabbix_agentd.conf" || cp "../../conf/zabbix_agentd.conf" "/usr/local/etc"

      Making install in zabbix_get

      /usr/bin/gmkdir -p '/usr/local/bin'

        /usr/bin/ginstall -c zabbix_get '/usr/local/bin'

      Making install in zabbix_sender

      /usr/bin/gmkdir -p '/usr/local/bin'

        /usr/bin/ginstall -c zabbix_sender '/usr/local/bin'

      Making install in zabbix_server

      Making install in alerter

      Making install in dbsyncer

      Making install in dbconfig

      Making install in discoverer

      Making install in housekeeper

      Making install in httppoller

      Making install in pinger

      Making install in poller

      Making install in snmptrapper

      Making install in timer

      Making install in trapper

      Making install in escalator

      Making install in proxypoller

      Making install in selfmon

      Making install in vmware

      Making install in taskmanager

      Making install in ipmi

      Making install in scripts

      Making install in preprocessor

      gcc -DZABBIX_DAEMON  -DSYSCONFDIR="\"/usr/local/etc\""  -DDATADIR="\"/usr/local/share\""  -DLIBDIR="\"/usr/local/lib\""  -I../../src/libs/zbxdbcache -m64 -g -O2 -Iyes/include  -L/opt/csw/lib      -L/usr/lib  -L/usr/lib -L/usr/lib -L/usr/local/lib -Lyes/lib -rdynamic  -Lyes/lib -L/yes/lib -o zabbix_server zabbix_server-actions.o  zabbix_server-operations.o  zabbix_server-events.o zabbix_server-server.o   alerter/libzbxalerter.a  dbsyncer/libzbxdbsyncer.a dbconfig/libzbxdbconfig.a  discoverer/libzbxdiscoverer.a pinger/libzbxpinger.a  poller/libzbxpoller.a housekeeper/libzbxhousekeeper.a  timer/libzbxtimer.a trapper/libzbxtrapper.a  snmptrapper/libzbxsnmptrapper.a httppoller/libzbxhttppoller.a  escalator/libzbxescalator.a proxypoller/libzbxproxypoller.a  selfmon/libzbxselfmon.a vmware/libzbxvmware.a  taskmanager/libzbxtaskmanager.a ipmi/libipmi.a  scripts/libzbxscripts.a preprocessor/libpreprocessor.a  ../../src/libs/zbxsysinfo/libzbxserversysinfo.a  ../../src/libs/zbxsysinfo/common/libcommonsysinfo.a  ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a  ../../src/libs/zbxlog/libzbxlog.a  ../../src/libs/zbxserver/libzbxserver.a  ../../src/libs/zbxdbcache/libzbxdbcache.a  ../../src/libs/zbxmemory/libzbxmemory.a  ../../src/libs/zbxregexp/libzbxregexp.a  ../../src/libs/zbxself/libzbxself.a  ../../src/libs/zbxnix/libzbxnix.a  ../../src/libs/zbxalgo/libzbxalgo.a  ../../src/libs/zbxsys/libzbxsys.a  ../../src/libs/zbxconf/libzbxconf.a  ../../src/libs/zbxmedia/libzbxmedia.a  ../../src/libs/zbxcommon/libzbxcommon.a  ../../src/libs/zbxcrypto/libzbxcrypto.a  ../../src/libs/zbxcomms/libzbxcomms.a  ../../src/libs/zbxcommshigh/libzbxcommshigh.a  ../../src/libs/zbxjson/libzbxjson.a  ../../src/libs/zbxhttp/libzbxhttp.a  ../../src/libs/zbxipcservice/libzbxipcservice.a  ../../src/libs/zbxexec/libzbxexec.a  ../../src/libs/zbxicmpping/libzbxicmpping.a  ../../src/libs/zbxdbupgrade/libzbxdbupgrade.a  ../../src/libs/zbxdbhigh/libzbxdbhigh.a  ../../src/libs/zbxdb/libzbxdb.a  ../../src/libs/zbxmodules/libzbxmodules.a  ../../src/libs/zbxtasks/libzbxtasks.a   -lmysqlclient      -lxml2  -lodbc  -lnetsnmp -lssh2 -lOpenIPMI -lOpenIPMIposix -levent    -lcurl -lidn -lssl -lcrypto -lssl -lcrypto -lgss -llber-2.4 -lldap_r-2.4 -lz -lsocket -lnsl   -lkvm -lm -lnsl -lkstat -lsocket  -lresolv -lpcreposix -lpcre

      ld: fatal: file /usr/local/lib/libOpenIPMI.so: wrong ELF class: ELFCLASS32

      ld: fatal: file /usr/local/lib/libOpenIPMIposix.so: wrong ELF class: ELFCLASS32

      *** Error code 1

      make: Fatal error: Command failed for target `zabbix_server'

      Current working directory /export/home/aldo/zabbix-3.4.2/src/zabbix_server

      *** Error code 1

      The following command caused the error:

      fail=; \

      if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_with_option: internal error: invalid"  "target option '${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  sane_makeflags=$MAKEFLAGS;  if test -n '' && test -n '2'; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \ ]*)  bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs     ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test $skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  -*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dEDm]) skip_next=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \

        failcom='fail=yes'; \

      else \

        failcom='exit 1'; \

      fi; \

      dot_seen=no; \

      target=`echo install-recursive | sed s/-recursive//`; \

      case "install-recursive" in \

        distclean-* | maintainer-clean-*) list='alerter  dbsyncer  dbconfig  discoverer  housekeeper  httppoller  pinger  poller  snmptrapper  timer  trapper  escalator  proxypoller  selfmon  vmware  taskmanager  ipmi  scripts  preprocessor' ;; \

        *) list='alerter  dbsyncer  dbconfig  discoverer  housekeeper  httppoller  pinger  poller  snmptrapper  timer  trapper  escalator  proxypoller  selfmon  vmware  taskmanager  ipmi  scripts  preprocessor' ;; \

      esac; \

      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; \

        (CDPATH="${ZSH_VERSION+.}:" && 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/aldo/zabbix-3.4.2/src/zabbix_server

      *** Error code 1

      The following command caused the error:

      fail=; \

      if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_with_option: internal error: invalid"  "target option '${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  sane_makeflags=$MAKEFLAGS;  if test -n '' && test -n '1'; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \ ]*)  bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs     ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test $skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  -*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dEDm]) skip_next=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \

        failcom='fail=yes'; \

      else \

        failcom='exit 1'; \

      fi; \

      dot_seen=no; \

      target=`echo install-recursive | sed s/-recursive//`; \

      case "install-recursive" in \

        distclean-* | maintainer-clean-*) list='libs  zabbix_agent  zabbix_get  zabbix_sender  zabbix_proxy  zabbix_server  zabbix_java' ;; \

        *) list='libs  zabbix_agent  zabbix_get  zabbix_sender  zabbix_server  zabbix_proxy  zabbix_java' ;; \

      esac; \

      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; \

        (CDPATH="${ZSH_VERSION+.}:" && 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/aldo/zabbix-3.4.2/src

      *** Error code 1

      The following command caused the error:

      fail=; \

      if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_with_option: internal error: invalid"  "target option '${target_option-}' specified" >&2;  exit 1;;  esac;  has_opt=no;  sane_makeflags=$MAKEFLAGS;  if test -n '' && test -n ''; then  sane_makeflags=$MFLAGS;  else  case $MAKEFLAGS in  *\\[\ \  ]*)  bs=\\;  sane_makeflags=`printf '%s\n' "$MAKEFLAGS"  | sed "s/$bs$bs[$bs $bs     ]*//g"`;;  esac;  fi;  skip_next=no;  strip_trailopt ()  {  flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;  };  for flg in $sane_makeflags; do  test $skip_next = yes && { skip_next=no; continue; };  case $flg in  *=*|--*) continue;;  -*I) strip_trailopt 'I'; skip_next=yes;;  -*I?*) strip_trailopt 'I';;  -*O) strip_trailopt 'O'; skip_next=yes;;  -*O?*) strip_trailopt 'O';;  -*l) strip_trailopt 'l'; skip_next=yes;;  -*l?*) strip_trailopt 'l';;  -[dEDm]) skip_next=yes;;  -[JT]) skip_next=yes;;  esac;  case $flg in  *$target_option*) has_opt=yes; break;;  esac;  done;  test $has_opt = yes); then \

        failcom='fail=yes'; \

      else \

        failcom='exit 1'; \

      fi; \

      dot_seen=no; \

      target=`echo install-recursive | sed s/-recursive//`; \

      case "install-recursive" in \

        distclean-* | maintainer-clean-*) list='src  database  man  misc  upgrades' ;; \

        *) list='src  database  man  misc  upgrades' ;; \

      esac; \

      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; \

        (CDPATH="${ZSH_VERSION+.}:" && 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'