RPM Community Forums

Mailing List Message of <rpm-users>

Re: rpm errors upon running

From: Miller, Vincent (Rick) <vmiller@verisign.com>
Date: Thu 23 Jun 2011 - 19:04:58 CEST
Message-ID: <CA28E9A9.2D6F%vmiller@verisign.com>
I had not loaded berkely-db because I thought I had read somewhere that there was a bundled berkley-db with RPM5.  I have since loaded Berkley-DB 5.1.x from FreeBSD ports and was able to get the compile to move along further.

It failed later when attempting to link against libgomp which is not installed on the system.  I am planning to reconfigure disabling OpenMP, unless it provides a feature we might be able to utilize.  Can you clarify the features OpenMP provides to RPM5?

Vincent (Rick) Miller
Systems Engineer

t: 703-948-4395
21345 Ridgetop Cir Dulles, VA 20166


From: Jeff Johnson <n3npq@mac.com<mailto:n3npq@mac.com>>
Reply-To: <rpm-users@rpm5.org<mailto:rpm-users@rpm5.org>>
Date: Mon, 20 Jun 2011 14:30:26 -0400
To: <rpm-users@rpm5.org<mailto:rpm-users@rpm5.org>>
Subject: Re: rpm errors upon running

(sorry for the empty msg)

On Jun 20, 2011, at 2:23 PM, Miller, Vincent (Rick) wrote:

Great…thanks.  Got a RPM 5.3.11 tarball.

I configure as followed and it exited normally:

./configure —with-expat —with-path-magic=/usr/share/misc/magic CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" LIBS="-lgss"

I then ran gmake and it errored during the compile in rpmdb with:

gmake[4]: Entering directory `/usr/home/vmiller/rpm-5.3.11/rpmdb'
/usr/local/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc  -I../db -I../db -I../db/src -I../db/src -I../scripts -I../scripts -I/usr/local/include -DRPM_OS_FREEBSD=080200 -I/usr/local/include   -I/usr/local/include   -I/usr/local/include -DRPM_OS_FREEBSD=080200 -I/usr/local/include   -I/usr/local/include   -fopenmp -g -O2 -fno-delete-null-pointer-checks -D_FORTIFY_SOURCE=2 -fstack-protector -fexceptions -fexceptions -Wno-missing-field-initializers -D_GNU_SOURCE -D_REENTRANT     -MT librpmdb_la-dbconfig.lo -MD -MP -MF .deps/librpmdb_la-dbconfig.Tpo -c -o librpmdb_la-dbconfig.lo `test -f 'dbconfig.c' || echo './'`dbconfig.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../db -I../db -I../db/src -I../db/src -I../scripts -I../scripts -I/usr/local/include -DRPM_OS_FREEBSD=080200 -I/usr/local/include -I/usr/local/include -I/usr/local/include -DRPM_OS_FREEBSD=080200 -I/usr/local/include -I/usr/local/include -fopenmp -g -O2 -fno-delete-null-pointer-checks -D_FORTIFY_SOURCE=2 -fstack-protector -fexceptions -fexceptions -Wno-missing-field-initializers -D_GNU_SOURCE -D_REENTRANT -MT librpmdb_la-dbconfig.lo -MD -MP -MF .deps/librpmdb_la-dbconfig.Tpo -c dbconfig.c  -fPIC -DPIC -o .libs/librpmdb_la-dbconfig.o
In file included from dbconfig.c:14:
./rpmdb.h:433: error: expected specifier-qualifier-list before 'DB_SEQUENCE'
./rpmdb.h:490: error: expected specifier-qualifier-list before 'DB_LOGC'

You are not finding db.h for some reason.

What  version of Berkeley DB?

Where is it? More specifically, RPM expects
#include <db51/db.h>
to find the correct db.h to include.

73 de Jeff
Received on Sat Jun 25 01:11:00 2011
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.