Menu

#6 --with-libares but "async dns: no"

closed
nobody
None
5
2012-09-28
2006-08-16
Bjoern
No

Using this command to configure libares.

./configure --prefix=/usr --host=i686-pc-linux-gnu --
mandir=/usr/share/man --infodir=/usr/share/info --
datadir=/usr/share --sysconfdir=/etc --localstatedir=/
var/lib --with-libares --with-libxml2 --enable-nls --
enable-metalink --with-gnutls --without-openssl --
build=i686-pc-linux-gnu

gives the following when running "aria2 -v"

Configuration
http: yes
https: yes
ftp: yes
bittorrent: yes
metalink: yes
message digest: yes
async dns: no

Any ideas?

Regards
Bjoern

Discussion

  • Bjoern

    Bjoern - 2006-08-16
     
  • tujikawa

    tujikawa - 2006-08-17

    Logged In: YES
    user_id=1450148

    Check your system to make sure ares library is installed.
    It is usually located at /usr/lib/libares.so.

    In Debian system, ares library is packaged as libares0.

     
  • Bjoern

    Bjoern - 2006-08-17

    Logged In: YES
    user_id=1577209

    Okay, I use gentoo and there is an wbuild called c-ares
    (http://daniel.haxx.se/projects/c-ares/)

    I thougth this would do the trick, but the libs are called

    /usr/lib/libcares.so
    /usr/lib/libcares.so.0.0.0
    /usr/lib/libcares.so.0
    /usr/lib/libcares.la
    /usr/lib/libcares.a

    Linking /usr/lib/libcares.so.0.0.0 to /usr/lib/libares.so
    does the trick. So now the big question.
    Whom to asign a but, you, for not searching for
    libcares.so.0 ;-) or the c-ares maintainers...

    Any ideas, what should be the default?

    Best regards, and many thanks
    Bjoern

     
  • Bjoern

    Bjoern - 2006-08-17

    Logged In: YES
    user_id=1577209

    sry, for the double post.

    Linking works for the configuration, but fails while
    compiling.

    Could you provid a link to the sources of ares which work?
    Thanks

    NameResolver.cc: In function void callback(void*, int, hostent*)': /usr/include/ares.h:174: error: too many arguments to functionconst char* ares_strerror(int)'
    NameResolver.cc:27: error: at this point in file
    distcc[22355] ERROR: compile NameResolver.cc on 10.0.123.1
    failed
    make[2]: *** [NameResolver.o] Fehler 1
    make[2]: *** Warte auf noch nicht beendete Prozesse...
    make[2]: Leaving directory /var/tmp/portage/aria2-0.7.1/ work/aria2-0.7.1/src' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory/var/tmp/portage/aria2-0.7.1/
    work/aria2-0.7.1'
    make: *** [all] Fehler 2

    !!! ERROR: net-misc/aria2-0.7.1 failed.
    Call stack:
    ebuild.sh, line 1543: Called dyn_compile
    ebuild.sh, line 938: Called src_compile
    aria2-0.7.1.ebuild, line 40: Called die

     
  • Tiziano Müller

    Tiziano Müller - 2006-08-17

    Logged In: YES
    user_id=935305

    We don't have the ares library in Gentoo (probably because
    it's unmaintained, last version dates from 2001), only the
    newer c-ares lib which is a fork of ares.

     
  • Ant Bryan

    Ant Bryan - 2006-08-18

    Logged In: YES
    user_id=1400528

    Fedora also has c-ares
    (http://daniel.haxx.se/projects/c-ares/) rpms in Extras
    (for those of us who like avoiding compiling stuff if possible).

    From looking at the filesizes, ares is 64k while c-ares is
    311k. c-ares is still being maintained tho.

    ' Some noticable changes from ares include:

    * IPv6 support
    * Many bug fixes
    * Extended portability (Mac OS X, RISC OS, Windows, DOS
    

    and more)
    * 64bit cleaned sources
    * New functions (ares_cancel(), ares_expand_string(),
    ares_version() and more) '

     
  • tujikawa

    tujikawa - 2006-08-18

    Logged In: YES
    user_id=1450148

    I chose ares over c-ares because c-ares is not packaged in
    debian.

    So far, according to the posts and the patch by
    tizianomueller, the differences between c-ares and ares are
    library name and the number of args of ares_strerror.
    I'll add auto detection mechanism for c-ares and ares. It is
    just a few lines of coding in configure script and #ifdef stuff.

    thanks.

     
  • tujikawa

    tujikawa - 2006-08-28

    Logged In: YES
    user_id=1450148

    Close this issue since it was solved in 0.7.2 release.

     

Log in to post a comment.

MongoDB Logo MongoDB