RPM Community Forums

Mailing List Message of <rpm-users>

Re: libzypp and rpm-5.3.10

From: Eric MSP Veith <eveith@wwweb-library.net>
Date: Sat 30 Jul 2011 - 21:25:10 CEST
Message-Id: <201107301925.17166.eveith@wwweb-library.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 30 July 2011, Eric MSP Veith <eveith@wwweb-library.net> wrote:
> /usr/src/gnyubuild/build/libzypp-9.8.9/zypp/target/rpm/BinHeader.cc:12:
> /usr/include/rpm/rpmdb.h: In function 'DB_TXN* dbiTxnid(_dbiIndex*)':
> /usr/include/rpm/rpmdb.h:863:50: error: invalid conversion from 'void*'
>  to 'DB_TXN*'

Uumph, sorry for bothering you. It's fairly simple after a cup of tea. 

int* a = malloc(sizeof(int));

is correct C code, because the implicit conversion from void* to whatever* 
is allowed in C89. But not in C++...

I always though that an extern "C" {} would take care of that. Hum. Guess 
I'll need to edit sources then?

			Eric
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQIcBAEBAgAGBQJONFqXAAoJEIXD2TZ1epVBiGkP/3mum7kjKWj2CfaAL7JnTeOE
3Jt3ObGJLrgTVn22ubiFH2TC6grQXII16+1y1HCLNVGcMpzWC3us70cOf5fHjiY7
hCOJZKEixE92ysR9diaWBnHSqg/7vT/SIaq/4rNmkaV3IhSBS+mybPNbxNujbP5e
9CenlcQWu8UNlbRNVTtrwg9cw2jRtn6eBqm2bKvzHi7ASwK58WiJV3co6fMpWKB2
zYdXl/w0ccY4Lj3hb0h9DdT8TbL/2btljOL8DBGS70y+wP8eER+0r5gJnz7kTXSM
qNtetghyFTxCKOj7r1opYw4kt3uWNx9fSmsLZgpk3Le+2IXSIG2zzkdc3z1yAB4F
KXg21psYSCRCEHce5Tk5rZjrP+/wlTKJujQXsjdiHE/nvB/tMiR9jP/sWhbR95om
oc7it40SkpM3yrKev3PerOAtmdWBK9PxrIIuTKU/X2Adzu7kBZoZkIU1I2O6NtcW
8dx+xMOfGUab5Z4Z6cx51/OoG7iSAE/Y80/8c9T2RWW9qMmFkOkht+uVxEugPcmG
t73pRcWXUhILLMFFUPdZMQfpVdEtSLjz7MT7Wg98Qg6fQy0cmR1ZAZcz3cd4LEe4
ajjfE1tgEqDsnYOK1JNf/eDFZkwvo0+lpDmH34L+tff8p3YfmbN8l0jiWGE/9tHu
0L3i7uPlTcQBulRL2M8p
=TzBG
-----END PGP SIGNATURE-----
Received on Sat Jul 30 21:25:24 2011
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.