RPM Community Forums

Mailing List Message of <rpm-devel>

beecrypt/api.h vs rpmio/rpmpgp.h

From: Anders F Björklund <afb@rpm5.org>
Date: Fri 10 Aug 2007 - 20:32:13 CEST
Message-Id: <494f78772b5da75bf7488ce579bd0224@rpm5.org>

There seems to be a power struggle between beecrypt and rpm,
in who gets first to typedef the declaration of a "byte"...

As long as beecrypt is first, all is well. But when beecrypt
is second, such as include rpmio_internal.h, then rpm loses:

In file included from /opt/local/include/beecrypt/beecrypt.h:33,
                  from ../rpmio/rpmio_internal.h:20,
                  from RPM_Files.xs:11:
/opt/local/include/beecrypt/api.h:66: error: redefinition of typedef 
'byte'
../rpmio/rpmpgp.h:18: error: previous declaration of 'byte' was here

As a workaround, I made sure that beecrypt was getting included.
http://www.algonet.se/~afb/rpm/5.0/rpm-5.0-perl_beecrypt_api.patch

--anders
Received on Fri Aug 10 20:39:49 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.