Freeswitch

From WTFwiki
Jump to navigation Jump to search


Building FreeSWITCH on OpenBSD 4.5/i386

Build not yet completed, but this is the current process:

  • You MUST use autoconf 2.59 (untested: 2.60, 2.61; confirmed not working: 2.62)
  • You MUST patch the tree like this:
 Index: libs/esl/ivrd.c
 ===================================================================
 --- libs/esl/ivrd.c     (revision 14389)
 +++ libs/esl/ivrd.c     (working copy)
 @@ -66,7 +66,7 @@
         handle.sock = -1;
         esl_disconnect(&handle);
       
 -       execl(path_buffer, path_buffer, NULL);
 +       execl(path_buffer, path_buffer, (char *)NULL);
         //system(path_buffer);
         close(client_sock);
         exit(0);
 Index: libs/esl/src/include/esl.h
 ===================================================================
 --- libs/esl/src/include/esl.h  (revision 14389)
 +++ libs/esl/src/include/esl.h  (working copy)
 @@ -34,6 +34,7 @@
  #ifndef _ESL_H_
  #define _ESL_H_

 +#include <sys/types.h>
  #include <stdarg.h>

  #ifdef __cplusplus
 @@ -176,7 +177,6 @@
  #ifndef WIN32
  #include <sys/types.h>
  #include <sys/select.h>
 -#include <netinet/tcp.h>
  #include <sys/signal.h>
  #include <unistd.h>
  #include <ctype.h>
 Index: libs/esl/src/esl.c
 ===================================================================
 --- libs/esl/src/esl.c  (revision 14389)
 +++ libs/esl/src/esl.c  (working copy)
 @@ -32,6 +32,7 @@
   */

  #include <esl.h>
 +#include <netinet/tcp.h>
  #ifndef WIN32
  #define closesocket(x) close(x)
  #endif

 Index: libs/sqlite/src/sqliteInt.h
 ===================================================================
 --- libs/sqlite/src/sqliteInt.h (revision 14389)
 +++ libs/sqlite/src/sqliteInt.h (working copy)
 @@ -61,6 +61,7 @@
  #include "hash.h"
  #include "parse.h"
  #include <stdio.h>
 +#include <stdint.h>
  #include <stdlib.h>
  #include <string.h>
  #include <assert.h>