I can't compile (gcc) in Solaris 11.3 non global zone


 
Thread Tools Search this Thread
Top Forums Programming I can't compile (gcc) in Solaris 11.3 non global zone
# 1  
Old 10-18-2017
I can't compile (gcc) in Solaris 11.3 non global zone

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:
Code:
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:
Code:
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!                  *
***********************************************************




Here is the make output:
Code:
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'


Thanks in advance!
# 2  
Old 10-18-2017
Try this command:
Code:
file /usr/local/lib/libOpenIPMI.so:

What ELFCLASS? 64 or 32?

That is part of your problem.

Can you compile using gcc a 'hello world' program in C

Code:
cd $HOME
echo '
#include <stdio.h>
int main(void)
{
    printf("Hello World\n");
    return 0;
} 
'  > hw.c
gcc -o hw hw.c
#  you may get some warnings from gcc, ignore them but please let us see them
./hw

should produce "Hello World", if it does not please post what you got running this.
# 3  
Old 10-19-2017
This is what I am getting:

file /export/home/aldo/OpenIPMI-2.0.24/lib/.libs/libOpenIPMI.so
Code:
/export/home/aldo/OpenIPMI-2.0.24/lib/.libs/libOpenIPMI.so:     ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped


gcc -o hw hw.c (no warnings at all)
./hw
Code:
Hello World

file ./hw
Code:
./hw:           ELF 32-bit LSB executable 80386 Version 1, dynamically linked, not stripped, no debugging information available


am I doing something wrong?
Should I compile with like a 64 bit flag or something?


by the way, here my system's information (from global zone):

isalist
Code:
amd64 pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86

isainfo -v
Code:
64-bit amd64 applications
        pclmulqdq aes sse4.2 sse4.1 ssse3 popcnt tscp ahf cx16 sse3 sse2 sse
        fxsr mmx cmov amd_sysc cx8 tsc fpu
32-bit i386 applications
        pclmulqdq aes sse4.2 sse4.1 ssse3 popcnt tscp ahf cx16 sse3 sse2 sse
        fxsr mmx cmov sep cx8 tsc fpu


prtdiag -l
Code:
System Configuration: Oracle Corporation SUN FIRE X4270 M2 SERVER
BIOS Configuration: American Megatrends Inc. 08120103 03/27/2012
BMC Configuration: IPMI 1.5 (KCS: Keyboard Controller Style)

==== Processor Sockets ====================================

Version                          Location Tag
-------------------------------- --------------------------
Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz CPU 0
Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz CPU 1

==== Memory Device Sockets ================================

Type        Status Set Device Locator      Bank Locator
----------- ------ --- ------------------- ----------------
DDR3        in use 0   D2                  /SYS/MB/P0
DDR3        in use 0   D1                  /SYS/MB/P0
DDR3        in use 0   D0                  /SYS/MB/P0
DDR3        in use 0   D5                  /SYS/MB/P0
DDR3        in use 0   D4                  /SYS/MB/P0
DDR3        in use 0   D3                  /SYS/MB/P0
DDR3        in use 0   D8                  /SYS/MB/P0
DDR3        in use 0   D7                  /SYS/MB/P0
DDR3        in use 0   D6                  /SYS/MB/P0
DDR3        in use 0   D2                  /SYS/MB/P1
DDR3        in use 0   D1                  /SYS/MB/P1
DDR3        in use 0   D0                  /SYS/MB/P1
DDR3        in use 0   D5                  /SYS/MB/P1
DDR3        in use 0   D4                  /SYS/MB/P1
DDR3        in use 0   D3                  /SYS/MB/P1
DDR3        in use 0   D8                  /SYS/MB/P1
DDR3        in use 0   D7                  /SYS/MB/P1
DDR3        in use 0   D6                  /SYS/MB/P1
FLASH       in use 0

==== On-Board Devices =====================================
 Intel 82576 Ethernet Controller.
 Intel 82576 Ethernet Controller.
 Intel 82576 Ethernet Controller.
 Intel 82576 Ethernet Controller.
ICH10R SATA Controller.

==== Upgradeable Slots ====================================

