RPM Community Forums

Mailing List Message of <rpm-devel>

Re: multiple definitions of symbol _strict_erasures

From: Ralf S. Engelschall <rse+rpm-devel@rpm5.org>
Date: Tue 04 Mar 2008 - 13:23:22 CET
Message-ID: <20080304122322.GA80788@engelschall.com>
On Tue, Mar 04, 2008, Anders F Björklund wrote:

> ./devtool.log:/usr/bin/ld: multiple definitions of symbol _strict_erasures
> ./devtool.log:../lib/.libs/librpm.a(fsm.o) definition of _strict_erasures
> in section (__DATA,__data)
> ./devtool.log:../rpmio/.libs/librpmio.a(iosm.o) definition of
> _strict_erasures in section (__DATA,__data)
>
> Seems to be some kind of local that got exported ?
>
> Worked around with "static int strict_erasures = 0;"

Yes, the "static" seems to be the suitable solution.
Now committed as I stumbled over this myself, too.

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com
Received on Tue Mar 4 13:31:49 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.