Hi all,
Has anyone tried to rebuild bacula from the source RPM provided on Karanbir's CentOS yum repo? Every time I give it a go, I'm given this error during the configure stage:
checking host system type... configure: error: can not guess host type; you must specify one make[1]: Entering directory `/home/rpmbuilder/rpmbuild/BUILD/depkgs/mtx-1.2.17kes' make[1]: *** No targets specified and no makefile found. Stop. make[1]: Leaving directory `/home/rpmbuilder/rpmbuild/BUILD/depkgs/mtx-1.2.17kes' make: *** [mtx] Error 2 error: Bad exit status from /home/rpmbuilder/rpmbuild/tmp/rpm-tmp.1839 (%build)
I've tried specifying the host type in the spec file itself by entering the following:
--host=x86_64-centos-linux-gnu
and
--host=x86_64-redhat-linux-gnu
but neither have worked.
This is my first go at building bacula, so I'm pretty sure I'm missing something: I just don't know what.
Do I need to enter a macro in my .rpmmacros file? Currently:
%_topdir %(echo "$HOME")/rpmbuild %_tmppath %{_topdir}/tmp
Is the spec file hosed? Something else entirely?
Any help would be appreciated.
Thanks,
Ranbir
Kanwar Ranbir Sandhu wrote:
Hi all,
Has anyone tried to rebuild bacula from the source RPM provided on Karanbir's CentOS yum repo?
yes :) I have!
Every time I give it a go, I'm given this error during the configure stage:
checking host system type... configure: error: can not guess host type; you must specify one
I've tried specifying the host type in the spec file itself by entering the following: --host=x86_64-centos-linux-gnu and --host=x86_64-redhat-linux-gnu
whats in /etc/rpm/platform ? and you might want to work with --define "_host foo"
but neither have worked.
Have you ever managed to build anything on this machine ? ( try something smaller like time-*.src.rpm )
This is my first go at building bacula, so I'm pretty sure I'm missing something: I just don't know what.
Is the spec file hosed? Something else entirely?
Spec builds fine for me. install the src.rpm and take a look, its quite a well defined spec[1] file.
- KB
[1] make sure you look at the changelog and see my first note in there - you might want to override those settings
On Wed, 2005-31-08 at 16:18 +0100, Karanbir Singh wrote:
yes :) I have!
Well, you I knew about. :)
whats in /etc/rpm/platform ?
x86_64-redhat-linux
and you might want to work with --define "_host foo"
I just gave that a go, but unfortunately the error remains.
Have you ever managed to build anything on this machine ? ( try something smaller like time-*.src.rpm )
This is the first time I've tried to build something on this box. It's a dual AMD Opteron box, and all the dependencies required to build Bacula are installed.
Mesa puzzled.
Spec builds fine for me. install the src.rpm and take a look, its quite a well defined spec[1] file.
Yeah, I noticed that after reviewing your build log.
I've reviewed the spec, and it is very well defined. However, I haven't been able to track the problem down.
Any other tips/suggestions would be very much appreciated.
Regards,
Ranbir
- KB
[1] make sure you look at the changelog and see my first note in there - you might want to override those settings
On Wed, 2005-31-08 at 16:18 +0100, Karanbir Singh wrote:
Spec builds fine for me. install the src.rpm and take a look, its quite a well defined spec[1] file.
Oh my goodness. Ummm, I didn't have gcc/gcc-c++ installed. And, umm, Bacula now builds flawlessly.
Well, at least I figured it out, but man, I can't believe I missed that.
Thanks for your help!
Regards,
Ranbir