[reSIProcate-users] Linker errors when linking with resip
- From: Andrew Wood <ajwood@xxxxxxx>
- Date: Wed, 17 Dec 2008 21:09:46 +0000
Ive built the library and ended up with 4 .a files: libares libdum
libresip and librutil.
I guess the bulk of the stack is in libresip but what are the others.
Ive tried linking against them all but Im getting errors such as:
../lib/resiprocate-1.4.1/lib/lib/libresip.a(DnsResult.o): In function
`resip::DnsResult::skipDNSQuestion(unsigned char const*, unsigned char
const*, int)':
/home/andrew/xswitch/lib/resiprocate-1.4.1/resip/stack/DnsResult.cxx:679:
undefined reference to `ares_expand_name'
../lib/resiprocate-1.4.1/lib/lib/librutil.a(DnsHostRecord.o): In
function `DnsHostRecord':
/home/andrew/xswitch/lib/resiprocate-1.4.1/rutil/dns/DnsHostRecord.cxx:31:
undefined reference to `ares_expand_name'
/home/andrew/xswitch/lib/resiprocate-1.4.1/rutil/dns/DnsHostRecord.cxx:31:
undefined reference to `ares_expand_name'
../lib/resiprocate-1.4.1/lib/lib/librutil.a(DnsNaptrRecord.o): In
function `DnsNaptrRecord':
/home/andrew/xswitch/lib/resiprocate-1.4.1/rutil/dns/DnsNaptrRecord.cxx:100:
undefined reference to `ares_expand_name'
/home/andrew/xswitch/lib/resiprocate-1.4.1/rutil/dns/DnsNaptrRecord.cxx:140:
undefined reference to `ares_expand_name'
../lib/resiprocate-1.4.1/lib/lib/librutil.a(DnsNaptrRecord.o):/home/andrew/xswitch/lib/resiprocate-1.4.1/rutil/dns/DnsNaptrRecord.cxx:100:
more undefined references to `ares_expand_name' follow
../lib/resiprocate-1.4.1/lib/lib/librutil.a(AresDns.o): In function
`resip::AresDns::lookup(char const*, unsigned short,
resip::ExternalDnsHandler*, void*)':
/home/andrew/xswitch/lib/resiprocate-1.4.1/rutil/dns/AresDns.cxx:276:
undefined reference to `ares_query'
Which suggests to me libares.a isnt being found? Though Im not sure what
libares is and a Google search didnt enlighten me.
Which ones do I need to link against, am I missing something?
Thanks
Andrew