Re: [exim] Exim and domainkeys compile problems

Etusivu
Poista viesti
Vastaa
Lähettäjä: Tony Finch
Päiväys:  
Vastaanottaja: nlinley
Kopio: exim-users
Aihe: 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}}