RPM

Comment 11 for bug 689896

Revision history for this message
Sébastien Luttringer (seblu) wrote : Re: [Bug 689896] Re: Unable to compile rpm 5.3.6

On Thu, Dec 16, 2010 at 2:19 AM, Jeff Johnson <email address hidden> wrote:
> Yes rpm is quite complicated to build.
>
> See the platforms (and more importantly the build options)
> in the top-level devtool.conf file. rpm-5.3.6 was building
> on almost all of those platforms with the given options
> under buildbots' for all of November. That of course
> doesn't help you too much with an Arch linux build.
Thanks, this a great to see examples.

> The %static stanza in devtool.conf is more minimalistic than most.
ok...
-- no operation
checking magic.h usability... yes
checking magic.h presence... yes
checking for magic.h... yes
checking for magic_open in -lmagic... yes
checking whether to build with File (magic) library... yes (external:
implicitly)
++ executing success action
++ searching location: internal
-- skipping not existing local sub-directory: db3
configure: error: unable to find internal Berkeley-DB library

> Regarding the 1st pastebin ... Do you really want -lgomp? There's little
> benefit.
ld claims symbols from gomp libs, adding this remove error. I believe yes.

> Compiling without neon should simplify a lot of the build too: --without-neon
> (neon is what drags in XML linkages). Preferring --with-neon=internal (what is in 5.3.6)
> also means that all other build options must be explicitly added. If external,
> pkgconfig often supplies additional flags.
>
> Regarding the last pastebin with missing _dbiPool/db3free.
>
> The db3Free is a #define in rpmdb/rpmdb.h under #if defined(WITH_DB).
> That's also gonna be the case with _dbiPool.
>
> You could try editing config.h after running ./configure and
> enabling WITH_DB.
>
> And another approach (if you don't want /usr/include/db51) would
> be to crate a symlink in the rpm-5.3.6 top directory:
>    ln -s /usr/include db51
> That won't fix ./configure detection, but should find db.h.

After configuring with ./configure --prefix=/usr --sysconfdir=/etc
--localstatedir=/var --with-python=python2 --without-selinux
--with-beecrypt=external --with-neon=internal
editing the config.h to define WITH_DB and running make =>
http://pastebin.com/RfidCJJU

Seriously, i tried on ubuntu 10.10 with params from devtool.conf. The
same on fedora. In each case the source doesn't compile. Do you really
thing this is a stable relase or rpm5?

So please, just give me a platform where i can see it compiling, I
want to believe it compile somewhere!

--
Sébastien Luttringer
www.seblu.net