[asterisk-embedded] Asterisk-embedded with uclibc

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sat Nov 10 03:17:33 CST 2007


On Fri, Nov 09, 2007 at 04:22:37PM +0000, Arkaitz wrote:
> Hi list,
> I've read in previous emails at this list that asterisk is compilable
> with uclibc, but i am having problems doing it.
> I am compiling asterisk-1.4.10 with uclibc-0.9.29 under the
> openembedded system for the angstrom-uclibc distribution.
> The fail is due to a unresolved symbol that it's not supported at
> uclibc, GLOB_NOMAGIC. It is listed at glob.h as not supported by
> uclibc.
> But i am just starting with this so maybe i miss something.
> Any idea?
> Thanks.

GLOB_NOMAGIC seems to be only used once in main/config.c . It can be
safely dropped there if your system doesn't support it.

So add right before it:

#define GLOB_NOMAGIC 0

to make things compile. The man page of glob() states:

       The  flags may also include some of the following, which are GNU exten‐
       sions and not defined by POSIX.2:
...
       GLOB_NOMAGIC
              which  means  that  the  pattern  is  returned if it contains no
              metacharacters,

So if you have:

#include whatever

And 'whatever' has no special characters like '*', it will be returned as-is and not be expanded by glob().

-- 
               Tzafrir Cohen       
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-embedded mailing list