Re: [vserver] I need some help ....

From: Bernd Petrovitsch <bernd_at_firmix.at>
Date: Thu 18 Jun 2009 - 11:46:08 BST
Message-Id: <1245321968.27056.5.camel@spike.firmix.at>

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
Received on Thu Jun 18 11:46:56 2009
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 18 Jun 2009 - 11:46:58 BST by hypermail 2.1.8