[Xymon] can't build i386 xymon rpms on x86_64 host

Tom Georgoulias tomg at mcclatchyinteractive.com
Tue Mar 8 21:27:18 CET 2011


Has anyone else successfully built i386 RPMs of xymon & xymon-client 
using an x86_64 build server?  I'm running centos 5.5 and using this 
command:  "rpmbuild -bb --target=i386 xymon.spec"

Here's snippet from the beginning of the rpmbuild that shows the use of 
64bit:

+ cd xymon-4.3.0
+ LANG=C
+ export LANG
+ unset DISPLAY
+ PKGBUILD=1
+ make
MAKE="make" CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I. -I`pwd`/include 
-I/usr/include" LDFLAGS="" `pwd`/build/genconfig.sh

and from the end, when the files are being packaged:

<snip>
Provides: config(xymon) = 4.3.0-3
Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(pre): /bin/sh
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires: /bin/bash /bin/sh config(xymon) = 4.3.0-3 libc.so.6()(64bit) 
libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) 
libc.so.6(GLIBC_2.3.4)(64bit) libcrypto.so.6()(64bit) 
liblber-2.3.so.0()(64bit) libldap-2.3.so.0()(64bit) libm.so.6()(64bit) 
libpcre.so.0()(64bit) libpng12.so.0()(64bit) librrd.so.2()(64bit) 
librt.so.1()(64bit) librt.so.1(GLIBC_2.2.5)(64bit) libssl.so.6()(64bit) 
rtld(GNU_HASH)
Conflicts: xymon-client


I have both glibc-devel install for both archs:

$ rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE} %{ARCH}\n" glibc
glibc-2.5-49.el5_5.7 x86_64
glibc-2.5-49.el5_5.7 i686

$ rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE} %{ARCH}\n" glibc-devel
glibc-devel-2.5-49.el5_5.7 x86_64
glibc-devel-2.5-49.el5_5.7 i386

$ rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE} %{ARCH}\n" libtool
libtool-1.5.22-7.el5_4 x86_64

Any tips are appreciated, as the xymon rpm build process is a little 
different from most RPMs I've worked with.

Thanks,
Tom



More information about the Xymon mailing list