Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72984 - the uclibc patch included for asterisk is fubar
Summary: the uclibc patch included for asterisk is fubar
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-30 18:26 UTC by REdOG
Modified: 2005-03-14 20:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fixed patch (asterisk-uclibc-dns.diff,459 bytes, patch)
2004-11-30 18:27 UTC, REdOG
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description REdOG 2004-11-30 18:26:24 UTC
The dns.c file has not changed any so the patch from bug #66557 should still be good.
Comment 1 REdOG 2004-11-30 18:27:22 UTC
Created attachment 45033 [details, diff]
fixed patch

This patch works for me
Comment 2 solar (RETIRED) gentoo-dev 2004-12-07 21:37:31 UTC
vs commenting stuff out perhaps you may want to 

-if defined(res_ninit)
+if (defined(res_ninit) && !defined(__UCLIBC__))
Comment 3 REdOG 2004-12-07 21:53:54 UTC
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?
Comment 4 solar (RETIRED) gentoo-dev 2005-01-26 15:55:47 UTC
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__
Comment 5 Stefan Knoblich (RETIRED) gentoo-dev 2005-03-11 08:20:59 UTC
solar's proposed changes have been added to recent versions of asterisk, could somebody with uclibc setup please test them? :)
Comment 6 REdOG 2005-03-11 09:55:57 UTC
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
Comment 7 SpanKY gentoo-dev 2005-03-14 20:27:47 UTC
thanks for the feedback ! :)