ID  Status    Type             Description
--- --------- ---------------- ----------------------------
1   available PCI Express      PCIE0
2   available PCI Express      PCIE1
3   available PCI Express      PCIE2
4   in use    PCI Express      PCIE3
5   in use    PCI Express      PCIE4
6   available PCI Express      PCIE5


prtconf
Code:
System Configuration:  Oracle Corporation  i86pc
Memory size: 73720 Megabytes
System Peripherals (Software Nodes):

i86pc
    scsi_vhci, instance #0
    pci, instance #0
        pci108e,484c (driver not attached)
        pci8086,3408, instance #0
            pci108e,484c, instance #0
            pci108e,484c, instance #1
        pci8086,3409, instance #1
            pci108e,484c, instance #2
            pci108e,484c, instance #3
        pci8086,340a, instance #2
            pci1000,9263, instance #0
                sd, instance #0
                sd, instance #1
        pci8086,340c (driver not attached)
        pci8086,340e, instance #4
            pci111d,806e, instance #6
                pci111d,806e, instance #7
                    pci1077,171, instance #0
                        fp, instance #2
                    pci1077,171, instance #1
                        fp, instance #0
                pci111d,806e, instance #8
        pci8086,3410, instance #5
            pci111d,806e, instance #9
                pci111d,806e, instance #10
                pci111d,806e, instance #11
        pci8086,342d (driver not attached)
        pci8086,342e (driver not attached)
        pci8086,3422 (driver not attached)
        pci8086,3423, instance #0
        pci8086,3438 (driver not attached)
        pci108e,484c (driver not attached)
        pci108e,484c (driver not attached)
        pci108e,484c (driver not attached)
        pci108e,484c (driver not attached)
        pci108e,484c (driver not attached)
        pci108e,484c (driver not attached)
        pci108e,484c (driver not attached)
        pci108e,484c (driver not attached)
        pci108e,484c, instance #0
        pci108e,484c, instance #1
        pci108e,484c, instance #2
            device, instance #1
                keyboard, instance #2
                mouse, instance #3
        pci108e,484c, instance #0
            hub, instance #0
                communications, instance #0
        pci108e,484c, instance #3
        pci108e,484c, instance #4
        pci108e,484c, instance #5
        pci108e,484c, instance #1
            hub, instance #1
        pci8086,244e, instance #0
            display, instance #0
        isa, instance #0
            motherboard (driver not attached)
            asy, instance #0
            motherboard (driver not attached)
            pit_beep, instance #0
        pci108e,484c, instance #0
        pci108e,484c (driver not attached)
    ioapics (driver not attached)
        ioapic, instance #0 (driver not attached)
    fw, instance #0
        cpu, instance #0
        cpu, instance #1
        cpu, instance #2
        cpu, instance #3
        cpu, instance #4
        cpu, instance #5
        cpu, instance #6
        cpu, instance #7
        cpu, instance #8
        cpu, instance #9
        cpu, instance #10
        cpu, instance #11
        cpu, instance #12
        cpu, instance #13
        cpu, instance #14
        cpu, instance #15
        cpu, instance #16
        cpu, instance #17
        cpu, instance #18
        cpu, instance #19
        cpu, instance #20
        cpu, instance #21
        cpu, instance #22
        cpu, instance #23
        sb, instance #1
    used-resources (driver not attached)
    fcoe, instance #0
    iscsi, instance #0
    options, instance #0
    pseudo, instance #0
    vga_arbiter, instance #0
    xsvc, instance #0
    intel-iommu, instance #0

---------- Post updated at 08:28 PM ---------- Previous update was at 07:59 PM ----------

Note: Here the output of the hello world code compiled with the 64 flag:

Code:
root@zabbix:/export/home/aldo/compiler-test# gcc -m64 -o hw64 hw.c
root@zabbix:/export/home/aldo/compiler-test# ./hw64
Hello World
root@zabbix:/export/home/aldo/compiler-test# file hw64
hw64:           ELF 64-bit LSB executable AMD64 Version 1, dynamically linked, not stripped, no debugging information available

