[Asterisk-Dev] compile problems with db

Jason Pyeron jpyeron at pdinc.us
Tue Oct 11 07:57:24 MST 2005


On Tue, 11 Oct 2005, Dinesh Nair wrote:

>
>
> On 10/11/05 12:06 Jason Pyeron said the following:
>> dns.o: In function `ast_search_dns':
>> /tmp/asterisk/dns.c:199: undefined reference to `___res_ninit'
>> /tmp/asterisk/dns.c:200: undefined reference to `___res_nsearch'
>> /tmp/asterisk/dns.c:219: undefined reference to `___res_nclose'
>> utils.o: In function `ast_gethostbyname':
>> /tmp/asterisk/utils.c:195: undefined reference to `_gethostbyname_r'
>> collect2: ld returned 1 exit status
>> make: *** [asterisk] Error 1
>
> looks like a missing -L for library paths somewhere.
>
>

thanks, I patched the makefile to fix ___res_n*
patched utils.c for gethostbyname_r

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Partner & Sr. Manager             7 West 24th Street #100     -
- +1 (443) 921-0381                 Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you 
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.



More information about the asterisk-dev mailing list