This is an update on how I resolved the issue if anyone get staked with the same in the future. I downloaded the source package of 'dietlibc-0.27-4.src.rpm'. Next I made a change in line 3, deleted 'i386' and typed 'x86_64' inside the spec file. Finally I have built and installed the 'dietlibc-0.27-4.x86_64.rpm' package on the host. Now I am stacked with another error. Below is a sample of that error: ============================================================================ In file included from ./ensc_wrappers/wrappers.h:55, from src/tunctl.c:48: ./ensc_wrappers/wrappers-unistd.hc: In function `Etruncate': ./ensc_wrappers/wrappers-unistd.hc:225: warning: implicit declaration of function `truncate64' ./ensc_wrappers/wrappers-unistd.hc: In function `Eftruncate': ./ensc_wrappers/wrappers-unistd.hc:231: warning: implicit declaration of function `ftruncate64' src/tunctl.c: In function `doTunctl': src/tunctl.c:152: error: `TUNSETLINK' undeclared (first use in this function) src/tunctl.c:152: error: (Each undeclared identifier is reported only once src/tunctl.c:152: error: for each function it appears in.) make[2]: *** [src/tunctl.o] Error 1 make[2]: Leaving directory `/usr/src/redhat/BUILD/util-vserver-0.30.215' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/redhat/BUILD/util-vserver-0.30.215' make: *** [all] Error 2 ============================================================================ Any help about this would be much appreciated. TIA, Dragan > On Thu, 2009-06-18 at 12:23 +0200, Herbert Poetzl wrote: >> On Thu, Jun 18, 2009 at 04:24:21AM -0500, dragan@saraginov.com wrote: >> > Having problems on building rpm packages for the util-vservers version >> > 0.30.215 on CentOS 4.7 Final powered server. The configure passed >> fine, >> > but I am stacked with make. The sample of the error follows: >> > >> > ============================================================================== >> > src/capchroot.c:1: warning: -malign-loops is obsolete, use >> -falign-loops >> > src/capchroot.c:1: warning: -malign-jumps is obsolete, use >> -falign-jumps >> > src/capchroot.c:1: warning: -malign-functions is obsolete, use >> > -falign-functions >> > src/capchroot.c:1: error: -mpreferred-stack-boundary=2 is not between >> 4 >> > and 12 >> >> sounds to me like your build system (rpm-build?) specifies > > The .spec file inside the src.rpm very probably specifies the CFLAGS > somehow. > >> some compiler/linker options, which are not approved by >> the toolchain you are using ... > > ACK. "Old" .spec file with old option for a newer gcc. > >> read: this looks like a CentOS problem to me > > More a rpm problem. > Solution: > - `rpm -i` the src.rpm > - find the approriate .spec file of it (which is in `rpm --eval > "%{_topdir}/SPECS") > - find the the above options and update them (inside the .spec file) > - `rpmbuild -ba xxx.spec` > > Bernd > -- > Firmix Software GmbH http://www.firmix.at/ > mobil: +43 664 4416156 fax: +43 1 7890849-55 > Embedded Linux Development and Services > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.