> Date: Mon, 4 Nov 2013 11:15:55 +0000
> From: g...@redhat.com
> To: users@qpid.apache.org
> Subject: Re: can't build QPID cpp RPM under CentOS 6.4 64-bit
> 
> On 11/01/2013 06:42 PM, Sam Jones wrote:
> > I've been unsuccessful in building an RPM for the 0.24 branch of QPID under 
> > CentOS 6.4 64-bit. My version of cmake is 2.6.4.
> >
> > Steps:
> >
> > svn checkout http://svn.apache.org/repos/asf/qpid/branches/0.24/qpid qpid
> > cd qpid/cpp
> > mkdir BLD
> > cd BLD
> > cmake -D CMAKE_INSTALL_PREFIX:PATH=/usr -D CPACK_BINARY_RPM:BOOL=ON ..
> > make package
> >
> > It seems to build fine, but it doesn't create the RPM. My final output is 
> > as follows:
> 
> I didn't even know that cmake would automatically build rpms, I've never 
> tried that and its quite possible no-one else has so maybe something is 
> missing in the build files...
> 
> > ...
> > [ 99%] Built target request-response_server
> > [ 99%] Built target tradedemo_declare_queues
> > [ 99%] Built target tradedemo_topic_listener
> > [100%] Built target tradedemo_topic_publisher
> > Run CPack packaging tool...
> > CPack: Create package using RPM
> > CPack: Install projects
> > CPack: - Run preinstall target for: qpid-cpp
> > CPack: - Install project: qpid-cpp
> > CPack: Compress package
> > CPack: Finalize package
> > CPack Error: Problem copying the package: 
> > /home/sjones/qpid/cpp/BLD/_CPack_Packages/Linux/RPM/qpid-cpp-0.24-Linux.rpm 
> > to /home/sjones/qpid/cpp/BLD/qpid-cpp-0.24-Linux.rpm
> > CPack Error: Error when generating package: qpid-cpp
> > make: *** [package] Error 1
> >
> > Any ideas?
> 
> I assume the problem in 'copying' is that 
> /home/sjones/qpid/cpp/BLD/_CPack_Packages/Linux/RPM/qpid-cpp-0.24-Linux.rpm 
> doesn't actually exist? Are there any build logs in that directory with 
> more detail/clues?
> 
> 

Yes, the RPM does not exist because it failed to build. Below is the directory 
listing and the output of rpmbuild.err:

[sjones@qpid-builder RPM]$ pwd
/home/sjones/qpid/cpp/BLD/_CPack_Packages/Linux/RPM
[sjones@qpid-builder RPM]$ ls
BUILD  qpid-cpp-0.24-Linux  rpmbuild.err  rpmbuild.out  RPMS  SOURCES  SPECS  
SRPMS  tmp
[sjones@qpid-builder RPM]$ cat rpmbuild.err 
+ umask 022
+ cd /home/sjones/qpid/cpp/BLD/_CPack_Packages/Linux/RPM/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LANG=C
+ export LANG
+ unset DISPLAY
+ exit 0
+ umask 022
+ cd /home/sjones/qpid/cpp/BLD/_CPack_Packages/Linux/RPM/BUILD
+ '[' /home/sjones/rpmbuild/BUILDROOT/qpid-cpp-0.24-1.x86_64 '!=' / ']'
+ rm -rf /home/sjones/rpmbuild/BUILDROOT/qpid-cpp-0.24-1.x86_64
++ dirname /home/sjones/rpmbuild/BUILDROOT/qpid-cpp-0.24-1.x86_64
+ mkdir -p /home/sjones/rpmbuild/BUILDROOT
+ mkdir /home/sjones/rpmbuild/BUILDROOT/qpid-cpp-0.24-1.x86_64
+ LANG=C
+ export LANG
+ unset DISPLAY
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-python-bytecompile
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
error: File not found by glob: 
/home/sjones/rpmbuild/BUILDROOT/qpid-cpp-0.24-1.x86_64/*
    File not found by glob: 
/home/sjones/rpmbuild/BUILDROOT/qpid-cpp-0.24-1.x86_64/*

                                          

Reply via email to