I was able to build callweaver-RC-1.1.99.20070811 successfully on
Intel OS X 10.4.10. I had to change 2 files.
patches:
--- ../callweaver-RC-1.1.99.20070811/apps/nconference/common.h
2007-07-31 16:04:35.000000000 -0500
+++ apps/nconference/common.h 2007-08-11 06:34:31.000000000 -0500
@@ -50,6 +50,7 @@
#include <string.h>
#include <math.h>
#include <pthread.h>
+#include <spandsp.h>
extern opbx_mutex_t conflist_lock;
--- ../callweaver-RC-1.1.99.20070811/corelib/pbx.c 2007-07-31
16:04:30.000000000 -0500
+++ corelib/pbx.c 2007-08-11 05:24:53.000000000 -0500
@@ -7002,7 +7002,7 @@
}
}
-static int pbx_checkcondition(char *condition)
+int pbx_checkcondition(char *condition)
{
if (condition)
{
% cd callweaver-RC-1.1.99.20070811
% patch -p0 -i patches
% ./configure --prefix=/usr/local/callweaver.org CFLAGS=-I/opt/local/
include LDFLAGS=-L/opt/local/lib
% make
The first problem was this error:
/usr/bin/ld: Undefined symbols:
_saturate
The saturate function is defined in spandsp.h as "static __inline__",
but spandsp.h was never included in the apps/nconference code. The
_saturate symbol is not in /usr/local/lib/libspandsp.dylib because
gcc inlined it everywhere. I fixed this by including spandsp.h in
apps/nconference/common.h.
The second problem was also in the RC4 release. I just changed
pbx_checkcondition to non-static in corelib/pbx.c.
--
Darin Franklin
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users