hautreux / auks

Kerberos credential support for batch environments
Other
21 stars 18 forks source link

rpmbuild on centos7.6 failed #50

Closed AndrewTsao closed 3 years ago

AndrewTsao commented 3 years ago

hi, when I build rpm package use 0.5.0 tar ball, compile error. Whether I missing some configuration?

[root@hpc02 caosw]# rpmbuild -ta auks-0.5.0.tar.gz
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.IklB0i
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf auks-0.5.0
+ /usr/bin/gzip -dc /mnt/lustrefs/home/caosw/auks-0.5.0.tar.gz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd auks-0.5.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.87kahm
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd auks-0.5.0
+ autoreconf -fvi
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:20: installing 'build-aux/ar-lib'
configure.ac: installing 'build-aux/ylwrap'
automake: warnings are treated as errors
src/auks/Makefile.am:5: warning: compiling 'auks.c' with per-target flags requires 'AM_PROG_CC_C_O' in 'configure.ac'
autoreconf: automake failed with exit status: 1
error: Bad exit status from /var/tmp/rpm-tmp.87kahm (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.87kahm (%build)
AndrewTsao commented 3 years ago

resoved by MR#41.