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

rpmbuild error on RHEL 7.4 #3

Open
rajachan opened this issue Sep 28, 2017 · 0 comments
Open

rpmbuild error on RHEL 7.4 #3

rajachan opened this issue Sep 28, 2017 · 0 comments

Comments

@rajachan
Copy link

I am trying to build cerebro RPMs on a vanilla RHEL 7.4 node for use with LMT. I am working with commit 34257dd on master. An rpmbuild using a configure-generated .spec file errors out after failing to find a service file:

$ ./configure
<snip>

$ make dist
<snip>

$ mv ./cerebro-1.18.tar.gz /root/rpmbuild/SOURCES/
$ rpmbuild -bb ./cerebro.spec
<snip>
extracting debug info from /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/lib64/cerebro/cerebro_metric_bytesout.so
extracting debug info from /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/lib64/cerebro/cerebro_metric_packetsin.so
extracting debug info from /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/lib64/cerebro/cerebro_metric_packetsout.so
extracting debug info from /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/lib64/cerebro/cerebro_metric_rxerrs.so
extracting debug info from /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/lib64/cerebro/cerebro_metric_txerrs.so
extracting debug info from /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/sbin/cerebro-admin
extracting debug info from /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/sbin/cerebro-stat
extracting debug info from /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/sbin/cerebrod
/usr/lib/rpm/sepdebugcrcfix: Updated 23 CRC32s, 0 CRC32s did match.
symlinked /usr/lib/debug/usr/lib64/libcerebro_error.so.0.0.0.debug to /usr/lib/debug/usr/lib64/libcerebro_error.so.0.debug
symlinked /usr/lib/debug/usr/lib64/libcerebro_error.so.0.0.0.debug to /usr/lib/debug/usr/lib64/libcerebro_error.so.debug
symlinked /usr/lib/debug/usr/lib64/libcerebro.so.1.0.1.debug to /usr/lib/debug/usr/lib64/libcerebro.so.1.debug
symlinked /usr/lib/debug/usr/lib64/libcerebro.so.1.0.1.debug to /usr/lib/debug/usr/lib64/libcerebro.so.debug
cpio: cerebro-1.18/libltdl/.libs/libltdlcS.c: Cannot stat: No such file or directory
2388 blocks
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: cerebro-1.18-1.x86_64
error: File not found: /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/lib/systemd/system/cerebrod.service
error: Directory not found: /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/var/run/cerebro
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.Y4lL2h
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd cerebro-1.18
+ DOCDIR=/root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/share/doc/cerebro-1.18
+ export DOCDIR
+ /usr/bin/mkdir -p /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/share/doc/cerebro-1.18
+ cp -pr README /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/share/doc/cerebro-1.18
+ cp -pr NEWS /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/share/doc/cerebro-1.18
+ cp -pr ChangeLog /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/share/doc/cerebro-1.18
+ cp -pr DISCLAIMER /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/share/doc/cerebro-1.18
+ cp -pr DISCLAIMER.UC /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/share/doc/cerebro-1.18
+ cp -pr COPYING /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/share/doc/cerebro-1.18
+ exit 0


RPM build errors:
    File not found: /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/usr/lib/systemd/system/cerebrod.service
    Directory not found: /root/rpmbuild/BUILDROOT/cerebro-1.18-1.x86_64/var/run/cerebro

A manual ./configure; make; make install seems to work but fails to install the necessary service files. What am I missing?

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