C-ares could not resolve host

These are old archives. They are kept for historic purposes only.
Post Reply
McDarby
Posts: 19
Joined: Tue Jan 11, 2005 6:58 am
Location: Bangor, Pennsylvania

C-ares could not resolve host

Post by McDarby »

Okay, I have been trying to recompile my UnrealIRCd with remote includes enabled and started with wget to get cURL.sh and tried to do sh.cURL.sh and ended up with installation failed. Then I found out it downloaded two out of date tar.gz files in which I removed and replaced with the currently versions.

Next, went and did ./curlinstall /home/nebmouse/depend/c-ares-1.7.3 /home/nebmouse/depend/curl-7.21.0 --with-system-tre --with-system-cares

Which appeared to have solved the one problem and did ./Config normally. And I finally ran into a "could not resolve host" problem when I went to try a remote include in the unrealircd.conf file. The system I am doing this on appears to be able to resolve the domain the remote include is on as shown below.

Code: Select all

; <<>> DiG 9.6.1-P1 <<>> morphforest.km-website.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50536
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;morphforest.km-website.com.    IN      A

;; ANSWER SECTION:
morphforest.km-website.com. 7464 IN     A       72.52.145.77

;; AUTHORITY SECTION:
km-website.com.         79464   IN      NS      ns1.beedragon.com.
km-website.com.         79464   IN      NS      ns2.beedragon.com.

;; Query time: 0 msec
;; SERVER: 208.98.0.7#53(208.98.0.7)
;; WHEN: Mon Jul 12 05:00:41 2010
;; MSG SIZE  rcvd: 106
I even tried the patch from http://bugs.unrealircd.org/view.php?id=3847 which did not fix it and not sure if "patch" even worked to begin with. If anyone knows of a way to fix this problem, please let me know. I am using Unreal3.2.8.1
warg
Posts: 63
Joined: Mon Jul 12, 2010 8:12 am

Re: C-ares could not resolve host

Post by warg »

Code: Select all

wget http://www.unrealircd.com/downloads/Unreal3.2.8.1.tar.gz
tar xzf Unreal3.2.8.1.tar.gz
cd Unreal3.2
wget http://c-ares.haxx.se/c-ares-1.7.3.tar.gz
tar xzf c-ares-1.7.3.tar.gz
wget http://curl.haxx.se/download/curl-7.21.0.tar.gz
tar xzf curl-7.21.0.tar.gz
./curlinstall c-ares-1.7.3 curl-7.21.0
"A foolish consistency is the hobgoblin of little minds, adored by little statesmen and philosophers and divines." — Ralph Waldo Emerson
McDarby
Posts: 19
Joined: Tue Jan 11, 2005 6:58 am
Location: Bangor, Pennsylvania

Re: C-ares could not resolve host

Post by McDarby »

Tried that and I ended up with this during "make" after "./Config"

Code: Select all

ircd.c:75:23: error: curl/curl.h: No such file or directory
ircd.c: In function 'do_version_check':
ircd.c:875: warning: assignment makes pointer from integer without a cast
ircd.c:876: error: 'LIBCURL_VERSION' undeclared (first use in this function)
ircd.c:876: error: (Each undeclared identifier is reported only once
ircd.c:876: error: for each function it appears in.)
*** Error code 1

Stop in /usr/home/nebmouse/Unreal3.2/src.
*** Error code 1

Stop in /usr/home/nebmouse/Unreal3.2.
warg
Posts: 63
Joined: Mon Jul 12, 2010 8:12 am

Re: C-ares could not resolve host

Post by warg »

You need to specify the location of curl (probably /usr/home/nebmouse/curl) when asked in ./Config.

Code: Select all

Specify the directory you installed libcurl to
[] ->  /usr/home/nebmouse/curl
The curlinstall script tells you where it is when it's finished.
"A foolish consistency is the hobgoblin of little minds, adored by little statesmen and philosophers and divines." — Ralph Waldo Emerson
McDarby
Posts: 19
Joined: Tue Jan 11, 2005 6:58 am
Location: Bangor, Pennsylvania

Re: C-ares could not resolve host

Post by McDarby »

Yeah, I am specifying the path where curl is, even trying ../curl and it is still ending with the same error.
warg
Posts: 63
Joined: Mon Jul 12, 2010 8:12 am

Re: C-ares could not resolve host

Post by warg »

It appears curl.h is nonexistent in $HOME/curl/include. A fix for this would be to manually copy it from <curl sources directory>/include/curl/curl.h to $HOME/curl/include. I'm submitting a bug report and a temporary fix.
"A foolish consistency is the hobgoblin of little minds, adored by little statesmen and philosophers and divines." — Ralph Waldo Emerson
McDarby
Posts: 19
Joined: Tue Jan 11, 2005 6:58 am
Location: Bangor, Pennsylvania

Re: C-ares could not resolve host

Post by McDarby »

I tried that fix and I have wiped all directories and started over three times already, but I am still getting the same error. I even applied the fix, but still no go. Is there anyone else on here that can help me fix this or am I going to have to submit this whole thing as a bug report?
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: C-ares could not resolve host

Post by Syzop »

Bug report #3925
CVS build of yesterday

Rename your curl to curl.old, then download the the Unr .tar.gz from above and check if it works (it should auto-download&compile curl).
If it doesn't work, post a note in the bug report from above.
Feel free to post a note when it works as well :)

[Oh ehm, since this is CVS, I can't give any guarantees with regards to stability, so you should use it with care on an important server]
Post Reply