nlinley wrote:
I'm trying to build exim with domainkeys and have been running into a
bunch of errors. I'm running slackware 10.1.
When trying to compile libdomainkeys 0.68, I get this
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
That is a problem with the Makefile, its not detecting the dns.lib
target correctly. A quick fix will be doing "echo -lresolv > dns.lib"
then running make
I made some notes in the CVS copy of the readme but yea it should of
been in there earlier.
After giving up on this, I tried version 0.67 which seemed to compile
fine. When I tried to compile exim however, I received a long list
of errors. (This happened in any exim version i tried 4.51-4.60).
Here are some of the undefined values...
/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'
/root/libdomainkeys-0.67//libdomainkeys.a(domainkeys.o)(.text+0xc0):
In function
`dk_init':
Does anyone know what I might be missing here?
It's not finding your openssl libs. Quickest solution (that is if you
have the libs installed) is to add the path to the makefile (-L <path>)
Timothy Der
--
## 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/