Building with DB on CentOS/RHEL

From: Steve Jenkins <stevejenkins_at_gmail.com>
Date: Sun, 12 May 2013 12:26:23 -0700

For the 2.8.3 version of the CentOS OpenDKIM package, I'm running into a
problem. Here are the warnings and error coughed up by the build log:

opendkim-db.c: In function 'dkimf_db_open':
opendkim-db.c:1950: warning: pointer targets in passing argument 1 of
'dkimf_trimspaces' differ in signedness
opendkim-db.c:1965: warning: pointer targets in passing argument 1 of
'dkimf_trimspaces' differ in signedness
opendkim-db.c:2004: warning: pointer targets in passing argument 1 of
'dkimf_trimspaces' differ in signedness
opendkim-db.c:2021: warning: pointer targets in passing argument 1 of
'dkimf_trimspaces' differ in signedness
opendkim-db.c:2162: warning: pointer targets in passing argument 1 of
'dkimf_trimspaces' differ in signedness
opendkim-db.c:2175: warning: pointer targets in passing argument 1 of
'dkimf_trimspaces' differ in signedness
opendkim-db.c:2202: warning: pointer targets in passing argument 1 of
'dkimf_trimspaces' differ in signedness
opendkim-db.c:2219: warning: pointer targets in passing argument 1 of
'dkimf_trimspaces' differ in signedness
opendkim-db.c:2368: warning: pointer targets in passing argument 1 of
'dkimf_trimspaces' differ in signedness
opendkim-db.c:3053: warning: unused variable 'ns'
opendkim-db.c: In function 'dkimf_db_get':
opendkim-db.c:5089: error: 'memcached_return_t' undeclared (first use in
this function)
opendkim-db.c:5089: error: (Each undeclared identifier is reported only once
opendkim-db.c:5089: error: for each function it appears in.)
opendkim-db.c:5089: error: expected ';' before 'ret'
opendkim-db.c:5102: error: 'ret' undeclared (first use in this function)
make[2]: *** [opendkim_genzone-opendkim-db.o] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/opendkim-2.8.3/opendkim'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/builddir/build/BUILD/opendkim-2.8.3/opendkim'
make: *** [install-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.25343 (%install)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.25343 (%install)
Child return code was: 1
EXCEPTION: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target i386 --nodeps
builddir/build/SPECS/opendkim.spec']
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py",
line 70, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 359, in do
    raise mockbuild.exception.Error, ("Command failed. See logs for
output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target i386 --nodeps
builddir/build/SPECS/opendkim.spec']
LEAVE do --> EXCEPTION RAISED

I'm not getting the problem in the Fedora version, and the only different
in the build requirements is that on Fedora I'm requiring libdb-devel to be
installed in the spec file vs. db4-devel on CentOS (becuse libdb isn't
available).

My configure line is:

%configure --with-unbound --with-libmemcached --with-db

Any ideas?

SteveJ
Received on Sun May 12 2013 - 19:26:37 PST

This archive was generated by hypermail 2.3.0 : Sun May 12 2013 - 19:36:01 PST