So I run commands:
1. gcc -DBIND_8_COMPAT -02 -I/usr/include/openssl -o dktest dktest.o -L.
And that should fix my problem?
-----Original Message-----
From: exim-users-bounces@??? [
mailto:exim-users-bounces@exim.org] On
Behalf Of Tony Finch
Sent: Friday, March 10, 2006 8:54 AM
To: nlinley
Cc: exim-users@???
Subject: Re: [exim] Exim and domainkeys compile problems
On Fri, 10 Mar 2006, nlinley wrote:
>
> gcc -DBIND_8_COMPAT -O2 -I/usr/include/openssl -o dktest dktest.o -L.
> -ldomainkeys -lcrypto `cat dns.lib`
> /libdomainkeys.a(dns_txt.o)(.text+0x41): In function `dns_text':
> : undefined reference to `__res_query'
> /libdomainkeys.a(dns_txt.o)(.text+0xb9): In function `dns_text':
> : undefined reference to `__dn_expand'
> /libdomainkeys.a(dns_txt.o)(.text+0x10c): In function `dns_text':
> : undefined reference to `__dn_expand'
> collect2: ld returned 1 exit status
> make: *** [dktest] Error 1
The problem here is a lack of -lresolv on the link command line.
> /root/libdomainkeys-0.67//libdomainkeys.a(domainkeys.o)(.text+0x1e):
> In function
> `dk_strdup':
> : undefined reference to `CRYPTO_malloc'
> /root/libdomainkeys-0.67//libdomainkeys.a(domainkeys.o)(.text+0x86):
> In function
> `dk_init':
> : undefined reference to `CRYPTO_malloc'
> /root/libdomainkeys-0.67//libdomainkeys.a(domainkeys.o)(.text+0x94):
> In function
> `dk_init':
> : undefined reference to `EVP_sha1'
The problem here is a lack of -lcrypto on the link command line.
Tony.
--
<fanf@???> <dot@???>
http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}
--
## List details at
http://www.exim.org/mailman/listinfo/exim-users
## Exim details at
http://www.exim.org/
## Please use the Wiki with this list -
http://www.exim.org/eximwiki/