|Summary:||ASTERISK-00738: [patch] Allow ENUM support to be left out when building Asterisk|
|Reporter:||Steve Davies . (stevedavies)||Labels:|
|Date Opened:||2004-01-05 06:21:12.000-0600||Date Closed:||2004-09-25 02:48:28|
|Environment:||Attachments:||( 0) asterisk-patch-sld-20040104-optionalenum.patch|
|Description:||The ENUM support included in Asterisk causes compilation problems on older Linux systems that doesn't have the res_ninit etc functions. Redhat 7.1 is one example.|
Here I contribute a simple patch that allows ENUM support to be disabled in the Makefile for Asterisk - this resolves the problem.
I can imagine that people might wish to leave out ENUM for other reasons.
|Comments:||By: James Golovich (jamesgolovich) 2004-02-23 01:15:08.000-0600|
There is a better way to do this. If we can find out when res_nsearch and the link were added to libc (version wise) then we can change the #ifdef __Linux__ lines in dns.c to something that also checks the libc version.
I guess maybe when this bug was filed the other code wasn't there. It was probably added by some of the *bsd porting efforts
By: James Golovich (jamesgolovich) 2004-02-23 01:44:26.000-0600
It appears that res_nsearch did not exist in glibc 2.2.2 but did in 2.2.3.
Since we've really only got __GLIBC__ and __GLIBC_MINOR__ to work with, its not easy to check these subminor versions or whatever they call.
Maybe someone else can think of an easy way to check, or some other identifier
By: Brian West (bkw918) 2004-04-18 01:52:21
I agree lets fix the problem the right way...
By: Mark Spencer (markster) 2004-04-29 18:07:42
Should already be fixed (in cvs head), can someone confirm
By: Brian West (bkw918) 2004-05-01 18:04:54
Please confirm the fix in CVS works for you. If not we will reopen.