2012년 1월 22일 일요일

Do not use CentOS for test the newest tings.

Recently, I was trying to deploy Android-x86 to a guest machine of Xen hypervisor. I installed CentOS 6.2. Xen is not the default hypervisor for CentOS 6.2. Instead, They have set KVM as the default. Therefore, I needed to download and install Xen ( I chose xen 4.1) 


Here, I'm not telling how to Xen on CentOS, but I'd like to say that I realized it was totally useless thing. I strongly recommend to use Ubuntu because It supports well about newest versions of technologies. (If you really like RHEL, you at least should use Fedora Linux.) 


I did in a way of compiling Fedora's RPM package sources. I discovered the problem that it was VERY DIFFICULT  to meet dependency requirements each sub-packages. After I succeeded one package and it was obvious to get some error on the next package.


Though I installed EPEL (Extra Packages for Enterprise Linux), I gave up install things on CentOS and finally changed to Ubuntu.


To summarize, 
1) Use Ubuntu for the test newest version of products or technology
2) Don't try compile RPM sources. you could see dependency hell. If possible, get the source of the program (*.tarball and so on)
3) Use Fedora instead, if you really like RHEL.

The bellow was the working log on CentOS.
----------------------------------------------------------------------------
[root@cloud3 ~]# madir /root/src 
[root@cloud3 ~]# cd /root/src
[root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/xen-4.1.1-8.fc16.src.rpm
[root@cloud3 src]# rpm -i ./xen-4.1.1-8.fc16.src.rpm
# Got an error
warning: group mockbuild does not exits - using root
warning: user mockbuild does not exist - using root
--------

# Add EPEL repository
[root@cloud3 src]# wget http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
[root@cloud3 src]# rpm -Uvh ./epel-release-6-5.noarch.rpm
# install mock
[root@cloud3 src]# yum install mock
# add user
[root@cloud3 src]# adduser -s /sbin/nologin mockbuild

[root@cloud3 src]# rpm -i ./xen-4.1.1-8.fc16.src.rpm
[root@cloud3 src]# cd /root/rpmbuild/SPECS
[root@cloud3 SPECS]# rpmbuild -bb xen.spec
Got an error
/usr/include/gnu/stubs-32.h is needed by xen

Open xen.spec with vi then find "so that x86_64 builds pick up glibc32 correctly" then replace strub-32 with strubs-64.

[root@cloud3 SPECS]# rpmbuild -bb xen.spec
-------------------- ommitted ------------------------
Processing files: xen-debuginfo-4.1.1-8.el6.x86_64
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/xen-4.1.1-8.el6.x86_64
warning: Could not canonicalize hostname: cloud3
Wrote: /root/rpmbuild/RPMS/x86_64/xen-4.1.1-8.el6.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/xen-libs-4.1.1-8.el6.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/xen-runtime-4.1.1-8.el6.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/xen-hypervisor-4.1.1-8.el6.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/xen-doc-4.1.1-8.el6.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/xen-devel-4.1.1-8.el6.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/xen-licenses-4.1.1-8.el6.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/xen-debuginfo-4.1.1-8.el6.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.1wTnuP
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd xen-4.1.1
+ rm -rf /root/rpmbuild/BUILDROOT/xen-4.1.1-8.el6.x86_64
+ exit 0
[root@cloud3 SPECS]#

# install qemu-common, there isn't qeme-common in CentOS repository.
[root@cloud3 SPECS]# cd /root/src
[root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/qemu-0.15.0-5.fc16.src.rpm
[root@cloud3 src]# rpm -i ./qemu-0.15.0-5.fc16.src.rpm
[root@cloud3 src]# cd /root/rpmbuild/SPECS/
[root@cloud3 SPECS]# rpmbuild -bb qemu.spec
error: Failed build dependencies:
        usbredir-devel is needed by qemu-2:0.15.0-5.el6.x86_64
        spice-protocol >= 0.8.1 is needed by qemu-2:0.15.0-5.el6.x86_64
        spice-server-devel >= 0.9.0 is needed by qemu-2:0.15.0-5.el6.x86_64
        systemtap-sdt-devel is needed by qemu-2:0.15.0-5.el6.x86_64

[root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/systemtap-1.6-1.fc16.src.rpm
[root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/usbredir-0.3.1-1.fc16.src.rpm

[root@cloud3 src]# yum install spice-protocol spiace-server-devel
[root@cloud3 src]# rpm -i usbredir-0.3.1-1.fc16.src.rpm
[root@cloud3 src]# rpm -i systemtap-1.6-1.fc16.src.rpm 

[root@cloud3 SPECS]# rpmbuild -bb usbredir.spec
error: Failed build dependencies:
        libusb1-devel >= 1.0.9 is needed by usbredir-0.3.1-1.el6.x86_64
[root@cloud3 SPECS]# yum install libusb1-devel

[root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/libusb1-1.0.9-0.3.rc1.fc16.src.rpm
[root@cloud3 src]# rpm -i ./libusb1-1.0.9-0.3.rc1.fc16.src.rpm
[root@cloud3 src]# cd /root/rpmbuild/SPECS  
[root@cloud3 SPECS]# rpmbuild -bb libusb1.spec
[root@cloud3 SPECS]# cd ../RPMS/x86_64
[root@cloud3 x86_64]# ll
total 14112
-rw-r--r--. 1 root root   81204 Jan  4 15:52 libusb1-1.0.9-0.3.rc1.el6.x86_64.rpm
-rw-r--r--. 1 root root  133604 Jan  4 15:52 libusb1-debuginfo-1.0.9-0.3.rc1.el6.x86_64.rpm
-rw-r--r--. 1 root root   17220 Jan  4 15:52 libusb1-devel-1.0.9-0.3.rc1.el6.x86_64.rpm
-rw-r--r--. 1 root root   31396 Jan  4 15:52 libusb1-static-1.0.9-0.3.rc1.el6.x86_64.rpm
[root@cloud3 x86_64]# rpm -Uvh libusb1-devel-1.0.9-0.3.rc1.el6.x86_64.rpm
error: Failed dependencies:
        libusb1 = 1.0.9-0.3.rc1.el6 is needed by libusb1-devel-1.0.9-0.3.rc1.el6.x86_64
        libusb1-devel-doc = 1.0.9-0.3.rc1.el6 is needed by libusb1-devel-1.0.9-0.3.rc1.el6.x86_64
[root@cloud3 x86_64]# rpm -Uvh libusb1-1.0.9-0.3.rc1.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:libusb1                ########################################### [100%]

[root@cloud3 x86_64]# rpm -i --nodeps ./libusb1-devel-1.0.9-0.3.rc1.el6.x86_64.rpm
[root@cloud3 x86_64]# cd ../noarch/
[root@cloud3 noarch]# rpm -Uvh ./libusb1-devel-doc-1.0.9-0.3.rc1.el6.noarch.rpm
Preparing...                ########################################### [100%]
   1:libusb1-devel-doc      ########################################### [100%]

[root@cloud3 src]# rpm -i ./usbredir-0.3.1-1.fc16.src.rpm
warning: ./usbredir-0.3.1-1.fc16.src.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY

[root@cloud3 src]# cd /root/rpmbuild/SPECS
[root@cloud3 SPECS]# rpmbuild -bb usbredir.spec

[root@cloud3 x86_64]# rpm -Uvh ./usbredir-devel-0.3.1-1.el6.x86_64.rpm
error: Failed dependencies:
        libusbredirhost.so.1()(64bit) is needed by usbredir-devel-0.3.1-1.el6.x86_64
        libusbredirparser.so.0()(64bit) is needed by usbredir-devel-0.3.1-1.el6.x86_64
        usbredir = 0.3.1-1.el6 is needed by usbredir-devel-0.3.1-1.el6.x86_64
[root@cloud3 x86_64]#
[root@cloud3 x86_64]# rpm -Uvh ./usbredir-0.3.1-1.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:usbredir               ########################################### [100%]
[root@cloud3 x86_64]# rpm -Uvh ./usbredir-devel-0.3.1-1.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:usbredir-devel         ########################################### [100%]
[root@cloud3 x86_64]#

[root@cloud3 src]# cd /root/src && wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/spice-0.9.1-1.fc16.src.rpm
[root@cloud3 src]# rpm -i ./spice-0.9.1-1.fc16.src.rpm
[root@cloud3 src]# cd /root/rpmbuild/SPECS
[root@cloud3 SPECS]# rpmbuild -bb ./spice.spec
error: Failed build dependencies:
        spice-protocol >= 0.9.0 is needed by spice-0.9.1-1.el6.x86_64
        cegui06-devel is needed by spice-0.9.1-1.el6.x86_64
        libcacard-devel is needed by spice-0.9.1-1.el6.x86_64


[root@cloud3 SPECS]# cd /root/src
[root@cloud3 src]# cd /root/src && wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/spice-protocol-0.9.0-1.fc16.src.rpm
[root@cloud3 src]# cd /root/src && wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/libcacard-0.1.2-1.fc15.src.rpm
[root@cloud3 src]# cd /root/src && wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/cegui06-0.6.2-8.fc16.src.rpm
[root@cloud3 src]# rpm -i spice-protocol-0.9.0-1.fc16.src.rpm
[root@cloud3 src]# cd /root/rpmbuild/SPECS
[root@cloud3 SPECS]# rpmbuild -bb spice-protocol.spec
[root@cloud3 SPECS]# cd ../RPMS/noarch/
[root@cloud3 noarch]# rpm -Uvh ./spice-protocol-0.9.0-1.el6.noarch.rpm
Preparing...                ########################################### [100%]
   1:spice-protocol         ########################################### [100%]
[root@cloud3 noarch]#

[root@cloud3 noarch]# cd /root/src
[root@cloud3 src]# rpm -i cegui06-0.6.2-8.fc16.src.rpm
warning: cegui06-0.6.2-8.fc16.src.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
[root@cloud3 src]# cd /root/rpmbuild/SPECS/
[root@cloud3 SPECS]# rpmbuild -bb cegui06.spec
error: Failed build dependencies:
        expat-devel is needed by cegui06-0.6.2-8.el6.x86_64
        pcre-devel is needed by cegui06-0.6.2-8.el6.x86_64
        glew-devel is needed by cegui06-0.6.2-8.el6.x86_64
[root@cloud3 SPECS]#
[root@cloud3 SPECS]# yum install  expat-devel pcre-devel glew-devel
[root@cloud3 SPECS]# rpmbuild -bb cegui06.spec
[root@cloud3 SPECS]# cd ../RPMS/x86_64/
[root@cloud3 x86_64]# rpm -Uvh cegui06-0.6.2-8.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:cegui06                ########################################### [100%]
[root@cloud3 x86_64]# rpm -Uvh cegui06-devel-0.6.2-8.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:cegui06-devel          ########################################### [100%]
[root@cloud3 x86_64]#

[root@cloud3 x86_64]# cd /root/src
[root@cloud3 src]# rpm -i ./libcacard-0.1.2-1.fc15.src.rpm
warning: ./libcacard-0.1.2-1.fc15.src.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
[root@cloud3 src]# cd /root/rpmbuild/SPECS/
[root@cloud3 SPECS]# rpmbuild -bb ./libcacard.spec
error: Failed build dependencies:
        nss-devel >= 3.12.8-2 is needed by libcacard-0.1.2-1.el6.x86_64
[root@cloud3 SPECS]#

[root@cloud3 SPECS]# yum install nss-devel
[root@cloud3 SPECS]# rpmbuild -bb ./libcacard.spec
[root@cloud3 x86_64]# rpm -Uvh ./libcacard-0.1.2-1.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:libcacard              ########################################### [100%]
[root@cloud3 x86_64]# rpm -Uvh ./libcacard-devel-0.1.2-1.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:libcacard-devel        ########################################### [100%]
[root@cloud3 x86_64]#

[root@cloud3 src]# cd /root/rpmbuild/SPECS/
[root@cloud3 SPECS]# rpmbuild -bb ./spice.spec
[root@cloud3 SPECS]# cd ../RPMS/x86_64
[root@cloud3 x86_64]# rpm -Uvh spice-server-0.9.1-1.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:spice-server           ########################################### [100%]
[root@cloud3 x86_64]# rpm -Uvh spice-server-devel-0.9.1-1.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:spice-server-devel     ########################################### [100%]
[root@cloud3 x86_64]#

[root@cloud3 src]# cd /root/rpmbuild/SPECS/
[root@cloud3 SPECS]# rpmbuild -bb ./qemu.spec
Error:
Processing files: qemu-common-0.15.0-5.el6.x86_64
Provides: config(qemu-common) = 2:0.15.0-5.el6
Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh /sbin/chkconfig /usr/bin/getent /usr/sbin/groupadd /usr/sbin/useradd
Requires(preun): /bin/sh /sbin/chkconfig /sbin/service
Requires(postun): /bin/sh /sbin/service
Requires: /bin/bash libaio.so.1()(64bit) libaio.so.1(LIBAIO_0.1)(64bit) libaio.so.1(LIBAIO_0.4)(64bit) libattr.so.1()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.10)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.6)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_2.9)(64bit) libcurl.so.4()(64bit) libdl.so.2()(64bit) libglib-2.0.so.0()(64bit) libnspr4.so()(64bit) libnss3.so()(64bit) libnssutil3.so()(64bit) libplc4.so()(64bit) libplds4.so()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libpthread.so.0(GLIBC_2.3.2)(64bit) librt.so.1()(64bit) librt.so.1(GLIBC_2.2.5)(64bit) libsmime3.so()(64bit) libssl3.so()(64bit) libusbredirparser.so.0()(64bit) libuuid.so.1()(64bit) libuuid.so.1(UUID_1.0)(64bit) libz.so.1()(64bit) rtld(GNU_HASH)
Processing files: qemu-guest-agent-0.15.0-5.el6.x86_64
error: File must begin with "/": %{_unitdir}/qemu-guest-agent.service
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ylMM5V
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd qemu-kvm-0.15.0
+ DOCDIR=/root/rpmbuild/BUILDROOT/qemu-0.15.0-5.el6.x86_64/usr/share/doc/qemu-guest-agent-0.15.0
+ export DOCDIR
+ rm -rf /root/rpmbuild/BUILDROOT/qemu-0.15.0-5.el6.x86_64/usr/share/doc/qemu-guest-agent-0.15.0
+ /bin/mkdir -p /root/rpmbuild/BUILDROOT/qemu-0.15.0-5.el6.x86_64/usr/share/doc/qemu-guest-agent-0.15.0
+ cp -pr COPYING README /root/rpmbuild/BUILDROOT/qemu-0.15.0-5.el6.x86_64/usr/share/doc/qemu-guest-agent-0.15.0
+ exit 0


RPM build errors:
    File must begin with "/": %{_unitdir}/qemu-guest-agent.service


[root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/systemd-36-3.fc16.src.rpm
[root@cloud3 src]# cd /root/rpmbuild/SPECS
[root@cloud3 SPECS]# rpmbuild -bb systemd.spec
error: Failed build dependencies:
        libudev-devel >= 160 is needed by systemd-36-3.el6.x86_64  ( X )
        libcap-devel is needed by systemd-36-3.el6.x86_64  ( installed successfully with yum )
        tcp_wrappers-devel is needed by systemd-36-3.el6.x86_64 ( installed successfully with yum )
        pam-devel is needed by systemd-36-3.el6.x86_64 ( installed successfully with yum )
        cryptsetup-luks-devel is needed by systemd-36-3.el6.x86_64 ( installed successfully with yum )
        vala >= 0.11 is needed by systemd-36-3.el6.x86_64  ( X )
        libnotify-devel >= 0.7 is needed by systemd-36-3.el6.x86_64 ( X )
        gperf is needed by systemd-36-3.el6.x86_64 ( installed successfully with yum )


[root@cloud3 src]# rpmbuild -bb /root/rpmbuild/SPECS/udev.spec
error: Failed build dependencies:
        gobject-introspection-devel >= 0.6.2 is needed by udev-173-3.el6.x86_64

[root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/gobject-introspection-1.30.0-1.fc16.src.rpm
[root@cloud3 src]# rpm -i gobject-introspection-1.30.0-1.fc16.src.rpm
warning: gobject-introspection-1.30.0-1.fc16.src.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
[root@cloud3 src]# rpmbuild -bb /root/rpmbuild/SPECS/gobject-introspection.spec
error: Failed build dependencies:
        libffi-devel is needed by gobject-introspection-1.30.0-1.el6.x86_64 ( installed successfully with yum)
        cairo-gobject-devel is needed by gobject-introspection-1.30.0-1.el6.x86_64 ( X )
        gnome-common is needed by gobject-introspection-1.30.0-1.el6.x86_64 ( installed successfully with yum)

[root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/cairo-1.10.2-4.fc16.src.rpm
[root@cloud3 src]# rpm -i cairo-1.10.2-4.fc16.src.rpm
warning: cairo-1.10.2-4.fc16.src.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY

[root@cloud3 src]# rpm -Uvh --nodeps /root/rpmbuild/RPMS/x86_64/cairo-1.10.2-4.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:cairo                  ########################################### [100%]
[root@cloud3 src]#
[root@cloud3 src]# rpm -Uvh --nodeps /root/rpmbuild/RPMS/x86_64/cairo-devel-1.10.2-4.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:cairo-devel            ########################################### [100%]
[root@cloud3 src]# rpm -Uvh /root/rpmbuild/RPMS/x86_64/cairo-gobject-1.10.2-4.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:cairo-gobject          ########################################### [100%]
[root@cloud3 src]#
[root@cloud3 src]# rpm -Uvh /root/rpmbuild/RPMS/x86_64/cairo-gobject-devel-1.10.2-4.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:cairo-gobject-devel    ########################################### [100%]

[root@cloud3 src]# rpmbuild -bb /root/rpmbuild/SPECS/gobject-introspection.spec
Error: Requested 'glib-2.0 >= 2.29.7' but version of GLib is 2.22.5

[root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/glib2-2.30.1-1.fc16.src.rpm
[root@cloud3 src]# rpm -i glib2-2.30.1-1.fc16.src.rpm
warning: glib2-2.30.1-1.fc16.src.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
[root@cloud3 src]# rpmbuild -bb /root/rpmbuild/SPECS/glib2.spec
error: Failed build dependencies:
        gamin-devel is needed by glib2-2.30.1-1.el6.x86_64 => insatalled successfully with yum

[root@cloud3 src]# rpm -Uvh /root/rpmbuild/RPMS/x86_64/glib2-2.30.1-1.el6.x86_64.rpm --nodeps
Preparing...                ########################################### [100%]
   1:glib2                  ########################################### [100%]
[root@cloud3 src]# rpm -Uvh /root/rpmbuild/RPMS/x86_64/glib2-devel-2.30.1-1.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:glib2-devel            ########################################### [100%]

[root@cloud3 src]# rpmbuild -bb /root/rpmbuild/SPECS/gobject-introspection.spec 

[root@cloud3 src]# rpm -Uvh /root/rpmbuild/RPMS/x86_64/gobject-introspection-1.30.0-1.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:gobject-introspection  ########################################### [100%]
[root@cloud3 src]# rpm -Uvh /root/rpmbuild/RPMS/x86_64/gobject-introspection-devel-1.30.0-1.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:gobject-introspection-d########################################### [100%]

[root@cloud3 src]# rpmbuild -bb /root/rpmbuild/SPECS/udev.spec
extras/input_id/input_id.c: In function 'test_key':
extras/input_id/input_id.c:173: error: 'BTN_TRIGGER_HAPPY' undeclared (first use in this function)
extras/input_id/input_id.c:173: error: (Each undeclared identifier is reported only once
extras/input_id/input_id.c:173: error: for each function it appears in.)
make[2]: *** [extras/input_id/input_id.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.tyUu7f (%build)

----------I started install rpm package file after failed rpmbuild
[root@cloud3 Downloads]# rpm -Uhv ./udev-173-3.fc16.x86_64.rpm
warning: ./udev-173-3.fc16.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
error: Failed dependencies:
        libc.so.6(GLIBC_2.14)(64bit) is needed by udev-173-3.fc16.x86_64
        libudev = 173-3.fc16 is needed by udev-173-3.fc16.x86_64
        systemd-units is needed by udev-173-3.fc16.x86_64
[root@cloud3 Downloads]# rpm -Uvh glibc-headers-2.14.90-14.x86_64.rpm --nodeps
warning: glibc-headers-2.14.90-14.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
Preparing...                ########################################### [100%]
   1:glibc-headers          ########################################### [100%]
[root@cloud3 Downloads]# rpm -Uvh glibc-devel-2.14.90-14.x86_64.rpm
warning: glibc-devel-2.14.90-14.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
Preparing...                ########################################### [100%]
   1:glibc-devel            ########################################### [100%]
[root@cloud3 Downloads]# rpm -Uvh glibc-common-2.14.90-14.x86_64.rpm
warning: glibc-common-2.14.90-14.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
Preparing...                ########################################### [100%]
   1:glibc-common           ########################################### [100%]
[root@cloud3 Downloads]# rpm -Uvh libudev-173-3.fc16.x86_64.rpm --nodeps
warning: libudev-173-3.fc16.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
Preparing...                ########################################### [100%]
   1:libudev                ########################################### [100%]
[root@cloud3 Downloads]# rpm -Uvh libgudev1-173-3.fc16.x86_64.rpm
warning: libgudev1-173-3.fc16.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
Preparing...                ########################################### [100%]
   1:libgudev1              ########################################### [100%]
[root@cloud3 Downloads]# rpm -Uvh systemd-units-36-3.fc16.x86_64.rpm
warning: systemd-units-36-3.fc16.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
error: Failed dependencies:
        libsystemd-daemon.so.0()(64bit) is needed by systemd-units-36-3.fc16.x86_64
        libsystemd-daemon.so.0(LIBSYSTEMD_DAEMON_31)(64bit) is needed by systemd-units-36-3.fc16.x86_64

[root@cloud3 Downloads]# rpm -Uvh udev-173-3.fc16.x86_64.rpm --nodeps
warning: udev-173-3.fc16.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
Preparing...                ########################################### [100%]
control: unrecognized option '--exit'
unrecognized command
   1:udev                   ########################################### [100%]

[root@cloud3 Downloads]# rpm -Uvh systemd-36-3.fc16.x86_64.rpm
warning: systemd-36-3.fc16.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
error: Failed dependencies:
        filesystem >= 2.4.40 is needed by systemd-36-3.fc16.x86_64
        initscripts >= 9.28 is needed by systemd-36-3.fc16.x86_64
        kernel >= 2.6.35.2-9.fc14 is needed by systemd-36-3.fc16.x86_64
        nss-myhostname is needed by systemd-36-3.fc16.x86_64
        systemd-units = 36-3.fc16 is needed by systemd-36-3.fc16.x86_64
        selinux-policy < 3.9.16-12.fc15 conflicts with systemd-36-3.fc16.x86_64
        upstart >= 0.6.0 is needed by (installed) initscripts-9.03.27-1.el6.centos.x86_64

[root@cloud3 Downloads]# rpm -Uvh filesystem-2.4.44-1.fc16.x86_64.rpm
warning: filesystem-2.4.44-1.fc16.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
Preparing...                ########################################### [100%]
   1:filesystem             ########################################### [100%]
[root@cloud3 Downloads]#

warning: initscripts-9.33-1.fc16.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
error: Failed dependencies:
        systemd-sysvinit is needed by initscripts-9.33-1.fc16.x86_64
        sysvinit-tools >= 2.87-5 is needed by initscripts-9.33-1.fc16.x86_64
        libselinux < 2.1.0 conflicts with initscripts-9.33-1.fc16.x86_64



[root@cloud3 ~]# madir /root/src && cd /root/src [root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/xen-4.1.1-8.fc16.src.rpm [root@cloud3 src]# rpm -i ./xen-4.1.1-8.fc16.src.rpm # Got an error warning: group mockbuild does not exits - using root warning: user mockbuild does not exist - using root -------- # Add EPEL repository [root@cloud3 src]# wget http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm [root@cloud3 src]# rpm -Uvh ./epel-release-6-5.noarch.rpm # install mock [root@cloud3 src]# yum install mock # add user [root@cloud3 src]# adduser -s /sbin/nologin mockbuild [root@cloud3 src]# rpm -i ./xen-4.1.1-8.fc16.src.rpm [root@cloud3 src]# cd /root/rpmbuild/SPECS [root@cloud3 SPECS]# rpmbuild -bb xen.spec Got an error /usr/include/gnu/stubs-32.h is needed by xen Open xen.spec with vi then find "so that x86_64 builds pick up glibc32 correctly" then replace strub-32 with strubs-64. [root@cloud3 SPECS]# rpmbuild -bb xen.spec -------------------- ommitted ------------------------ Processing files: xen-debuginfo-4.1.1-8.el6.x86_64 Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/xen-4.1.1-8.el6.x86_64 warning: Could not canonicalize hostname: cloud3.apexcns.com Wrote: /root/rpmbuild/RPMS/x86_64/xen-4.1.1-8.el6.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/xen-libs-4.1.1-8.el6.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/xen-runtime-4.1.1-8.el6.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/xen-hypervisor-4.1.1-8.el6.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/xen-doc-4.1.1-8.el6.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/xen-devel-4.1.1-8.el6.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/xen-licenses-4.1.1-8.el6.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/xen-debuginfo-4.1.1-8.el6.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.1wTnuP + umask 022 + cd /root/rpmbuild/BUILD + cd xen-4.1.1 + rm -rf /root/rpmbuild/BUILDROOT/xen-4.1.1-8.el6.x86_64 + exit 0 [root@cloud3 SPECS]# # install qemu-common, there isn't qeme-common in CentOS repository. [root@cloud3 SPECS]# cd /root/src [root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/qemu-0.15.0-5.fc16.src.rpm [root@cloud3 src]# rpm -i ./qemu-0.15.0-5.fc16.src.rpm [root@cloud3 src]# cd /root/rpmbuild/SPECS/ [root@cloud3 SPECS]# rpmbuild -bb qemu.spec error: Failed build dependencies: usbredir-devel is needed by qemu-2:0.15.0-5.el6.x86_64 spice-protocol >= 0.8.1 is needed by qemu-2:0.15.0-5.el6.x86_64 spice-server-devel >= 0.9.0 is needed by qemu-2:0.15.0-5.el6.x86_64 systemtap-sdt-devel is needed by qemu-2:0.15.0-5.el6.x86_64 [root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/systemtap-1.6-1.fc16.src.rpm [root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/usbredir-0.3.1-1.fc16.src.rpm [root@cloud3 src]# yum install spice-protocol spiace-server-devel [root@cloud3 src]# rpm -i usbredir-0.3.1-1.fc16.src.rpm [root@cloud3 src]# rpm -i systemtap-1.6-1.fc16.src.rpm [root@cloud3 SPECS]# rpmbuild -bb usbredir.spec error: Failed build dependencies: libusb1-devel >= 1.0.9 is needed by usbredir-0.3.1-1.el6.x86_64 [root@cloud3 SPECS]# yum install libusb1-devel [root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/libusb1-1.0.9-0.3.rc1.fc16.src.rpm [root@cloud3 src]# rpm -i ./libusb1-1.0.9-0.3.rc1.fc16.src.rpm [root@cloud3 src]# cd /root/rpmbuild/SPECS [root@cloud3 SPECS]# rpmbuild -bb libusb1.spec [root@cloud3 SPECS]# cd ../RPMS/x86_64 [root@cloud3 x86_64]# ll total 14112 -rw-r--r--. 1 root root 81204 Jan 4 15:52 libusb1-1.0.9-0.3.rc1.el6.x86_64.rpm -rw-r--r--. 1 root root 133604 Jan 4 15:52 libusb1-debuginfo-1.0.9-0.3.rc1.el6.x86_64.rpm -rw-r--r--. 1 root root 17220 Jan 4 15:52 libusb1-devel-1.0.9-0.3.rc1.el6.x86_64.rpm -rw-r--r--. 1 root root 31396 Jan 4 15:52 libusb1-static-1.0.9-0.3.rc1.el6.x86_64.rpm [root@cloud3 x86_64]# rpm -Uvh libusb1-devel-1.0.9-0.3.rc1.el6.x86_64.rpm error: Failed dependencies: libusb1 = 1.0.9-0.3.rc1.el6 is needed by libusb1-devel-1.0.9-0.3.rc1.el6.x86_64 libusb1-devel-doc = 1.0.9-0.3.rc1.el6 is needed by libusb1-devel-1.0.9-0.3.rc1.el6.x86_64 [root@cloud3 x86_64]# rpm -Uvh libusb1-1.0.9-0.3.rc1.el6.x86_64.rpm Preparing... ########################################### [100%] 1:libusb1 ########################################### [100%] [root@cloud3 x86_64]# rpm -i --nodeps ./libusb1-devel-1.0.9-0.3.rc1.el6.x86_64.rpm [root@cloud3 x86_64]# cd ../noarch/ [root@cloud3 noarch]# rpm -Uvh ./libusb1-devel-doc-1.0.9-0.3.rc1.el6.noarch.rpm Preparing... ########################################### [100%] 1:libusb1-devel-doc ########################################### [100%] [root@cloud3 src]# rpm -i ./usbredir-0.3.1-1.fc16.src.rpm warning: ./usbredir-0.3.1-1.fc16.src.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY [root@cloud3 src]# cd /root/rpmbuild/SPECS [root@cloud3 SPECS]# rpmbuild -bb usbredir.spec [root@cloud3 x86_64]# rpm -Uvh ./usbredir-devel-0.3.1-1.el6.x86_64.rpm error: Failed dependencies: libusbredirhost.so.1()(64bit) is needed by usbredir-devel-0.3.1-1.el6.x86_64 libusbredirparser.so.0()(64bit) is needed by usbredir-devel-0.3.1-1.el6.x86_64 usbredir = 0.3.1-1.el6 is needed by usbredir-devel-0.3.1-1.el6.x86_64 [root@cloud3 x86_64]# [root@cloud3 x86_64]# rpm -Uvh ./usbredir-0.3.1-1.el6.x86_64.rpm Preparing... ########################################### [100%] 1:usbredir ########################################### [100%] [root@cloud3 x86_64]# rpm -Uvh ./usbredir-devel-0.3.1-1.el6.x86_64.rpm Preparing... ########################################### [100%] 1:usbredir-devel ########################################### [100%] [root@cloud3 x86_64]# [root@cloud3 src]# cd /root/src && wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/spice-0.9.1-1.fc16.src.rpm [root@cloud3 src]# rpm -i ./spice-0.9.1-1.fc16.src.rpm [root@cloud3 src]# cd /root/rpmbuild/SPECS [root@cloud3 SPECS]# rpmbuild -bb ./spice.spec error: Failed build dependencies: spice-protocol >= 0.9.0 is needed by spice-0.9.1-1.el6.x86_64 cegui06-devel is needed by spice-0.9.1-1.el6.x86_64 libcacard-devel is needed by spice-0.9.1-1.el6.x86_64 [root@cloud3 SPECS]# cd /root/src [root@cloud3 src]# cd /root/src && wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/spice-protocol-0.9.0-1.fc16.src.rpm [root@cloud3 src]# cd /root/src && wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/libcacard-0.1.2-1.fc15.src.rpm [root@cloud3 src]# cd /root/src && wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/cegui06-0.6.2-8.fc16.src.rpm [root@cloud3 src]# rpm -i spice-protocol-0.9.0-1.fc16.src.rpm [root@cloud3 src]# cd /root/rpmbuild/SPECS [root@cloud3 SPECS]# rpmbuild -bb spice-protocol.spec [root@cloud3 SPECS]# cd ../RPMS/noarch/ [root@cloud3 noarch]# rpm -Uvh ./spice-protocol-0.9.0-1.el6.noarch.rpm Preparing... ########################################### [100%] 1:spice-protocol ########################################### [100%] [root@cloud3 noarch]# [root@cloud3 noarch]# cd /root/src [root@cloud3 src]# rpm -i cegui06-0.6.2-8.fc16.src.rpm warning: cegui06-0.6.2-8.fc16.src.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY [root@cloud3 src]# cd /root/rpmbuild/SPECS/ [root@cloud3 SPECS]# rpmbuild -bb cegui06.spec error: Failed build dependencies: expat-devel is needed by cegui06-0.6.2-8.el6.x86_64 pcre-devel is needed by cegui06-0.6.2-8.el6.x86_64 glew-devel is needed by cegui06-0.6.2-8.el6.x86_64 [root@cloud3 SPECS]# [root@cloud3 SPECS]# yum install expat-devel pcre-devel glew-devel [root@cloud3 SPECS]# rpmbuild -bb cegui06.spec [root@cloud3 SPECS]# cd ../RPMS/x86_64/ [root@cloud3 x86_64]# rpm -Uvh cegui06-0.6.2-8.el6.x86_64.rpm Preparing... ########################################### [100%] 1:cegui06 ########################################### [100%] [root@cloud3 x86_64]# rpm -Uvh cegui06-devel-0.6.2-8.el6.x86_64.rpm Preparing... ########################################### [100%] 1:cegui06-devel ########################################### [100%] [root@cloud3 x86_64]# [root@cloud3 x86_64]# cd /root/src [root@cloud3 src]# rpm -i ./libcacard-0.1.2-1.fc15.src.rpm warning: ./libcacard-0.1.2-1.fc15.src.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY [root@cloud3 src]# cd /root/rpmbuild/SPECS/ [root@cloud3 SPECS]# rpmbuild -bb ./libcacard.spec error: Failed build dependencies: nss-devel >= 3.12.8-2 is needed by libcacard-0.1.2-1.el6.x86_64 [root@cloud3 SPECS]# [root@cloud3 SPECS]# yum install nss-devel [root@cloud3 SPECS]# rpmbuild -bb ./libcacard.spec [root@cloud3 x86_64]# rpm -Uvh ./libcacard-0.1.2-1.el6.x86_64.rpm Preparing... ########################################### [100%] 1:libcacard ########################################### [100%] [root@cloud3 x86_64]# rpm -Uvh ./libcacard-devel-0.1.2-1.el6.x86_64.rpm Preparing... ########################################### [100%] 1:libcacard-devel ########################################### [100%] [root@cloud3 x86_64]# [root@cloud3 src]# cd /root/rpmbuild/SPECS/ [root@cloud3 SPECS]# rpmbuild -bb ./spice.spec [root@cloud3 SPECS]# cd ../RPMS/x86_64 [root@cloud3 x86_64]# rpm -Uvh spice-server-0.9.1-1.el6.x86_64.rpm Preparing... ########################################### [100%] 1:spice-server ########################################### [100%] [root@cloud3 x86_64]# rpm -Uvh spice-server-devel-0.9.1-1.el6.x86_64.rpm Preparing... ########################################### [100%] 1:spice-server-devel ########################################### [100%] [root@cloud3 x86_64]# [root@cloud3 src]# cd /root/rpmbuild/SPECS/ [root@cloud3 SPECS]# rpmbuild -bb ./qemu.spec Error: Processing files: qemu-common-0.15.0-5.el6.x86_64 Provides: config(qemu-common) = 2:0.15.0-5.el6 Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh /sbin/chkconfig /usr/bin/getent /usr/sbin/groupadd /usr/sbin/useradd Requires(preun): /bin/sh /sbin/chkconfig /sbin/service Requires(postun): /bin/sh /sbin/service Requires: /bin/bash libaio.so.1()(64bit) libaio.so.1(LIBAIO_0.1)(64bit) libaio.so.1(LIBAIO_0.4)(64bit) libattr.so.1()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.10)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.6)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_2.9)(64bit) libcurl.so.4()(64bit) libdl.so.2()(64bit) libglib-2.0.so.0()(64bit) libnspr4.so()(64bit) libnss3.so()(64bit) libnssutil3.so()(64bit) libplc4.so()(64bit) libplds4.so()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libpthread.so.0(GLIBC_2.3.2)(64bit) librt.so.1()(64bit) librt.so.1(GLIBC_2.2.5)(64bit) libsmime3.so()(64bit) libssl3.so()(64bit) libusbredirparser.so.0()(64bit) libuuid.so.1()(64bit) libuuid.so.1(UUID_1.0)(64bit) libz.so.1()(64bit) rtld(GNU_HASH) Processing files: qemu-guest-agent-0.15.0-5.el6.x86_64 error: File must begin with "/": %{_unitdir}/qemu-guest-agent.service Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ylMM5V + umask 022 + cd /root/rpmbuild/BUILD + cd qemu-kvm-0.15.0 + DOCDIR=/root/rpmbuild/BUILDROOT/qemu-0.15.0-5.el6.x86_64/usr/share/doc/qemu-guest-agent-0.15.0 + export DOCDIR + rm -rf /root/rpmbuild/BUILDROOT/qemu-0.15.0-5.el6.x86_64/usr/share/doc/qemu-guest-agent-0.15.0 + /bin/mkdir -p /root/rpmbuild/BUILDROOT/qemu-0.15.0-5.el6.x86_64/usr/share/doc/qemu-guest-agent-0.15.0 + cp -pr COPYING README /root/rpmbuild/BUILDROOT/qemu-0.15.0-5.el6.x86_64/usr/share/doc/qemu-guest-agent-0.15.0 + exit 0 RPM build errors: File must begin with "/": %{_unitdir}/qemu-guest-agent.service [root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/systemd-36-3.fc16.src.rpm [root@cloud3 src]# cd /root/rpmbuild/SPECS [root@cloud3 SPECS]# rpmbuild -bb systemd.spec error: Failed build dependencies: libudev-devel >= 160 is needed by systemd-36-3.el6.x86_64 ( X ) libcap-devel is needed by systemd-36-3.el6.x86_64 ( installed successfully with yum ) tcp_wrappers-devel is needed by systemd-36-3.el6.x86_64 ( installed successfully with yum ) pam-devel is needed by systemd-36-3.el6.x86_64 ( installed successfully with yum ) cryptsetup-luks-devel is needed by systemd-36-3.el6.x86_64 ( installed successfully with yum ) vala >= 0.11 is needed by systemd-36-3.el6.x86_64 ( X ) libnotify-devel >= 0.7 is needed by systemd-36-3.el6.x86_64 ( X ) gperf is needed by systemd-36-3.el6.x86_64 ( installed successfully with yum ) [root@cloud3 src]# rpmbuild -bb /root/rpmbuild/SPECS/udev.spec error: Failed build dependencies: gobject-introspection-devel >= 0.6.2 is needed by udev-173-3.el6.x86_64 [root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/gobject-introspection-1.30.0-1.fc16.src.rpm [root@cloud3 src]# rpm -i gobject-introspection-1.30.0-1.fc16.src.rpm warning: gobject-introspection-1.30.0-1.fc16.src.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY [root@cloud3 src]# rpmbuild -bb /root/rpmbuild/SPECS/gobject-introspection.spec error: Failed build dependencies: libffi-devel is needed by gobject-introspection-1.30.0-1.el6.x86_64 ( installed successfully with yum) cairo-gobject-devel is needed by gobject-introspection-1.30.0-1.el6.x86_64 ( X ) gnome-common is needed by gobject-introspection-1.30.0-1.el6.x86_64 ( installed successfully with yum) [root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/cairo-1.10.2-4.fc16.src.rpm [root@cloud3 src]# rpm -i cairo-1.10.2-4.fc16.src.rpm warning: cairo-1.10.2-4.fc16.src.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY [root@cloud3 src]# rpm -Uvh --nodeps /root/rpmbuild/RPMS/x86_64/cairo-1.10.2-4.el6.x86_64.rpm Preparing... ########################################### [100%] 1:cairo ########################################### [100%] [root@cloud3 src]# [root@cloud3 src]# rpm -Uvh --nodeps /root/rpmbuild/RPMS/x86_64/cairo-devel-1.10.2-4.el6.x86_64.rpm Preparing... ########################################### [100%] 1:cairo-devel ########################################### [100%] [root@cloud3 src]# rpm -Uvh /root/rpmbuild/RPMS/x86_64/cairo-gobject-1.10.2-4.el6.x86_64.rpm Preparing... ########################################### [100%] 1:cairo-gobject ########################################### [100%] [root@cloud3 src]# [root@cloud3 src]# rpm -Uvh /root/rpmbuild/RPMS/x86_64/cairo-gobject-devel-1.10.2-4.el6.x86_64.rpm Preparing... ########################################### [100%] 1:cairo-gobject-devel ########################################### [100%] [root@cloud3 src]# rpmbuild -bb /root/rpmbuild/SPECS/gobject-introspection.spec Error: Requested 'glib-2.0 >= 2.29.7' but version of GLib is 2.22.5 [root@cloud3 src]# wget http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/glib2-2.30.1-1.fc16.src.rpm [root@cloud3 src]# rpm -i glib2-2.30.1-1.fc16.src.rpm warning: glib2-2.30.1-1.fc16.src.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY [root@cloud3 src]# rpmbuild -bb /root/rpmbuild/SPECS/glib2.spec error: Failed build dependencies: gamin-devel is needed by glib2-2.30.1-1.el6.x86_64 => insatalled successfully with yum [root@cloud3 src]# rpm -Uvh /root/rpmbuild/RPMS/x86_64/glib2-2.30.1-1.el6.x86_64.rpm --nodeps Preparing... ########################################### [100%] 1:glib2 ########################################### [100%] [root@cloud3 src]# rpm -Uvh /root/rpmbuild/RPMS/x86_64/glib2-devel-2.30.1-1.el6.x86_64.rpm Preparing... ########################################### [100%] 1:glib2-devel ########################################### [100%] [root@cloud3 src]# rpmbuild -bb /root/rpmbuild/SPECS/gobject-introspection.spec [root@cloud3 src]# rpm -Uvh /root/rpmbuild/RPMS/x86_64/gobject-introspection-1.30.0-1.el6.x86_64.rpm Preparing... ########################################### [100%] 1:gobject-introspection ########################################### [100%] [root@cloud3 src]# rpm -Uvh /root/rpmbuild/RPMS/x86_64/gobject-introspection-devel-1.30.0-1.el6.x86_64.rpm Preparing... ########################################### [100%] 1:gobject-introspection-d########################################### [100%] [root@cloud3 src]# rpmbuild -bb /root/rpmbuild/SPECS/udev.spec extras/input_id/input_id.c: In function 'test_key': extras/input_id/input_id.c:173: error: 'BTN_TRIGGER_HAPPY' undeclared (first use in this function) extras/input_id/input_id.c:173: error: (Each undeclared identifier is reported only once extras/input_id/input_id.c:173: error: for each function it appears in.) make[2]: *** [extras/input_id/input_id.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.tyUu7f (%build) -------------------------------------------------------------- --- I started install rpm package file after failed rpmbuild [root@cloud3 Downloads]# rpm -Uhv ./udev-173-3.fc16.x86_64.rpm warning: ./udev-173-3.fc16.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY error: Failed dependencies: libc.so.6(GLIBC_2.14)(64bit) is needed by udev-173-3.fc16.x86_64 libudev = 173-3.fc16 is needed by udev-173-3.fc16.x86_64 systemd-units is needed by udev-173-3.fc16.x86_64 [root@cloud3 Downloads]# rpm -Uvh glibc-headers-2.14.90-14.x86_64.rpm --nodeps warning: glibc-headers-2.14.90-14.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY Preparing... ########################################### [100%] 1:glibc-headers ########################################### [100%] [root@cloud3 Downloads]# rpm -Uvh glibc-devel-2.14.90-14.x86_64.rpm warning: glibc-devel-2.14.90-14.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY Preparing... ########################################### [100%] 1:glibc-devel ########################################### [100%] [root@cloud3 Downloads]# rpm -Uvh glibc-common-2.14.90-14.x86_64.rpm warning: glibc-common-2.14.90-14.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY Preparing... ########################################### [100%] 1:glibc-common ########################################### [100%] [root@cloud3 Downloads]# rpm -Uvh libudev-173-3.fc16.x86_64.rpm --nodeps warning: libudev-173-3.fc16.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY Preparing... ########################################### [100%] 1:libudev ########################################### [100%] [root@cloud3 Downloads]# rpm -Uvh libgudev1-173-3.fc16.x86_64.rpm warning: libgudev1-173-3.fc16.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY Preparing... ########################################### [100%] 1:libgudev1 ########################################### [100%] [root@cloud3 Downloads]# rpm -Uvh systemd-units-36-3.fc16.x86_64.rpm warning: systemd-units-36-3.fc16.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY error: Failed dependencies: libsystemd-daemon.so.0()(64bit) is needed by systemd-units-36-3.fc16.x86_64 libsystemd-daemon.so.0(LIBSYSTEMD_DAEMON_31)(64bit) is needed by systemd-units-36-3.fc16.x86_64 [root@cloud3 Downloads]# rpm -Uvh udev-173-3.fc16.x86_64.rpm --nodeps warning: udev-173-3.fc16.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY Preparing... ########################################### [100%] control: unrecognized option '--exit' unrecognized command 1:udev ########################################### [100%] [root@cloud3 Downloads]# rpm -Uvh systemd-36-3.fc16.x86_64.rpm warning: systemd-36-3.fc16.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY error: Failed dependencies: filesystem >= 2.4.40 is needed by systemd-36-3.fc16.x86_64 initscripts >= 9.28 is needed by systemd-36-3.fc16.x86_64 kernel >= 2.6.35.2-9.fc14 is needed by systemd-36-3.fc16.x86_64 nss-myhostname is needed by systemd-36-3.fc16.x86_64 systemd-units = 36-3.fc16 is needed by systemd-36-3.fc16.x86_64 selinux-policy < 3.9.16-12.fc15 conflicts with systemd-36-3.fc16.x86_64 upstart >= 0.6.0 is needed by (installed) initscripts-9.03.27-1.el6.centos.x86_64 [root@cloud3 Downloads]# rpm -Uvh filesystem-2.4.44-1.fc16.x86_64.rpm warning: filesystem-2.4.44-1.fc16.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY Preparing... ########################################### [100%] 1:filesystem ########################################### [100%] [root@cloud3 Downloads]# warning: initscripts-9.33-1.fc16.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY error: Failed dependencies: systemd-sysvinit is needed by initscripts-9.33-1.fc16.x86_64 sysvinit-tools >= 2.87-5 is needed by initscripts-9.33-1.fc16.x86_64 libselinux < 2.1.0 conflicts with initscripts-9.33-1.fc16.x86_64

댓글 없음:

댓글 쓰기