RPM Community Forums

Mailing List Message of <rpm-users>

Re: RPM5 on FreeBSD: hto* functions

From: Anders F Björklund <afb@rpm5.org>
Date: Sat 25 Jun 2011 - 10:39:47 CEST
Message-Id: <2F69FC83-82BF-4A74-90DD-C71D9982E987@rpm5.org>
Miller, Vincent (Rick) wrote:

> I'm compiling RPM 5.3.11 on FreeBSD 8.2-RELEASE and encountered an error that is more fundamental than previous errors.  dbconvert.c  makes calls to various hto*() functions, which are not defined in FreeBSD's libc.

See http://rpm5.org/cvs/chngview?cn=16081 for patch, you can backport that to the rpm-5_3 branch.

> Why is the compiler unable to reference the bswap32 definition in sys/endian.h?  Is there a way to force this or is this a sign that installing RPM5 onto FreeBSD will be more of a pain than I had initially anticipated?

Maybe the dbconvert.c #define for bswap32 is colliding with it ? RPM5 should install on FreeBSD...


That is: HEAD should be working, I don't think anyone has backported to
5.3.x or 5.4.x due to lack of interest... Most "users" are on 5.0 - 5.2,
if there's indeed any usage on FreeBSD whatsoever (except for archiving).

The BSD and Mac ports are currently using 5.2.1, that is the pre-ACID RPM:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/archivers/rpm5/
https://trac.macports.org/browser/trunk/dports/sysutils/rpm52/

--anders
Received on Sat Jun 25 21:49:49 2011
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.