2.4.0 master build problem with libdkimrep

From: Todd Lyons <tlyons_at_ivenue.com>
Date: Mon, 9 May 2011 09:39:14 -0700

I did a pull on master and was able to make a gzip tarball on my
Ubuntu workstation. Per the previous email, I had to install
libmemcache-dev (for Ubuntu) and use the following cli:

LIBMEMCACHED_LIBS=/usr/lib64 LIBMEMCACHED_CFLAGS="/usr/inlcude" make dist-gzip

I copied the tarball over to my CentOS 4.9 text box and am building
with the following command. It can't find openssl/md5.h when building
dkim-rep.o:

LIBMEMCACHED_LIBS=/usr/lib64 LIBMEMCACHED_CFLAGS="/usr/include" sh
/download/INSTALL_opendkim.Ivenue --enable-arlib
--enable-dkim_reputation
<snip>
make[3]: Entering directory `/disk1/download/opendkim-2.4.0/libdkimrep'
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99
-DHAVE_CONFIG_H -I. -I.. -DCONFIG_BASE=\"/usr/local/etc\" -g -MT
dkim-rep.lo -MD -MP -MF .deps/dkim-rep.Tpo -c -o dkim-rep.lo
dkim-rep.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..
-DCONFIG_BASE=\"/usr/local/etc\" -g -MT dkim-rep.lo -MD -MP -MF
.deps/dkim-rep.Tpo -c dkim-rep.c -o dkim-rep.o
dkim-rep.c:37:26: openssl/md5.h: No such file or directory
dkim-rep.c: In function `dkim_rep_md5_to_string':
dkim-rep.c:299: error: `MD5_DIGEST_LENGTH' undeclared (first use in
this function)
dkim-rep.c:299: error: (Each undeclared identifier is reported only once
dkim-rep.c:299: error: for each function it appears in.)
dkim-rep.c:310: warning: implicit declaration of function `MD5_Final'
dkim-rep.c: In function `dkim_rep_query_start':
dkim-rep.c:502: error: `MD5_CTX' undeclared (first use in this function)
dkim-rep.c:502: error: syntax error before "md5_user"
dkim-rep.c:507: error: `MD5_DIGEST_LENGTH' undeclared (first use in
this function)
dkim-rep.c:530: warning: implicit declaration of function `MD5_Init'
dkim-rep.c:530: error: `md5_user' undeclared (first use in this function)
dkim-rep.c:531: warning: implicit declaration of function `MD5_Update'
dkim-rep.c:544: error: `md5_domain' undeclared (first use in this function)
dkim-rep.c:558: error: `md5_signdomain' undeclared (first use in this function)
make[3]: *** [dkim-rep.lo] Error 1
make[3]: Leaving directory `/disk1/download/opendkim-2.4.0/libdkimrep'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/disk1/download/opendkim-2.4.0/libdkimrep'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/disk1/download/opendkim-2.4.0'
make: *** [all] Error 2

CentOS49[root_at_smtp4 ~]# locate openssl/md5.h
/usr/local/ssl/include/openssl/md5.h

I've little autoconf fu so am not sure how to pass the discovery of
ssl from ./configure (shown below) down into the
libdkimrep/Makefile.{am,in} files.

checking for OpenSSL includes... /usr/local/ssl
<snip>
checking openssl/md5.h usability... yes
checking openssl/md5.h presence... yes
checking for openssl/md5.h... yes

I've temporarily built it without enabling dkim reputation and it
builds successfully. Watching to see how it runs now. Current build
command looks like:
./configure --with-lua --with-openssl=/usr/local/ssl
--with-odbx=/usr/local --disable-shared --enable-stats --enable-debug
--enable-diffheaders --enable-sender_macro --enable-redirect
--enable-adsp_lists --enable-atps --enable-maxverify --enable-statsext
--enable-arlib

-- 
Regards...      Todd
"It is the nature of the human species to reject what is true but
unpleasant and to embrace what is obviously false but comforting."
"You might be a skeptic if you have pedantically argued the topic of pedantry."
Received on Mon May 09 2011 - 16:39:52 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:33:10 PST