<div dir="ltr">Hi,<br><br>thank you.<br>I will apply your fix and release it in new fax gateway patch version.<br><br>Best regards<br>Daniel.<br><br><br><div class="gmail_quote">On Fri, Sep 26, 2008 at 11:27 PM, Ming-Ching Tiew <span dir="ltr"><<a href="mailto:mctiew@yahoo.com">mctiew@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
--- On Fri, 9/26/08, Ming-Ching Tiew <<a href="mailto:mctiew@yahoo.com">mctiew@yahoo.com</a>> wrote:<br>
<br>
> From: Ming-Ching Tiew <<a href="mailto:mctiew@yahoo.com">mctiew@yahoo.com</a>><br>
> Subject: Re: [asterisk-dev] T38 fax gateway announcement<br>
> ><br>
><br>
</div><div><div></div><div class="Wj3C7c">> Some similar mods to the header ( also added<br>
> <sys/socket.h> to suppress socket warnings ), I added<br>
> managed to get it compile on :-<br>
><br>
> [CC] udptl.c -> udptl.o<br>
> udptl.c: In function '__ast_udptl_reload':<br>
> udptl.c:1246: warning: unused variable<br>
> 'config<br>
_flags'<br>
><br>
> But now I got this linkage error finally :-<br>
><br>
> [LD] abstract_jb.o acl.o aescrypt.o aeskey.o aestab.o<br>
> alaw.o app.o ast_expr2.o ast_expr2f.o asterisk.o astmm.o<br>
> astobj2.o audiohook.o autoservice.o callerid.o cdr.o<br>
> channel.o chanvars.o cli.o config.o cryptostub.o db.o<br>
> devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o file.o<br>
> fixedjitterbuf.o frame.o fskmodem.o global_datastores.o<br>
> http.o image.o indications.o io.o jitterbuf.o loader.o<br>
> logger.o manager.o md5.o netsock.o pbx.o plc.o privacy.o<br>
> rtp.o say.o sched.o sha1.o slinfactory.o srv.o<br>
> stdtime/localtime.o strcompat.o tdd.o term.o threadstorage.o<br>
> translate.o udptl.o ulaw.o utils.o editline/libedit.a<br>
> db1-ast/libdb1.a -> asterisk<br>
> acl.o: In function `get_local_address':<br>
> /build_i386/asterisk-1.4.20.1/main/acl.c:175: undefined<br>
> reference to `getifaddrs'<br>
> /build_i386/asterisk-1.4.20.1/main/acl.c:243: undefined<br>
> reference to `freeifaddrs'<br>
> /floppyfw/build_i386/asterisk-1.4.20.1/main/acl.c:243:<br>
> undefined reference to `freeifaddrs'<br>
> collect2: ld returned 1 exit status<br>
> make[1]: *** [asterisk] Error 1<br>
> make: *** [main] Error 2<br>
><br>
> This error, it was once upon the time seen with an original<br>
> asterisk distro ( 1.4.18.x ? ), but somewhere along the line<br>
> ( 1.4.19.x ? ), it has been fixed already. But the<br>
> faxgateway patch seems to bring it on again.<br>
><br>
> Cheers.<br>
><br>
><br>
<br>
<br>
</div></div>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 :-<br>
<br>
--- a/main/dsp.c 2008-09-26 14:39:32 -0600<br>
+++ b/main/dsp.c 2008-09-26 14:40:27 -0600<br>
@@ -44,7 +44,13 @@<br>
<br>
ASTERISK_FILE_VERSION(__FILE__, "$Revision: 114210 $")<br>
<br>
+#include <sys/types.h><br>
<div class="Ih2E3d">+#include <stdlib.h><br>
+#include <unistd.h><br>
+#include <string.h><br>
#include <math.h><br>
+#include <errno.h><br>
+#include <stdio.h><br>
<br>
</div> #include "asterisk/frame.h"<br>
#include "asterisk/channel.h"<br>
--- a/main/udptl.c 2008-09-26 14:47:29 -0600<br>
+++ b/main/udptl.c 2008-09-26 14:54:51 -0600<br>
@@ -54,6 +54,12 @@<br>
#include <signal.h><br>
#include <fcntl.h><br>
<div class="Ih2E3d"> #include <errno.h><br>
+#include <stdio.h><br>
</div>+#include <sys/types.h><br>
<div class="Ih2E3d">+#include <stdlib.h><br>
+#include <unistd.h><br>
+#include <string.h><br>
</div>+#include <sys/socket.h><br>
<br>
#include "asterisk/udptl.h"<br>
#include "asterisk/frame.h"<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</div></div></blockquote></div><br></div>