Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help~~Building Errors #38

Open
freyshen opened this issue May 31, 2021 · 0 comments
Open

Help~~Building Errors #38

freyshen opened this issue May 31, 2021 · 0 comments

Comments

@freyshen
Copy link

When i try to build the project, i got the error as below.
Any one can help?

RPM build errors:
], stderr = [/etc/host.conf: line 3: bad command `nospoof on'

  • umask 022
  • cd /root/LustrePerfMon-DDN/build_esmon/2021-05-31-11_06_38/collectd.git/BUILD
  • cd /root/LustrePerfMon-DDN/build_esmon/2021-05-31-11_06_38/collectd.git/BUILD
  • rm -rf collectd-5.7.4.ddn
  • /usr/bin/bzip2 -dc /root/LustrePerfMon-DDN/build_esmon/2021-05-31-11_06_38/collectd.git/SOURCES/collectd-5.7.4.ddn.tar.bz2
  • /usr/bin/tar -xf -
  • STATUS=0
  • '[' 0 -ne 0 ']'
  • cd collectd-5.7.4.ddn
  • /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
  • exit 0
  • umask 022
  • cd /root/LustrePerfMon-DDN/build_esmon/2021-05-31-11_06_38/collectd.git/BUILD
  • cd collectd-5.7.4.ddn
  • CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic'
  • export CFLAGS
  • CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic'
  • export CXXFLAGS
  • FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules'
  • export FFLAGS
  • FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules'
  • export FCFLAGS
  • LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
  • export LDFLAGS
  • '[' 1 == 1 ']'
  • '[' x86_64 == ppc64le ']'
    ++ find . -name config.guess -o -name config.sub
  • for i in '$(find . -name config.guess -o -name config.sub)'
    ++ basename ./build-aux/config.guess
  • '[' -f /usr/lib/rpm/redhat/config.guess ']'
  • /usr/bin/rm -f ./build-aux/config.guess
    ++ basename ./build-aux/config.guess
  • /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./build-aux/config.guess
  • for i in '$(find . -name config.guess -o -name config.sub)'
    ++ basename ./build-aux/config.sub
  • '[' -f /usr/lib/rpm/redhat/config.sub ']'
  • /usr/bin/rm -f ./build-aux/config.sub
    ++ basename ./build-aux/config.sub
  • /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./build-aux/config.sub
  • ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -DLT_LAZY_OR_NOW="RTLD_LAZY|RTLD_GLOBAL"' --disable-static --enable-all-plugins=yes --enable-match_empty_counter --enable-match_hashed --enable-match_regex --enable-match_timediff --enable-match_value --enable-target_notification --enable-target_replace --enable-target_scale --enable-target_set --enable-target_v5upgrade --enable-aggregation --disable-amqp --enable-apache --enable-apcups --disable-apple_sensors --disable-aquaero --enable-ascent --disable-barometer --enable-battery --enable-bind --enable-ceph --enable-cgroups --enable-chrony --enable-conntrack --enable-contextswitch --enable-cpufreq --enable-cpusleep --enable-cpu --enable-csv --enable-curl_json --enable-curl_xml --enable-curl --enable-dbi --enable-df --enable-disk --enable-dns --disable-dpdkstat --enable-drbd --disable-dpdkevents --disable-dpdkstat --enable-email --enable-entropy --enable-ethstat --enable-exec --enable-fhcount --enable-filecount --enable-filedata --enable-fscache --disable-gmond --disable-gps --disable-grpc --enable-hddtemp --enable-hugepages --disable-intel_pmu --disable-intel_rdt --enable-interface --enable-ipc --enable-ipmi --enable-iptables --enable-ipvs --enable-irq --disable-java --enable-load --enable-log_logstash --enable-logfile --disable-lpar --enable-lua --disable-lvm --enable-madwifi --enable-mbmon --enable-mcelog --enable-md --enable-memcachec --enable-memcached --enable-memory --disable-mic --enable-modbus --enable-mqtt --enable-multimeter --enable-mysql --disable-netapp --enable-netlink --enable-network --enable-nfs --enable-nginx --enable-notify_desktop --enable-notify_email --enable-notify_nagios --enable-ntpd --enable-numa --disable-nut --enable-olsrd --disable-onewire --enable-openldap --enable-openvpn --disable-oracle --enable-ovs_events --enable-ovs_stats --enable-perl --with-perl-bindings=INSTALLDIRS=vendor --disable-pf --disable-pinba --disable-ping --enable-postgresql --enable-powerdns --enable-processes --enable-protocols --enable-python --disable-redis --disable-routeros --enable-rrdcached --enable-rrdtool --enable-sensors --enable-serial --disable-sigrok --enable-smart --enable-snmp --enable-snmp_agent --enable-statsd --enable-swap --enable-syslog --enable-table --enable-tail_csv --enable-tail --disable-tape --enable-tcpconns --enable-teamspeak2 --enable-ted --enable-thermal --enable-threshold --disable-tokyotyrant --disable-turbostat --enable-unixsock --enable-uptime --enable-users --enable-uuid --disable-varnish --enable-virt --enable-vmem --enable-vserver --enable-wireless --enable-write_graphite --enable-write_http --enable-write_http --disable-write_kafka --enable-write_log --disable-write_mongodb --enable-write_prometheus --disable-write_redis --enable-write_riemann --enable-write_sensu --enable-write_tsdb --disable-xencpu --disable-xmms --enable-zfs_arc --disable-zone --enable-zookeeper --enable-ganglia --enable-gpfs --enable-ime --enable-ssh --enable-stress --enable-stress2 --enable-zabbix
  • /usr/bin/make -j8
    In file included from src/libcollectdclient/client.c:33:0:
    src/libcollectdclient/client.c: In function 'lcc_version':
    src/libcollectdclient/collectd/lcc_features.h:49:9: error: expected expression before ')' token
    ((major) * 10000 + (minor) * 100 + (patch))
    ^
    src/libcollectdclient/collectd/lcc_features.h:52:2: note: in expansion of macro 'LCC_VERSION_ENCODE'
    LCC_VERSION_ENCODE(LCC_VERSION_MAJOR, LCC_VERSION_MINOR, LCC_VERSION_PATCH)
    ^
    src/libcollectdclient/client.c:528:10: note: in expansion of macro 'LCC_VERSION'
    return LCC_VERSION;
    ^
    src/libcollectdclient/client.c:529:1: error: control reaches end of non-void function [-Werror=return-type]
    } /* }}} unsigned int lcc_version */
    ^
    cc1: all warnings being treated as errors
    make[1]: *** [src/libcollectdclient/libcollectdclient_la-client.lo] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make: *** [all] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.Q3CkDU (%build)
    Bad exit status from /var/tmp/rpm-tmp.Q3CkDU (%build)
    ]
    [2021/05/31-11:23:58] [ERROR] [esmon_build.py:404] failed to build Collectd on host [localhost]
    [2021/05/31-11:23:58] [ERROR] [esmon_build.py:1192] failed to prepare RPMs of CentOS7 on local host
    [2021/05/31-11:23:58] [ERROR] [esmon_build.py:1434] build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant