Hi,
Steve Underwood schrieb:
Recent versions no longer require libtiff internals.
Cool!
Recent versions of Debian should have the libtiff bugs fixed. Some people trying to work with spandsp got them in there :-)
:-) Debian packages of spandsp and app_dtmftotext, app_rxfax and app_txfax are built and uploaded. I needed to make a few changes to get it to compile though (using a PowerPC, which makes top_bit an undefined symbol since it is only defined for i386 -- hope I got it right), and I haven't tested it so far since all the equipment is at work. It will take a few days before the packages are accepted into the archive and built for i386 though. I will prepare a semi-official build tomorrow.
Simon
--- asterisk-spandsp-plugins-0.0.20050102.orig/app_dtmftotext.c
+++ asterisk-spandsp-plugins-0.0.20050102/app_dtmftotext.c
@@ -11,6 +11,8 @@
* the GNU General Public License
*/
+#define _GNU_SOURCE
+
#include <sys/types.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
@@ -20,6 +22,7 @@
#include <asterisk/pbx.h>
#include <asterisk/md5.h>
#include <asterisk/config.h>
+#include <asterisk/utils.h>
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
@@ -392,7 +395,8 @@
if ((serv_addr.sin_addr.s_addr = inet_addr(host)) == -1)
{
/* its a name rather than an ipnum */
- serverhost = gethostbyname(host);
+ struct ast_hostent ahe;
+ serverhost = ast_gethostbyname(host, &ahe);
if (serverhost == (struct hostent *) 0)
{
ast_log(LOG_WARNING, "festival_client: gethostbyname failed\n");
--- asterisk-spandsp-plugins-0.0.20050102.orig/app_rxfax.c
+++ asterisk-spandsp-plugins-0.0.20050102/app_rxfax.c
@@ -10,6 +10,8 @@
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
+
+#define _GNU_SOURCE
#include <asterisk/lock.h>
#include <asterisk/file.h>
--- asterisk-spandsp-plugins-0.0.20050102.orig/app_txfax.c
+++ asterisk-spandsp-plugins-0.0.20050102/app_txfax.c
@@ -10,6 +10,8 @@
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
+
+#define _GNU_SOURCE
#include <asterisk/lock.h>
#include <asterisk/file.h>
--- spandsp-0.0.2.orig/src/spandsp/mmx.h
+++ spandsp-0.0.2/src/spandsp/mmx.h
@@ -21,6 +21,8 @@
#if !defined(_MMX_H_)
#define _MMX_H_
+#if defined(USE_MMX) || defined(USE_SSE)
+
/*
The type of an value that fits in an MMX register
(note that long long constant values MUST be suffixed
@@ -571,4 +573,6 @@
#endif
#endif
+
+#endif
/*- End of file ------------------------------------------------------------*/
--- spandsp-0.0.2.orig/src/spandsp/alaw_ulaw.h
+++ spandsp-0.0.2/src/spandsp/alaw_ulaw.h
@@ -80,6 +80,22 @@
return res;
}
/*- End of function --------------------------------------------------------*/
+#else
+
+static inline int top_bit(unsigned int bits)
+{
+ int res;
+ static int seg_end[16] =
+ {
+ 0x1, 0x3, 0x7, 0xF, 0x1F, 0x3F, 0x7F, 0xFF, 0x1FF, 0x3FF, 0x7FF,
0xFFF, 0x1FFF, 0x3FFF, 0x7FFF
+ };
+ for (res = 0; res < 16; res++)
+ {
+ if (bits <= seg_end[res])
+ break;
+ }
+ return res;
+}
#endif
/* N.B. It is tempting to use look-up tables for A-law and u-law conversion.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