# 4  
Old 10-20-2017
Okay. It looks like zabbix is trying to create a 64 bit executable image, but some libraries are 32 bit.

When you compile you have to use all components from the same 'memory model', i.e., 64 or 32, gcc's -m option will let you change it. For every object. But you want all objects and libraries to match. I've compiled a lot of Solaris code on sparc and some on Intel, I've never encountered this kind of mix and match problem quite like you have. See if the libraries -- the ones the compile complained about -- exist somewhere in the correct memory model - 64bit. And use them. The problem is that your makefile expects some things that apparently it cannot find. Your job: find them, put them in the right place.

A warning: overwriting an existing library could easily break other installed applications. Also check LD_LIBRARY_PATH variable to see if it is the cause of your problem. Probably not, but you need to rule out potential issues.

PS: there is nothing wrong with your gcc.

Last edited by jim mcnamara; 10-20-2017 at 07:57 AM..
# 5  
Old 10-21-2017
You are right, I removed the 64 flag and it compiled.

Thanks!
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 11 zone has no external network access (except to Global Zone)

Hi, hoping someone can help, its been a while since I used Solaris. After creating a NGZ (non global zone), the NGZ can access the GZ (Global Zone) and the GZ can access the NGZ (using ssh, zlogin) However, the NGZ cannot access any other netwqork devices, it can't even see the default router ... (2 Replies)
Discussion started by: GazinLincoln
2 Replies

2. Solaris

Solaris 11 Global zone patching having Solaris 10 branded zone

I am planning to do solaris 11 global zone patching having solaris 10 branded zone. I have a doubts on step 8 specially Can someone clear my step 8 doubts or if anything wrong between step 1 to step 9 please correct that also as I have pretty good idea about Step 10 mean patching in solaris 10... (2 Replies)
Discussion started by: amity
2 Replies

3. Solaris

Solaris non-global zone cpu pinning

Am new on solaris :):confused: Have below questions for dedicated-cpu cores 1. For licensing I want to assign 2 core per non-global zone one from each processor. Am using below but seems it's not supported . root@solaris-test:~# psrinfo 0 on-line since 04/25/2016... (3 Replies)
Discussion started by: Shirishlnx
3 Replies

4. Solaris

Solaris 11 global zone timezone

Am new on Solaris If I compare with ESXi default timezone is UTC and we have to set BIOS timezone to UTC too . What we follow and best practice in Solaris Sparc servers . Thanks in advance . (2 Replies)
Discussion started by: Shirishlnx
2 Replies

5. Solaris

Solaris non-global zone network vlan

Have 2 nics on physical system net0 phys 1500 up -- net1 phys 1500 up -- 1. I want to create a link aggregation with LACP enabled with above 2 nics 2. Create port-group(Like we create on ESXi) with VLAN-ID 2141 3. And assign this... (0 Replies)
Discussion started by: Shirishlnx
0 Replies

6. Solaris

Not able to start non global zone on Solaris 11

I have configured three zones on Solaris-11. These are non-global zones contain Solaris-11 only. One of the zone is not booting up, complaining about IP address in use, while it is not. root@tdpdmsp02 # zoneadm list -icv ID NAME STATUS PATH BRAND IP... (3 Replies)
Discussion started by: solaris_1977
3 Replies

7. Solaris

Solaris 10 local zone on Solaris 11 global zone

Hi, A quick question: Can Solaris 10 local zones be moved to a Solaris 11 global zone and work well? Thank you in advance! (5 Replies)
Discussion started by: aixlover
5 Replies

8. Solaris

[b]How to mount a folder from global zone to non global zone??

Hi All There is one folder in global zone I just want to share the same folder innon global zone. How can i do it? pls send me script for this. (2 Replies)
Discussion started by: vijaysachin
2 Replies

9. Solaris

Solaris Zone : Non global Zone check failed

Hi All , I try to install some packages in my global zone... On the execution of the installion of the script it quits by saying the error "Non global zone check failed" Kindly help me in this regard Thanks in advance, jeganr (7 Replies)
Discussion started by: jegaraman
7 Replies
Login or Register to Ask a Question