Hi!
I was trying to build programs which need ldns library on mingw (cross
compiling).
The library itself does compile, however when linking --
/tmp/cci2q85W.o:ldns_resolv.c:(.text+0x55): undefined reference to
`ldns_dname_new_frm_str'
/tmp/cci2q85W.o:ldns_resolv.c:(.text+0x7e): undefined reference to
`ldns_resolver_new_frm_file'
/tmp/cci2q85W.o:ldns_resolv.c:(.text+0xaa): undefined reference to
`ldns_resolver_query'
/tmp/cci2q85W.o:ldns_resolv.c:(.text+0xba): undefined reference to
`ldns_rdf_deep_free'
/tmp/cci2q85W.o:ldns_resolv.c:(.text+0xe7): undefined reference to
`ldns_pkt_rr_list_by_type'
/tmp/cci2q85W.o:ldns_resolv.c:(.text+0xf7): undefined reference to
`ldns_rr_list2str'
/tmp/cci2q85W.o:ldns_resolv.c:(.text+0x107): undefined reference to
`ldns_rr_list_deep_free'
/tmp/cci2q85W.o:ldns_resolv.c:(.text+0x113): undefined reference to
`ldns_pkt_free'
/tmp/cci2q85W.o:ldns_resolv.c:(.text+0x11f): undefined reference to
`ldns_resolver_deep_free'
/home/de/mxe/usr/lib/gcc/i686-pc-mingw32/4.8.1/../../../../i686-pc-mingw32/bin/ld:
/tmp/cci2q85W.o: bad reloc address 0x20 in section `.eh_frame'
/home/de/mxe/usr/lib/gcc/i686-pc-mingw32/4.8.1/../../../../i686-pc-mingw32/bin/ld:
final link failed: Invalid operation
collect2: error: ld returned 1 exit status
Compiling with -lldns