[Clfs-dev] CLFS compile asterisk error

Satish Patel satish at linuxbug.org
Fri Sep 26 06:51:35 PDT 2008


Regards,

Satish Patel


Quoting wwh04660 at ucmo.edu:

>
> On Sep 25, 2008, at 12:12 PM, satish patel wrote:
>
>>
>> Hi
>>
>>      I have build CLFS ARM embedded-1.1.0 toolchain and its working fine
>> my linux working fine but I got error when I compile asterisk on this
>> toolchain
>>
>> Error is
>
>>
>>  [CC] config.c -> config.o
>> config.c: In function 'config_text_file_load':
>> config.c:803: error: 'GLOB_NOMAGIC' undeclared (first use in this function)
>> config.c:803: error: (Each undeclared identifier is reported only once
>> config.c:803: error: for each function it appears in.)
>> config.c:803: error: 'GLOB_BRACE' undeclared (first use in this function)
>
> Add #define GLOB_NOMAGIC 0   before it in config.c
>
> Might have to do the same for GLOB_BRACE
>
> GLOB_NOMAGIC, GLOB_BRACE, and maybe on other or all of GNU GLOB
> functions aren't supported in uClibc.
>
> There's a patch for glob.h to enhance it for nptl, and I doubt ya need
> to edit the header.
>
> -William
> _______________________________________________
> Clfs-dev mailing list
> Clfs-dev at lists.cross-lfs.org
> http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org

I have solve this problem after edit main/config.h file


#define GLOB_NOMAGIC 0
#define GLOB_BRACE 0

add this two line before below line.

#INCLUDE glob.h


but after that i got new error ?

clfs:~/source/asterisk-1.4.7.1$ make
make[1]: Entering directory `/home/clfs/source/asterisk-1.4.7.1/menuselect'
make[2]: Entering directory `/home/clfs/source/asterisk-1.4.7.1/menuselect'
make[2]: `menuselect' is up to date.
make[2]: Leaving directory `/home/clfs/source/asterisk-1.4.7.1/menuselect'
make[1]: Leaving directory `/home/clfs/source/asterisk-1.4.7.1/menuselect'
menuselect/menuselect --check-deps   menuselect.makeopts
Generating embedded module rules ...
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
    [LD] abstract_jb.o acl.o aescrypt.o aeskey.o aestab.o alaw.o app.o  
ast_expr2.o ast_expr2f.o asterisk.o astmm.o autoservice.o callerid.o  
cdr.o channel.o chanvars.o cli.o config.o cryptostub.o db.o  
devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o file.o  
fixedjitterbuf.o frame.o fskmodem.o http.o image.o indications.o io.o  
jitterbuf.o loader.o logger.o manager.o md5.o netsock.o pbx.o plc.o  
privacy.o rtp.o say.o sched.o sha1.o slinfactory.o srv.o  
stdtime/localtime.o strcompat.o tdd.o term.o threadstorage.o  
translate.o udptl.o ulaw.o utils.o editline/libedit.a db1-ast/libdb1.a  
-> asterisk
dns.o: In function `ast_search_dns':
/home/clfs/source/asterisk-1.4.7.1/main/dns.c:222: undefined reference  
to `__res_close'
collect2: ld returned 1 exit status
make[1]: *** [asterisk] Error 1
make: *** [main] Error 2





More information about the Clfs-dev mailing list