Hi Sam,
We finally managed to get rid of this error, using your advice and adding one cd command in spec file.
After that there was error in installing nagios, but this was also solved by using newer nagios-plugins.
But now we get following error while installing wmi:
"
gmake[3]: Nothing to be done for `install-exec-am'.
gmake[3]: Nothing to be done for `install-data-am'.
gmake[3]: Leaving directory `/export/home/zenossb/rpmbuild/BUILD/zenoss-2.1.3/inst/build/libsmi-0.4.5/doc'
gmake[2]: Leaving directory `/export/home/zenossb/rpmbuild/BUILD/zenoss-2.1.3/inst/build/libsmi-0.4.5/doc'
gmake[2]: Entering directory `/export/home/zenossb/rpmbuild/BUILD/zenoss-2.1.3/inst/build/libsmi-0.4.5'
gmake[3]: Entering directory `/export/home/zenossb/rpmbuild/BUILD/zenoss-2.1.3/inst/build/libsmi-0.4.5'
gmake[3]: Nothing to be done for `install-exec-am'.
/bin/sh ./mkinstalldirs /home/zenossb/rpmbuild/BUILDROOT/zenoss-2.1.3-1.hpc.el5.x86_64/opt/zenoss/share/aclocal
mkdir /home/zenossb/rpmbuild/BUILDROOT/zenoss-2.1.3-1.hpc.el5.x86_64/opt/zenoss/share/aclocal
/usr/bin/install -c -m 644 ./libsmi.m4 /home/zenossb/rpmbuild/BUILDROOT/zenoss-2.1.3-1.hpc.el5.x86_64/opt/zenoss/share/aclocal/libsmi.m4
/bin/sh ./mkinstalldirs /home/zenossb/rpmbuild/BUILDROOT/zenoss-2.1.3-1.hpc.el5.x86_64/opt/zenoss/lib/pkgconfig
/usr/bin/install -c -m 644 ./libsmi.pc /home/zenossb/rpmbuild/BUILDROOT/zenoss-2.1.3-1.hpc.el5.x86_64/opt/zenoss/lib/pkgconfig/libsmi.pc
gmake[3]: Leaving directory `/export/home/zenossb/rpmbuild/BUILD/zenoss-2.1.3/inst/build/libsmi-0.4.5'
gmake[2]: Leaving directory `/export/home/zenossb/rpmbuild/BUILD/zenoss-2.1.3/inst/build/libsmi-0.4.5'
gmake[1]: Leaving directory `/export/home/zenossb/rpmbuild/BUILD/zenoss-2.1.3/inst/build/libsmi-0.4.5'
gmake[1]: Entering directory `/export/home/zenossb/rpmbuild/BUILD/zenoss-2.1.3/inst/build/wmi-0.1.5'
cd Samba/source && \
./autogen.sh && \
CPPFLAGS="-I/usr/include/python2.6" ./configure --without-readline && \
gmake proto bin/wmic bin/wmis wmi/_pywmi.so bin/winexe && \
cp bin/winexe /home/zenossb/rpmbuild/BUILDROOT/zenoss-2.1.3-1.hpc.el5.x86_64/opt/zenoss/bin && \
cp bin/wmic /home/zenossb/rpmbuild/BUILDROOT/zenoss-2.1.3-1.hpc.el5.x86_64/opt/zenoss/bin && \
cp wmi/_pywmi.so /home/zenossb/rpmbuild/BUILDROOT/zenoss-2.1.3-1.hpc.el5.x86_64/opt/zenoss/lib/python && \
cp wmi/pywmi.py /home/zenossb/rpmbuild/BUILDROOT/zenoss-2.1.3-1.hpc.el5.x86_64/opt/zenoss/lib/python
./autogen.sh: running script/mkversion.sh
./script/mkversion.sh: 'version.h' created for Samba("4.0.0tp4-SVN-build-UNKNOWN")
./autogen.sh: running autoheader -I. -Ilib/replace
build/m4/check_cc.m4:8: error: AC_REQUIRE: circular dependency of AC_GNU_SOURCE
lib/replace/autoconf-2.60.m4:169: AC_USE_SYSTEM_EXTENSIONS is expanded from...
../../lib/autoconf/specific.m4:314: AC_GNU_SOURCE is expanded from...
lib/replace/autoconf-2.60.m4:169: AC_USE_SYSTEM_EXTENSIONS is expanded from...
build/m4/check_cc.m4:8: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
autoheader: '/usr/bin/autom4te' failed with exit status: 1
gmake[1]: *** [pywmi-installed] Error 1
gmake[1]: Leaving directory `/export/home/zenossb/rpmbuild/BUILD/zenoss-2.1.3/inst/build/wmi-0.1.5'
"
Could you help us with this one?
Thanks in advance!
Vadim