OpenDKIM 2.9.0 build issues on CentOS 6.5

From: Patrick Lists <opendkim-list_at_puzzled.xs4all.nl>
Date: Tue, 14 Jan 2014 04:06:15 +0100

Hi,

Here is a summary of the OpenDKIM 2.9.0 build issues I see on CentOS 6.5
x86_64:

1) --disable-rpath

This does not seem to work as rpmbuild still fails saying it has
detected rpaths:

ERROR 0001: file '/usr/sbin/opendkim-testkey' contains a standard
rpath '/usr/lib64' in [/usr/lib64]
ERROR 0001: file '/usr/sbin/opendkim-genzone' contains a standard
rpath '/usr/lib64' in [/usr/lib64]
ERROR 0001: file '/usr/sbin/opendkim-testadsp' contains a standard
rpath '/usr/lib64' in [/usr/lib64]
ERROR 0001: file '/usr/sbin/opendkim' contains a standard rpath
'/usr/lib64' in [/usr/lib64]
ERROR 0001: file '/usr/sbin/opendkim-stats' contains a standard rpath
'/usr/lib64' in [/usr/lib64]
ERROR 0001: file '/usr/sbin/opendkim-testmsg' contains a standard
rpath '/usr/lib64' in [/usr/lib64]
ERROR 0001: file '/usr/bin/miltertest' contains a standard rpath
'/usr/lib64' in [/usr/lib64]


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'
opendkim-db.c:3212: warning: unused variable 'ss'
opendkim-db.c:3157: warning: unused variable 'colon'
opendkim-db.c: In function 'dkimf_db_get':
opendkim-db.c:4731: warning: unused variable 'r'
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)


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


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

Output from configure during rpmbuild:

checking for library containing event_enable_debug_mode... no
configure: error: libevent not found in /usr

$ rpm -ql libevent libevent-devel libevent-headers

/usr/lib64/libevent-1.4.so.2
/usr/lib64/libevent-1.4.so.2.1.3
/usr/lib64/libevent_core-1.4.so.2
/usr/lib64/libevent_core-1.4.so.2.1.3
/usr/lib64/libevent_extra-1.4.so.2
/usr/lib64/libevent_extra-1.4.so.2.1.3
/usr/share/doc/libevent-1.4.13
/usr/share/doc/libevent-1.4.13/README
/usr/bin/event_rpcgen.py
/usr/lib64/libevent.a
/usr/lib64/libevent.so
/usr/lib64/libevent_core.a
/usr/lib64/libevent_core.so
/usr/lib64/libevent_extra.a
/usr/lib64/libevent_extra.so
/usr/share/man/man3/evdns.3.gz
/usr/share/man/man3/event.3.gz
/usr/include/evdns.h
/usr/include/event-config.h
/usr/include/event.h
/usr/include/evhttp.h
/usr/include/evrpc.h
/usr/include/evutil.h


Hope this helps.

Regards,
Patrick
Received on Tue Jan 14 2014 - 03:06:23 PST

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