The dns.c file has not changed any so the patch from bug #66557 should still be good.
Created attachment 45033 [details, diff] fixed patch This patch works for me
vs commenting stuff out perhaps you may want to -if defined(res_ninit) +if (defined(res_ninit) && !defined(__UCLIBC__))
lol, thanks for the tip. Although I can sort of read C I haven't exactly ever done much in it. I just kinda got lucky that the comments worked, checked with the asterisk dev's they didn't seem to think it would hurt so I submitted it... running fine so far in my development...test...production...work enviornment ;) Where does __UCLIBC__ get defined?
REdOG the define __UCLIBC__ comes from features.h Nearly every include we ever will encounter picks up features.h on way or the other like stdio/unistd/... Heres a simple test to see if we are building for a uclibc system. echo '#include <features.h>' | gcc -dM -E - | grep __UCLIBC__
solar's proposed changes have been added to recent versions of asterisk, could somebody with uclibc setup please test them? :)
Worked for me! Portage 2.0.51-r15 (uclibc/x86/linux26, gcc-3.3.5, uclibc-0.9.27-r0, 2.6.9-gentoo-r4-redpepper i686) ================================================================= System uname: 2.6.9-gentoo-r4-redpepper i686 Gentoo Base System version 1.4.16 Python: dev-lang/python-2.4 [2.4 (#1, Dec 14 2004, 02:19:51)] ccache version 2.3 [enabled] dev-lang/python: 2.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.8.5-r2, 1.6.3, 1.7.9, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r3 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-Os -pipe" CHOST="i386-pc-linux-uclibc" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks nodoc noinfo noman sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 apache2 berkdb cdr fbcon gd gdbm jpeg libpng maildir mmx mysql ncurses odbc ogg perl png python readline samba slang socks5 speex sqlite ssl tiff uclibc vhosts vorbis xml2 zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
thanks for the feedback ! :)