[asterisk-dev] T38 fax gateway announcement

Ming-Ching Tiew mctiew at yahoo.com
Fri Sep 26 16:05:16 CDT 2008




--- On Fri, 9/26/08, Ming-Ching Tiew <mctiew at yahoo.com> wrote:

> From: Ming-Ching Tiew <mctiew at yahoo.com>
> Subject: Re: [asterisk-dev] T38 fax gateway announcement
> To: "Asterisk Developers Mailing List" <asterisk-dev at lists.digium.com>
> Date: Friday, September 26, 2008, 8:45 PM
> --- On Fri, 9/26/08, Daniel Ferenci
> <daniel.ferenci at googlemail.com> wrote:
> 
> > From: Daniel Ferenci
> <daniel.ferenci at googlemail.com>
> > Subject: Re: [asterisk-dev] T38 fax gateway
> announcement
> > To: "Asterisk Developers Mailing List"
> <asterisk-dev at lists.digium.com>
> > Date: Friday, September 26, 2008, 4:29 PM
> > Please try to add following includes in dsp.c  around
> > #include <math.h>
> > 
> > #include <sys/types.h>
> > #include <stdlib.h>
> > #include <unistd.h>
> > #include <string.h>
> > 
> > #include <math.h>
> > 
> > #include <errno.h>
> > #include <stdio.h>
> > 
> > If you find this useful I will update patch.
> > 
> 
> Yes, the dsp.c compiled with the said mod, compilation went
> on 
> but now the error is :-
> 
>    [CC] udptl.c -> udptl.o
> In file included from /usr/include/stdio.h:73,
>                  from
> /floppyfw/build_i386/asterisk-1.4.20.1/include/asterisk/abstract_jb.h:34,
>                  from
> /floppyfw/build_i386/asterisk-1.4.20.1/include/asterisk/channel.h:91,
>                  from
> /floppyfw/build_i386/asterisk-1.4.20.1/include/asterisk/udptl.h:34,
>                  from udptl.c:59:
> /usr/include/bits/uClibc_stdio.h:278: error: expected
> specifier-qualifier-list before
> 'use_ast_mutex_t_instead_of_pthread_mutex_t'
> udptl.c: In function 'ast_udptl_read':
> udptl.c:653: warning: implicit declaration of function
> 'recvfrom'
> udptl.c: In function 'ast_udptl_new_with_bindaddr':
> udptl.c:805: warning: implicit declaration of function
> 'socket'
> udptl.c:814: warning: implicit declaration of function
> 'setsockopt'
> udptl.c:822: warning: implicit declaration of function
> 'bind'
> udptl.c: In function 'ast_udptl_write':
> udptl.c:930: warning: implicit declaration of function
> 'sendto'
> udptl.c: In function '__ast_udptl_reload':
> udptl.c:1240: warning: unused variable
> 'config_flags'
> make[1]: *** [udptl.o] Error 1
> make: *** [main] Error 2
> 
> I supposed it has the same header problem with dsp.c.
> 

Some similar mods to the header ( also added <sys/socket.h> to suppress socket warnings ), I added managed to get it compile on :-

   [CC] udptl.c -> udptl.o
udptl.c: In function '__ast_udptl_reload':
udptl.c:1246: warning: unused variable 'config_flags'

But now I got this linkage error finally :-

   [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 astobj2.o audiohook.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 global_datastores.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
acl.o: In function `get_local_address':
/build_i386/asterisk-1.4.20.1/main/acl.c:175: undefined reference to `getifaddrs'
/build_i386/asterisk-1.4.20.1/main/acl.c:243: undefined reference to `freeifaddrs'
/floppyfw/build_i386/asterisk-1.4.20.1/main/acl.c:243: undefined reference to `freeifaddrs'
collect2: ld returned 1 exit status
make[1]: *** [asterisk] Error 1
make: *** [main] Error 2

This error, it was once upon the time seen with an original asterisk distro ( 1.4.18.x ? ), but somewhere along the line ( 1.4.19.x ? ), it has been fixed already. But the faxgateway patch seems to bring it on again.

Cheers.


      



More information about the asterisk-dev mailing list