[Freeswitch-dev] Ubuntu 10.04.4 Build

Thierry Panthier thierry.devel at gmail.com
Tue May 8 08:19:44 MSD 2012


Hi,

I noticed that the scripts in the debian/ directory were updated and
the minimum dependencies were changed.

If I 'downgrade' the dependencies in debian/bootstrap.sh and
debian/compat then I'm able to build FreeSWITCH for Ubuntu 10.04.4

I'm sending you the patch I've created. After that, all that I had to do was:

   cd freeswitch/debian
   ./bootstrap.sh
   cd ..
   dpkg-buildpackage -b -rfakeroot


Do you guys agree with this patch? Is there a reason why the latest
version of these packages is required?

BTW the change in mod_posix_timer.c was necessary because gcc was
aborting if "-Werror -pedantic" were both set.


Regards,

Thierry
-------------- next part --------------
diff --git a/debian/bootstrap.sh b/debian/bootstrap.sh
index 2ee3bb8..7a5a636 100755
--- a/debian/bootstrap.sh
+++ b/debian/bootstrap.sh
@@ -141,16 +141,16 @@ Priority: optional
 Maintainer: Travis Cross <tc at traviscross.com>
 Build-Depends:
 # for debian
- debhelper (>= 8.0.0),
+ debhelper (>= 7.4.15),
 # bootstrapping
  automake (>= 1.9), autoconf, libtool,
 # core build
- dpkg-dev (>= 1.15.8.12), gcc (>= 4:4.4.5) , g++ (>= 4:4.4.5),
- libc6-dev (>= 2.11.3), make (>= 3.81),
+ dpkg-dev (>= 1.15.5.6), gcc (>= 4:4.4.3) , g++ (>= 4:4.4.3),
+ libc6-dev (>= 2.11.1), make (>= 3.81),
  wget, pkg-config,
 # configure options
  libssl-dev, unixodbc-dev,
- libncurses5-dev, libjpeg8-dev,
+ libncurses5-dev, libjpeg62-dev,
  python-dev, erlang-dev,
 # documentation
  doxygen,
diff --git a/debian/compat b/debian/compat
index 45a4fb7..7f8f011 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-8
+7
diff --git a/src/mod/timers/mod_posix_timer/mod_posix_timer.c b/src/mod/timers/mod_posix_timer/mod_posix_timer.c
index 04d694b..04d8d46 100644
--- a/src/mod/timers/mod_posix_timer/mod_posix_timer.c
+++ b/src/mod/timers/mod_posix_timer/mod_posix_timer.c
@@ -111,7 +111,9 @@ static void timer_signal_handler(int sig, siginfo_t *si, void *cu)
 		if (val >= 0 && val <= MAX_ACTIVE_TIMERS) {
 			uint8_t active_id = (uint8_t)val;
 			/* notify runtime thread that timer identified by active_id has ticked */
-			write(globals.timer_tick_pipe[1], &active_id, 1);
+			if (write(globals.timer_tick_pipe[1], &active_id, 1) == -1) {
+			    switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error writing to pipe: %s.\n", strerror(errno));
+			}
 		}
 	}
 }


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list