The error is actually coming from mtx, which is a dependency packaged
with bacula.  If you cd into BUILD/depkgs/mtx-1.3.11 and
run ./configure, you'll see the same error:

---
checking build system type... Invalid configuration
`s390x-unknown-linux-gnu': machine `s390x-unknown' not recognized
configure: error: /bin/sh ./config.sub s390x-unknown-linux-gnu failed
---

The problem is that the machine arch is 's390x', and mtx expects 's390'.
Attached is a patch to fix this.  Here's one way to apply it.  The basic
idea is to untar the tarball containing mtx, apply the patch, then
re-tar it:

1.) Save the patch to /tmp/mtx-s390x.patch
2.) cd to the .../SOURCES directory
3.) cp  depkgs-09Sep07.tar.gz  depkgs-09Sep07.tar.gz.orig
4.) tar xvzf depkgs-09Sep07.tar.gz
5.) cd  depkgs/mtx-1.3.11/
6.) patch -p0 < /tmp/mtx-s390x.patch
7.) cd  ../..
8.) tar cvzf  depkgs-09Sep07.tar.gz  depkgs

Now, rpmbuild will pick up the new tarball and (should) complete
successfully.

-Brad

On Mon, 2008-02-11 at 17:36 +0200, Bruce Arro wrote:
> Hi
>
>
>
> I trying to do a "rpmbuild -ba bacula.spec"
>
>
>
> I aways get this message
>
>
>
> s390-unknown-linux-gnu
>
>
>
> This is a SLES 10 SP1 enviroment.
>
>
>
> Any clues?
>
>
>
> Regards
>
>
>
>
>
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
--
Brad Hinson <[EMAIL PROTECTED]>
Sr. Support Engineer Lead, System z
Red Hat, Inc.
(919) 754-4198

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
--- config.sub.orig
+++ config.sub
@@ -219,7 +219,7 @@
 	      | mips64el-* | mips64orion-* | mips64orionel-* \
 	      | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
 	      | mipstx39-* | mipstx39el-* | mcore-* \
-	      | f301-* | armv*-* | s390-* | sv1-* | t3e-* \
+	      | f301-* | armv*-* | s390x-* | s390-* | sv1-* | t3e-* \
 	      | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
 	      | k[56]-* | k6[23]-* | athlon-* | powerpc64-* \
 	      | sparcv8-* | supersparc-* | microsparc-* | ultrasparc-* \

Reply via email to