Re: OpenDKIM 2.9.0 build issues on CentOS 6.5

From: Murray S. Kucherawy <msk_at_blackops.org>
Date: Tue, 14 Jan 2014 01:09:45 -0800 (PST)

In addition to the open tasks request:

On Tue, 14 Jan 2014, Patrick Lists wrote:
> 1) --disable-rpath
>
> This does not seem to work as rpmbuild still fails saying it has detected
> rpaths:

It would be helpful to have at least "config.log" for this one, or
possibly a complete build transcript, attached to the bug.

> 2) --enable-socketdb
>
> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I./../libopendkim -I/usr/include
> -I/usr/include -I/usr/local/include -I/usr/include -I/usr/include
> -I/usr/include -DCONFIG_BASE=\"/etc\" -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic -MT
> opendkim_genzone-opendkim-db.o -MD -MP -MF
> .deps/opendkim_genzone-opendkim-db.Tpo -c -o opendkim_genzone-opendkim-db.o
> `test -f 'opendkim-db.c' || echo './'`opendkim-db.c
> opendkim-db.c: In function 'dkimf_db_open':
>
> [snip warnings]
>
> opendkim-db.c:3193: error: 'struct sockaddr_un' has no member named 'sun_len'

Easy fix; it's already there for miltertest, just not for this file.

> opendkim-db.c:5084: error: 'memcached_return_t' undeclared (first use in this
> function)
> opendkim-db.c:5084: error: (Each undeclared identifier is reported only once
> opendkim-db.c:5084: error: for each function it appears in.)
> opendkim-db.c:5084: error: expected ';' before 'ret'
> opendkim-db.c:5097: error: 'ret' undeclared (first use in this function)

This seems to be the same as your third case:

> 3) --with-libmemcached results in the following compilation failure:
>
> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I./../libopendkim -I/usr/include
> -I/usr/include -I/usr/local/include -I/usr/include -I/usr/include
> -I/usr/include -DCONFIG_BASE=\"/etc\" -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic -MT
> opendkim_genzone-opendkim-db.o -MD -MP -MF
> .deps/opendkim_genzone-opendkim-db.Tpo -c -o opendkim_genzone-opendkim-db.o
> `test -f 'opendkim-db.c' || echo './'`opendkim-db.c
>
> [snip warnings]
>
> opendkim-db.c:5084: error: 'memcached_return_t' undeclared (first use in this
> function)
> opendkim-db.c:5084: error: (Each undeclared identifier is reported only once
> opendkim-db.c:5084: error: for each function it appears in.)
> opendkim-db.c:5084: error: expected ';' before 'ret'
> opendkim-db.c:5097: error: 'ret' undeclared (first use in this function)
> opendkim-db.c: In function 'dkimf_db_walk':
> opendkim-db.c:6258: warning: unused variable 'databuf'
> make[3]: *** [opendkim_genzone-opendkim-db.o] Error 1

Which version of libmemcached are you using? The documentation at
libmemcached.org suggests this is still correct, though I last tried it
against 0.48 and it looks like upgrading will be a pain.

> 4) --with-libevent fails to detect installed libevent, libevent-devel and
> libevent-headers

It doesn't try because I don't know what names those RPMs export such that
pkg-config could be used. Right now configure doesn't check "lib64" which
it appears you're using, which is the problem on your machine. What name
should I be passing to PKG_CHECK_MODULES to get these right?

-MSK
Received on Tue Jan 14 2014 - 09:10:04 PST

This archive was generated by hypermail 2.3.0 : Tue Jan 14 2014 - 09:18:02 PST