[asterisk-dev] T38 fax gateway announcement

Ming-Ching Tiew mctiew at yahoo.com
Fri Sep 26 16:27:02 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
> > 
> 
> 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.
> 
> 


That was a manual mod and compile. I created a additional patch to patch over the faxgateway patch, then only I configure and make, the said linkage error does not exist anymore. Now asterisk is compiled. I will try the program later. This is the diff :-

--- a/main/dsp.c        2008-09-26 14:39:32 -0600
+++ b/main/dsp.c        2008-09-26 14:40:27 -0600
@@ -44,7 +44,13 @@

 ASTERISK_FILE_VERSION(__FILE__, "$Revision: 114210 $")

+#include <sys/types.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
 #include <math.h>
+#include <errno.h>
+#include <stdio.h>

 #include "asterisk/frame.h"
 #include "asterisk/channel.h"
--- a/main/udptl.c      2008-09-26 14:47:29 -0600
+++ b/main/udptl.c      2008-09-26 14:54:51 -0600
@@ -54,6 +54,12 @@
 #include <signal.h>
 #include <fcntl.h>
 #include <errno.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
+#include <sys/socket.h>

 #include "asterisk/udptl.h"
 #include "asterisk/frame.h"



      



More information about the asterisk-dev mailing list