Ad Widget

Collapse

can't compile zabbix-3.4.2 on solaris 11.3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sugar222
    Junior Member
    • Oct 2017
    • 3

    #1

    can't compile zabbix-3.4.2 on solaris 11.3

    Hi, every time I try to compile zabbix source it get errors saying:
    solaris gmake[2]: *** [all-recursive] Error 1
    Note: this happens if I use mame or gmake

    I am trying to compile with and without flags:
    LDFLAGS=-L=/usr/sfw/bin CC="gcc -m64" gmake
    CFLAGS=-I=/usr/include LDFLAGS=-L=/usr/sfw/bin/gld CC=gcc gmake
    nothing has work for me yet

    please help!!

    I also get errors like:
    ld: warning: file /export/home/aldo/OpenIPMI-2.0.24/utils/.libs/libOpenIPMIutils.so: linked to ../utils/.libs/libOpenIPMIutils.so: attempted multiple inclusion of file
    Undefined first referenced
    symbol in file
    ether_aton_r ./.libs/libIPMIlanserv.so
    ether_ntoa_r ./.libs/libIPMIlanserv.so
    ld: fatal: symbol referencing errors


    This is the output information that I can provide at this moment:

    gcc -v
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/gcc/4.5/lib/gcc/i386-pc-solaris2.11/4.5.2/lto-wrapper
    Target: i386-pc-solaris2.11
    Configured with: /builds/hudson/workspace/nightly-update/build/i386/components/gcc45/gcc-4.5.2/configure CC=/ws/on11update-tools/SUNWspro/sunstudio12.1/bin/cc CXX=/ws/on11update-tools/SUNWspro/sunstudio12.1/bin/CC --prefix=/usr/gcc/4.5 --mandir=/usr/gcc/4.5/share/man --bindir=/usr/gcc/4.5/bin --libdir=/usr/gcc/4.5/lib --sbindir=/usr/gcc/4.5/sbin --infodir=/usr/gcc/4.5/share/info --libexecdir=/usr/gcc/4.5/lib --enable-languages=c,c++,fortran,objc --enable-shared --with-gmp-include=/usr/include/gmp --with-mpfr-include=/usr/include/mpfr --without-gnu-ld --with-ld=/usr/bin/ld --with-gnu-as --with-as=/usr/gnu/bin/as CFLAGS='-g -O2 '
    Thread model: posix
    gcc version 4.5.2 (GCC)


    libtool --help:
    host-triplet: i386-pc-solaris2.11
    shell: /bin/sh
    compiler: gcc
    compiler flags: -I=/usr/include
    linker: /usr/bin/ld (gnu? no)
    version: libtool (GNU libtool) 2.4.6
    automake: automake (GNU automake) 1.11.2
    autoconf: autoconf (GNU Autoconf) 2.68
    /usr/bin/ld -V
    ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.2458


    Outpt of ./configure:
    checking build system type... i386-pc-solaris2.11
    checking host system type... i386-pc-solaris2.11
    checking target system type... i386-pc-solaris2.11
    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 for style of include used by make... GNU
    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 dependency style of gcc... gcc3
    checking for ar... ar
    checking the archiver (ar) interface... ar
    checking whether gcc and cc understand -c and -o together... yes
    checking how to print strings... print -r
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
    checking for egrep... /usr/xpg4/bin/grep -E
    checking for fgrep... /usr/xpg4/bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... no
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p
    checking the name lister (/usr/bin/nm -p) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 786240
    checking how to convert i386-pc-solaris2.11 file names to i386-pc-solaris2.11 format... func_convert_file_noop
    checking how to convert i386-pc-solaris2.11 file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... no
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... print -r --
    checking for archiver @FILE support... no
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -p output from gcc object... failed
    checking for sysroot... no
    checking for a working dd... /usr/bin/dd
    checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
    checking for mt... mt
    checking if mt is a manifest tool... no
    checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... no
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... yes
    checking dynamic linker characteristics... solaris2.11 ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... no
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for ANSI C header files... (cached) yes
    checking execinfo.h usability... yes
    checking execinfo.h presence... yes
    checking for execinfo.h... yes
    checking netinet/ether.h usability... no
    checking netinet/ether.h presence... no
    checking for netinet/ether.h... no
    checking sys/ethernet.h usability... yes
    checking sys/ethernet.h presence... yes
    checking for sys/ethernet.h... yes
    checking for clock_gettime in -lc... yes
    checking popt.h usability... yes
    checking popt.h presence... yes
    checking for popt.h... yes
    checking for poptGetContext in -lpopt... yes
    checking gdbm.h usability... yes
    checking gdbm.h presence... yes
    checking for gdbm.h... yes
    checking for gdbm_open in -lgdbm... yes
    checking for pkg-config... no
    checking for glib... no
    checking tcl.h usability... yes
    checking tcl.h presence... yes
    checking for tcl.h... yes
    checking for Tcl_DoOneEvent in -ltcl... no
    checking for Tcl_DoOneEvent in -ltcl8.5... yes
    checking for tcl... yes
    Have Tcl_GetTime
    checking for perl... /usr/bin/perl
    checking for perl threads...
    checking for python... /usr/bin/python
    checking for python threads... yes
    checking for tkinter... no
    checking for swig... no
    checking net-snmp/net-snmp-config.h usability... no
    checking net-snmp/net-snmp-config.h presence... no
    checking for net-snmp/net-snmp-config.h... no
    checking snmp_api.h usability... no
    checking snmp_api.h presence... no
    checking for snmp_api.h... no
    checking ucd-snmp/snmp_api.h usability... no
    checking ucd-snmp/snmp_api.h presence... no
    checking for ucd-snmp/snmp_api.h... no
    checking openssl/crypto.h usability... yes
    checking openssl/crypto.h presence... yes
    checking for openssl/crypto.h... yes
    checking for CRYPTO_malloc in -lcrypto... yes
    checking for bind in -lsocket... yes
    checking for getaddrinfo in -lsocket... yes
    checking for syslog... yes
    checking for dia... no
    checking for latex... no
    checking for bibtex... no
    checking for dvipdf... no
    dia, latex, bibtex, and/or dvipdf is not present or not valid, you cannot regenerate documentation
    The documentation comes already generated, so this is generally not a problem
    checking linux/version.h usability... no
    checking linux/version.h presence... no
    checking for linux/version.h... no
    checking for Linux epoll(7) interface with signals extension... (cached) no
    checking for tgetent in -lcurses... yes
    checking for size_t... yes
    checking for working alloca.h... yes
    checking for alloca... yes
    checking for dirent.h that defines DIR... yes
    checking for library containing opendir... none required
    checking for ANSI C header files... (cached) yes
    checking for sys/wait.h that is POSIX.1 compatible... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking malloc.h usability... yes
    checking malloc.h presence... yes
    checking for malloc.h... yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking sys/ioctl.h usability... yes
    checking sys/ioctl.h presence... yes
    checking for sys/ioctl.h... yes
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    checking termios.h usability... yes
    checking termios.h presence... yes
    checking for termios.h... yes
    checking for unistd.h... (cached) yes
    checking curses.h usability... yes
    checking curses.h presence... yes
    checking for curses.h... yes
    checking ncurses.h usability... no
    checking ncurses.h presence... no
    checking for ncurses.h... no
    checking sys/cdefs.h usability... no
    checking sys/cdefs.h presence... no
    checking for sys/cdefs.h... no
    checking for term.h... yes
    checking for wresize... no
    checking for vw_printw... no
    checking for cfmakeraw... no
    checking for an ANSI C-conforming const... yes
    checking for pid_t... yes
    checking for size_t... (cached) yes
    checking for u_int32_t... no
    checking whether closedir returns void... no
    checking vfork.h usability... no
    checking vfork.h presence... no
    checking for vfork.h... no
    checking for fork... yes
    checking for vfork... yes
    checking for working fork... yes
    checking for working vfork... (cached) yes
    checking for strlcpy... yes
    checking for strlcat... yes
    checking for fgetln... no
    checking whether gcc needs -traditional... no
    checking return type of signal handlers... void
    checking whether lstat correctly handles trailing slash... yes
    checking whether stat accepts an empty string... no
    checking for endpwent... yes
    checking for isascii... yes
    checking for memchr... yes
    checking for memset... yes
    checking for re_comp... yes
    checking for regcomp... yes
    checking for strcasecmp... yes
    checking for strchr... yes
    checking for strcspn... yes
    checking for strdup... yes
    checking for strerror... yes
    checking for strrchr... yes
    checking for strstr... yes
    checking for strtol... yes
    checking for issetugid... yes
    checking whether getpwnam_r and getpwuid_r are posix like... no
    checking whether getpwnam_r and getpwuid_r are posix _draft_ like... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating utils/Makefile
    config.status: creating lib/Makefile
    config.status: creating unix/Makefile
    config.status: creating glib/Makefile
    config.status: creating tcl/Makefile
    config.status: creating ui/Makefile
    config.status: creating lanserv/Makefile
    config.status: creating lanserv/OpenIPMI/Makefile
    config.status: creating lanserv/sdrcomp/Makefile
    config.status: creating lanserv/marvell-bmc/Makefile
    config.status: creating sample/Makefile
    config.status: creating doc/Makefile
    config.status: creating man/Makefile
    config.status: creating swig/Makefile
    config.status: creating swig/perl/Makefile
    config.status: creating swig/python/Makefile
    config.status: creating swig/python/openipmigui/Makefile
    config.status: creating libedit/Makefile
    config.status: creating cmdlang/Makefile
    config.status: creating include/Makefile
    config.status: creating include/OpenIPMI/Makefile
    config.status: creating include/OpenIPMI/ipmiif.h
    config.status: creating include/OpenIPMI/internal/Makefile
    config.status: creating OpenIPMI.spec
    config.status: creating OpenIPMIutils.pc
    config.status: creating OpenIPMI.pc
    config.status: creating OpenIPMIpthread.pc
    config.status: creating OpenIPMIposix.pc
    config.status: creating OpenIPMIglib.pc
    config.status: creating OpenIPMItcl.pc
    config.status: creating OpenIPMIcmdlang.pc
    config.status: creating OpenIPMIui.pc
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands
    config.status: executing libtool commands



    Output of make: (in next comment)
  • sugar222
    Junior Member
    • Oct 2017
    • 3

    #2
    cat gmake.out
    Code:
    Making all in src
    Making all in libs
    Making all in zbxcrypto
    Making all in zbxcommon
    Making all in zbxlog
    Making all in zbxalgo
    Making all in zbxnix
    Making all in zbxconf
    Making all in zbxhttp
    Making all in zbxsysinfo
    Making all in agent
    Making all in common
    Making all in simple
    Making all in solaris
    Making all in zbxsys
    Making all in zbxcomms
    Making all in zbxjson
    Making all in zbxexec
    Making all in zbxmodules
    Making all in zbxregexp
    Making all in zbxipcservice
    Making all in zbxcommshigh
    Making all in zbxdb
    Making all in zbxdbupgrade
    Making all in zbxdbcache
    Making all in zbxdbhigh
    Making all in zbxhttp
    Making all in zbxmemory
    Making all in zbxserver
    Making all in zbxicmpping
    Making all in zbxmedia
    Making all in zbxself
    Making all in zbxtasks
    Making all in zabbix_agent
    Making all in zabbix_get
    Making all in zabbix_sender
    Making all in zabbix_server
    Making all in alerter
    Making all in dbsyncer
    Making all in dbconfig
    Making all in discoverer
    Making all in housekeeper
    Making all in httppoller
    Making all in pinger
    Making all in poller
    Making all in snmptrapper
    Making all in timer
    Making all in trapper
    Making all in escalator
    Making all in proxypoller
    Making all in selfmon
    Making all in vmware
    Making all in taskmanager
    Making all in ipmi
    Making all in scripts
    Making all 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
    *** Error code 1
    *** 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 all-recursive | sed s/-recursive//`; \
    case "all-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"
    *** 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 all-recursive | sed s/-recursive//`; \
    case "all-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"
    *** 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 all-recursive | sed s/-recursive//`; \
    case "all-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"

    Comment

    • kloczek
      Senior Member
      • Jun 2006
      • 1771

      #3
      I think that you have copied only stdout when exact error messages have been written on stderr.
      http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
      https://kloczek.wordpress.com/
      zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
      My zabbix templates https://github.com/kloczek/zabbix-templates

      Comment

      • sugar222
        Junior Member
        • Oct 2017
        • 3

        #4
        Sorry for my ignorance, how can I see the stderr ?

        Comment

        • kloczek
          Senior Member
          • Jun 2006
          • 1771

          #5
          Looks like you grabbed output of the command like "make > <some_file>". So what you've copied here is without error mesages which are describing cause of the error.
          stderr is under shell file descriptor 2 (stdout is 1).

          Just try "make > <some file> 2>&1" and please copy here all after lat gcc execution with all parameters.
          http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
          https://kloczek.wordpress.com/
          zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
          My zabbix templates https://github.com/kloczek/zabbix-templates

          Comment

          Working...