mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Someone experienced with ldns?


From: dE
Subject: Re: [Mingw-cross-env-list] Someone experienced with ldns?
Date: Wed, 18 Feb 2015 11:20:24 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

On 02/18/15 09:13, dE wrote:
On 02/17/15 22:15, dE wrote:
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

Actually this problem is there with every package

/tmp/cc6ZNw6g.o:ares_txt_resolver.c:(.text+0x16): undefined reference to `_imp__ares_library_init' /tmp/cc6ZNw6g.o:ares_txt_resolver.c:(.text+0x24): undefined reference to `_imp__ares_init' /tmp/cc6ZNw6g.o:ares_txt_resolver.c:(.text+0x5a): undefined reference to `_imp__ares_search'

I tried ares library which has very good mingw support. And the same result.

So I compiled libregex and made test.c

#include <regex.h>
int main () {
    struct re_pattern_buffer test;
    re_compile_fastmap (&test);
}

PATH="/home/de/mxe/usr/bin:$PATH" /home/de/small/temp_small/cryptos/HFC_windows/mxe/usr/bin/i686-pc-mingw32-gcc-4.8.1 -lregex test.c /tmp/ccWVANE9.o:test.c:(.text+0x16): undefined reference to `re_compile_fastmap'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]