Package Details: freeswitch 1.6.10-1

Git Clone URL: https://aur.archlinux.org/freeswitch.git (read-only)
Package Base: freeswitch
Description: An opensource and free (libre, price) telephony system, similar to Asterisk.
Upstream URL: http://freeswitch.org/
Licenses: MPL
Conflicts: freeswitch-fixed, freeswitch-git
Provides: freeswitch
Submitter: None
Maintainer: sanerb
Last Packager: sanerb
Votes: 13
Popularity: 0.033173
First Submitted: 2009-03-02 18:40
Last Updated: 2016-09-23 08:32

Required by (0)

Sources (13)

Latest Comments

sanerb commented on 2016-09-23 08:32

@t-8ch:

thanks! updated to 1.6.10

sanerb commented on 2016-06-26 04:38

Please note the following additions:

# Bug reports can be filed at https://bugs.square-r00t.net/index.php?project=3
# News updates for packages can be followed at https://devblog.square-r00t.net

(If you want an RSS-feed only pertaining to my AUR packages, you can subscribe to https://devblog.square-r00t.net/rss/?category=aur in your favourite RSS reader.)

Note that you should still use the AUR web interface for flagging packages as out-of-date if a new version is released; the aforementioned bug tracker is to aid in issues with building/packaging/the PKGBUILD formats/etc. specifically.

Thanks!

opencode commented on 2016-06-24 15:38

@sanerb-
(I think someone else emailed; I've only posted here.)

Arch Linux ARM does have the ability to customize AUR packages to be architecture-specific, but generally they seem to rely on vanilla AUR, and I think that's preferable here. I'd like to have a way to create a minimal version of FreeSWITCH, but a small PKGBUILD with perhaps some comments around what to change for a min build sounds good to me.

Overall, did a new PKGBUILD mainly to get a clean slate and try to end up with a small PKGBUILD that would be easy to strip down further. A few specifics:
1. I used a source tarball rather than git to minimize download size, reduce build-time dependencies, and enable integrity sum checking.
2. I used a separate modules.conf file rather than a add/remove list in PKGBUILD to work the same way building from source would, allow seeing the full list when editing, and remove the need to deal with cases like things on both the add and remove lists.
3. I spent a bit of time tweaking the configure options so that the right paths for Arch would be compiled in and post-installation links wouldn't be needed. (From a quick check, it looks like you did some or all of this in the latest PKGBUILD here.)
4. I split out sounds as separate packages, since they're separate tarballs upstream.
5. I removed the demo config files since I do my config from scratch, and on Windows at least it's a separate installer option; it seemed to match that better to allow installing without the demo config to support these kind of scenarios. (My intention was to create a separate freeswitch-demo-config package that could be installed separately if desired.)
6. I tried to make it a Release-style build, disabling debug and enabling optimizations.
7. I only have a subset of the modules, but that's mainly because compiling on Raspberry Pi Zero is slow and I haven't fully figured out Arch Linux ARM's cross-compilation setup yet. For general use I thought it would be better to include everything that's enabled by default by default and then let people (like me) who want a smaller base tweak the modules.conf list and depends set (perhaps with some comments suggesting a minimal version).

So most of these were factoring/philosophy things that didn't seem architecture-specific. If these sound right to you, I'd be happy to use the same PKGBUILDs and just keep a separate modules.conf on the side I can copy in before I run makepkg.

sanerb commented on 2016-06-24 15:20

thanks! there might be some other runtime deps- was mostly focused on build deps. added (and to -git as well)

ogarcia commented on 2016-06-24 12:41

Hi!

You forget freetype2 as dependency:

/usr/bin/freeswitch -nc -nonat
/usr/bin/freeswitch: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory

Greetings.

sanerb commented on 2016-06-24 01:30

heads up to all-

this package now builds cleanly. there's some very small issues remaining, but Mike Jerrit at upstream (Freeswitch) was a HUGE help and you should offer to buy him a beer.

(@opencode- i presume that was you that emailed me- thanks! got a user not found error when trying to re:, but will create a separate pkg shortly that should be a lot more ALARM-friendly.)

sanerb commented on 2016-06-22 05:39

@opencode-

does ALARM have a separate AUR?

if not, i think i could actually include some logic in the PKGBUILD to use a slimmer build if the architecture is detected as ARM. i don't have an ARM to test on, but can you get me the output of (separately):

uname -i
uname -m
uname -p


would that be acceptable or would you want like, a freeswitch-minimal or freeswitch-lite or something? i hestitate to make a separate package as that makes it almost seem like there's a separate upstream project for it.

you actually have some pretty great timing, as well- i have an appointment sometime this week to work with upstream directly to sort out the issues with the build process (they presume it's a compiler bug).

opencode commented on 2016-06-21 03:21

I use FreeSWITCH on Arch Linux ARM Raspberry Pi Zero and wanted a tinier base to build from, so I ended up basically re-writing packages for Arch Linux. There are a couple more things I'd like to do before calling it final for general usage, in particular: a) adding all of the default modules in modules.conf rather than the subset I currently have; b) fixing the systemd .service file to start at boot correctly (though this appears broken upstream as well); and c) adding a separate package freeswitch-demo-config to allow installing the provided config files (I use my own config files written from scratch).

If others are interested, I've put the current version here:
PKGBUILD: http://pastebin.com/fFNTgmbX
freeswitch.service: http://pastebin.com/KmPKLdJ9
modules.conf: http://pastebin.com/e49dMnZW

Along with another package for sounds:
http://pastebin.com/aq9MiCcz

@sanerb, let me know if you'd be interested in using these in place of the current ones

sanerb commented on 2016-06-17 19:40

with tagged 1.6.8 release (same occurs on 1.6.9):

./configure: line 19628: syntax error near unexpected token `fi'
./configure: line 19628: `fi'
make: *** [Makefile:1433: config.status] Error 2
==> ERROR: A failure occurred in build().
Aborting...

@sysfu did you build any modules or just the base application?

i'm wondering if one of the modules is causing issue, but i doubt it since they build separately.

the 1.7.0 branch seems to fare better, i think, as freeswitch-git builds last i checked.. but that isn't stable yet

sysfu commented on 2016-06-17 16:54

I was able to build the 1.6.8 tagged release via git source on OpenBSD 5.9, albeit with some lua errors, have you tried that one?

sanerb commented on 2016-06-03 19:23

honestly, i think they tagged a bad commit. freeswitch-git should build fine. i need to wait for a new release to switch to that tag

jro commented on 2016-05-24 14:48

Just got the same compiler error. It is a pity that apparently nobody has fixed it yet.

sysfu commented on 2016-05-24 02:35

Tried building again today, failed with this error:

./configure: line 19628: syntax error near unexpected token `fi'
./configure: line 19628: `fi'
Makefile:1433: recipe for target 'config.status' failed
make: *** [config.status] Error 2
==> ERROR: A failure occurred in build().
Aborting...
The build failed.

I'll try to comment out what appears to be a superflous `fi' on line 19628 in the configure script and manually run the make command in src/freeswitch.

sanerb commented on 2016-05-11 14:41

@ITwrx
not yet, unfortunately- i'll see what i can do this weekend. it's such a complicated build process, unfortunately.

ITwrx commented on 2016-05-11 03:21

@sanerb: did you have a chance to clean up the PKGBUILDs? does this currently build?

thanks

sysfu commented on 2016-04-11 02:23

@sanerb, that would be great. Tried to install again, died with same internal compiler error building sofia-sip. I'm running Parabola/Gnu Linux if that makes any difference, but never had issue building AUR software on it before. https://bpaste.net/show/198cf3a123c0

sanerb commented on 2016-04-10 14:09

(realistically i need to totally revamp the PKGBUILDs for this and -git and make things a lot cleaner- i'll try to do that early this week)

sanerb commented on 2016-04-10 14:07

try now for me- modifications added in pkgrel 10

mallegonian commented on 2016-04-09 23:29

I also needed 'lua', and used 'opus' instead of 'opusfile'. Now I'm getting:
2016-04-09 22:48:39 (32.8 MB/s) - ‘freeswitch-sounds-en-us-callie-48000-1.0.50.tar.gz’ saved [105321190/105321190]

grep: /home/me/freeswitch/pkg/freeswitch/etc/freeswitch/autoload_configs/modules.conf.xml: No such file or directory
==> Adding missing module mod_xml_curl to modules.conf.xml
sed: can't read /home/me/freeswitch/pkg/freeswitch/etc/freeswitch/autoload_configs/modules.conf.xml: No such file or directory
==> ERROR: A failure occurred in package().

Edit: Fix: change PKGBUILD line ~184 --sysconfdir=/etc/freeswitch to --sysconfdir=/etc

sysfu commented on 2016-04-09 19:15

After finally getting through all the dependency issues, the build failed again with a 'gcc: internal compiler error'

https://bpaste.net/show/f5b153c9d4b8

sysfu commented on 2016-04-09 18:08

mod_opus issue resolved by installing 'opusfile' from packages.

Also please add the following pkg dependencies:

libshout
mpg123
lame
libsndfile

sysfu commented on 2016-04-09 17:44

Thanks for commenting on the signature and yasm issues.

Ran into another missing dependency:

making all mod_opus
make[4]: Entering directory '/tmp/packerbuild-1001/freeswitch/freeswitch/src/freeswitch/src/mod/codecs/mo
d_opus'
Makefile:896: *** You must install libopus-dev to build mod_opus. Stop.

Can't find this file in the AUR or main repos. Will try building from source

sanerb commented on 2016-04-09 17:37

@sysfu-

yep, i started signing my sources. you can also build with "makepkg --skippgpcheck" (or if using apacman, it should prompt you- if you have keepkeys set to 1 in apacman.conf, it won't prompt again). sorry for the abruptness, all! unfortunately, the AUR doesn't really offer a "packager's announcements" sort of thing for this other than me going through all 44 packages of mine and adding a comment to each.

i may in the future also offer pre-built packages from a repo, in which case you'd just need to do pacman-key -r <keyid>- but thanks again for letting others know!

and interesting... that must be a new prereq. added!

sysfu commented on 2016-04-09 17:16

Perhaps nasm or yasm also needs to be added to the list of dependencies?

--------------------------
<snip>
Neither yasm nor nasm have been found. See the prerequisites section in the README for more info.

Configuration failed. This could reflect a misconfiguration of your
toolchains, improper options selected, or another problem. If you
don't see any useful error messages above, the next step is to look
at the configure error log file (config.log) to determine what
configure was trying to do when it died.
Makefile:3721: recipe for target 'libs/libvpx/Makefile' failed
make: *** [libs/libvpx/Makefile] Error 1
==> ERROR: A failure occurred in build().
Aborting...
The build failed.

sysfu commented on 2016-04-09 17:00

If you try to build and it fails source file signatures:

==> Verifying source file signatures with gpg...
freeswitch.conf.d ... FAILED (unknown public key 8C004C2F93481F6B)
README.freeswitch ... FAILED (unknown public key 8C004C2F93481F6B)
run.freeswitch ... FAILED (unknown public key 8C004C2F93481F6B)
run_log.freeswitch ... FAILED (unknown public key 8C004C2F93481F6B)
conf_log.freeswitch ... FAILED (unknown public key 8C004C2F93481F6B)
freeswitch.service ... FAILED (unknown public key 8C004C2F93481F6B)
==> ERROR: One or more PGP signatures could not be verified!

Resolve with this command:
gpg --keyserver subkeys.pgp.net --recv 8C004C2F93481F6B

HNKNTA commented on 2015-10-02 21:40

@sanerb, thanks

sanerb commented on 2015-10-01 15:03

still working on it. it might need some other libs packaged.

if you need it, you can checkout https://aur.archlinux.org/freeswitch.git and use commit d1b83194f16cc2e6e50781fabbc08c9505427a6d via the following:

git clone https://aur.archlinux.org/freeswitch.git
cd freeswitch
git checkout d1b83194f16cc2e6e50781fabbc08c9505427a6d

you then should be able to makepkg etc. successfully.

HNKNTA commented on 2015-10-01 14:10

I cannot build this even with disabled mod_fsv. There is some problem with paths in /etc/freeswitch. Sadly, but I can't figure our how to fix it. Will be any updates?

sanerb commented on 2015-09-22 18:23

NOTE: this package is currently broken. It requires libyuv dev headers. I'll package it this weekend.

sanerb commented on 2015-09-08 14:49

Good call, dworkin. I had thought these were in the "base" package group but it appears they are not. Fixed and uploading now (applying same to freeswitch-git).

silvermonk commented on 2015-09-07 09:42

I suggest adding 'ldns' and 'libedit' to makedepends, and probably depends as well.

Rationale:

In a clean chroot (as in https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_Clean_Chroot) build fails on dependencies 'ldns' and 'libedit', during deps check in ./configure.

Somehow, I had these dependencies in my regular installations, both on X86_64 and armv7h (ArchLinuxArm system), which made them easy to miss. But in a clean chroot, they're not present, and should therefore IMHO be added to at least makedepends.

WKR,
-f

silvermonk commented on 2015-09-03 19:09

thanks for updating!

silvermonk commented on 2015-09-03 12:26

As per

https://freeswitch.org/confluence/display/FREESWITCH/Installation

"The current production release of FreeSWITCH™ is version 1.4 created from tag 1.4.21 on 28 August, 2015. This is the recommended version to install for production systems"

sanerb commented on 2015-07-13 23:05

.SRCINFO:
this is fixed. apologies; my pre-commit hook was borked.

PKGBUILD:
check those paths. they aren't the same. :)

var/spool/freeswitch/storage
var/lib/freeswitch/storage
(have i mentioned how silly freeswitch is yet?)

freeswitch.install:
oooh, good call, actually. this does need to be fixed. will have 1.4.20-2 pushed soon (need to fix -git as well)

whiskerz007 commented on 2015-07-13 20:58

I suggest the following changes should be made.

.SRCINFO
Line 32:
source = git+https://stash.freeswitch.org/scm/fs/freeswitch.git#tag=v1.4.20

PKGBUILD
The 'storage' directory should be a link and is already created as a directory when the 'ln' command is executed. Insert between line 218 and 219:
rmdir var/lib/freeswitch/storage

freeswitch.install
Line 16-17 should be updated with relevant information. Changing '/etc/freeswitch/vars.xml' doesn't do anything because '/etc/freeswitch/private/passwords.xml' overwrites the variables.

whiskerz007 commented on 2015-07-13 20:57

I suggest the following changes should be made.

.SRCINFO
Line 32
source = git+https://stash.freeswitch.org/scm/fs/freeswitch.git#tag=v1.4.20

PKGBUILD
Insert between line 218 and 219
rmdir var/lib/freeswitch/storage

freeswitch.install
Line 16-17 should be updated with relevant information. Changing '/etc/freeswitch/vars.xml' doesn't do anything because '/etc/freeswitch/private/passwords.xml' overwrites the variables.

The 'storage' directory should be a link and is already created as a directory when the 'ln' command is executed.

whiskerz007 commented on 2015-07-13 20:52

I suggest the following changes should be made.

.SRCINFO
Line 32
source = git+https://stash.freeswitch.org/scm/fs/freeswitch.git#tag=v1.4.20

PKGBUILD
Insert between line 218 and 219
rmdir var/lib/freeswitch/storage

The 'storage' directory should be a link and is already created as a directory when the 'ln' command is executed.

sanerb commented on 2015-07-10 06:21

the issue was resolved- ssl/tls is supported as packaged, but needs some config changes- which, oddly enough, aren't distributed in upstream's sample confs.

in your <sip profile name>.xml, these changes need to be made:

< <!--<param name="tls-cert-dir" value=""/>-->
---
> <param name="tls-cert-dir" value="/etc/freeswitch/ssl"/>

as well as

< <param name="tls-verify-policy" value="none"/>
---
> <param name="tls-verify-policy" value="all"/>

plus the instructions found at https://wiki.freeswitch.org/wiki/SIP_TLS (note that ./gentls_cert etc. commands should instead be "gentls_cert" etc.- no ./ ; this is because they're bundled into the system binary directory.)

sanerb commented on 2015-07-10 06:20

the issue was resolved- ssl/tls is supported as packaged, but needs some config changes- which, oddly enough, aren't distributed in upstream's sample confs.

in your <sip profile name>.xml, these changes need to be made:

> <!--<param name="tls-cert-dir" value=""/>-->
---
< <param name="tls-cert-dir" value="/etc/freeswitch/ssl"/>

as well as

< <param name="tls-verify-policy" value="all"/>
---
> <param name="tls-verify-policy" value="none"/>


plus the instructions found at https://wiki.freeswitch.org/wiki/SIP_TLS (note that ./gentls_cert etc. commands should instead be "gentls_cert" etc.- no ./ ; this is because they're bundled into the system binary directory.)

sanerb commented on 2015-07-06 06:20

for those tracking, i've updated to 1.4.20 and replied to andriesinfoserv via a private channel. 90%+ certain it's a missed configuration directive in his profile, but waiting to hear back.

if anyone is seeing a duplication of this issue, please let me know.

sanerb commented on 2015-07-05 01:39

shoot; i just realized that email address is an old one- sorry. use r00t [at] square-r00t (dot) net

andriesinfoserv commented on 2015-07-04 23:37

@sanerb
i sent you an email. thanks

sanerb commented on 2015-07-04 17:04

i just tried myself- builds fine, certs gen fine, and freeswitch starts fine. i don't have a profile i can test with, but please pastebin your vars.xml and profile conf.

(if you want/prefer, please feel free to email me directly- my address is in the PKGBUILD.)

and please be sure to remember to strip out any passwords. :) (for sake of simplicity, just use the string "REDACTED" so i know what was modified exactly.)

andriesinfoserv commented on 2015-07-04 15:31

@sanerb
while this appears to build --with-openssl(unless i missed some output last time), i'm not having any luck actually enabling tls for a profile and am wondering if we are missing a dependency.

if you generate certs and modify vars.xml and sip profile in question as described here:
https://wiki.freeswitch.org/wiki/SIP_TLS

it throws errors described here(if viewing via "fs_cli" -> "sofia status") after restarting freeswitch:
http://lists.freeswitch.org/pipermail/freeswitch-users/2010-November/065119.html

which the mailing list then says is due to missing ssl/tls dependencies.

Are you able to actually enable ssl for a profile and have that profile load successfully?

Thanks

andriesinfoserv commented on 2015-06-03 02:08

@sanerb
I didn't happen to notice that, but i did build 1.4.18-1 --with-openssl successfully, so either way it's working. I don't know who fixed the build issue but i'm glad they did as this is required for secure transport. Thanks again.

HNKNTA commented on 2015-05-16 19:48

@sanerb
thanks for reply. I just doing this at other remote computer: both required packages are installed from AUR, freeswitch and freeswitch-git builds without any error but have not include mod_gsmopen.so
I compiled mod_gsmopen.so manually and put it to mods directory and symlinked /usr/local/lib/libgsmme.so.1.0.4 to /usr/lib/libgsmme.so.1 and now it works. But it took me almost all day and I still don't understand what was the problem

sanerb commented on 2015-05-16 17:05

@andriesinfoserv

sorry for delay, but it appears ssl is enabled by default for compile-time, at least in the current package:

[bts@workhorse freeswitch]$ ./configure --help|grep -i ssl
--with-openssl use OpenSSL [enabled]


if you find this isn't the case please let me know.

Earnest commented on 2015-05-16 16:57

Testing comment

sanerb commented on 2015-05-16 16:51

i don't have time to dig deep this weekend, but right off the bat, three things:

0.) do you have libctb installed (try this first)(can be found in AUR)? both it AND gsmlib are listed as deps in the documentation at https://freeswitch.org/confluence/display/FREESWITCH/mod_gsmopen#mod_gsmopen-QuickStartGuide

1.) gsmopen is in beta status; have you tried against freeswitch-git and do you get any change?

2.) have you tried building/installing freeswitch, then AFTER the fact compiling and copying in the mod_gsmopen module instead of trying to build at package buildtime for freeswitch (assuming both deps in 0. are met)? the docs seem to suggest this method and i'm curious to see if it makes any difference.

if it still fails, pastebin the last 20 lines or so of build output and i'll take a look. thanks!

HNKNTA commented on 2015-05-16 15:17

if I emable endpoints/mod_gsmopen in PKGBUILD, build fails. how can I fix this? gsmlib is installed

sanerb commented on 2015-05-10 05:24

updated to 1.4.18

sanerb commented on 2015-02-12 02:49

aha! no worries, glad i could help! fingers crossed it gets sorted soon!

i didn't know there was a --with-openssl option. i might add it by default.

andriesinfoserv commented on 2015-02-12 02:43

@sanerb

did as you suggested and evidently it's an upstream bug.

reported here:
https://freeswitch.org/jira/browse/FS-7268

thanks for the help.

sanerb commented on 2015-02-11 15:14

andriesinfoserv-

as long as you have the openssl package installed, the header files should be installed. Specifically, make sure you have the following files:

/usr/include/openssl/dtls1.h
/usr/include/openssl/tls1.h


If you do, try editing the makedepends for the PKGBUILD to include "openssl". If THAT doesn't work, try compiling manually without makepkg (and as a regular user). If it builds fine, it's a pacman/makepkg bug. If it still doesn't build, it's an upstream bug. :)

andriesinfoserv commented on 2015-02-11 08:45

i can't get freeswitch or freeswwitch-git to build with "--with-openssl" in pkgbuild ./configure block. I get the following error with both attempts.

checking openssl/tls1.h usability... no
checking openssl/tls1.h presence... yes
configure: WARNING: openssl/tls1.h: present but cannot be compiled
configure: WARNING: openssl/tls1.h: check for missing prerequisite headers?
configure: WARNING: openssl/tls1.h: see the Autoconf documentation
configure: WARNING: openssl/tls1.h: section "Present But Cannot Be Compiled"
configure: WARNING: openssl/tls1.h: proceeding with the compiler's result
configure: WARNING: ## ---------------------------------- ##
configure: WARNING: ## Report this to bugs@freeswitch.org ##
configure: WARNING: ## ---------------------------------- ##
checking for openssl/tls1.h... no
configure: WARNING: OpenSSL include files were not found
configure: error: OpenSSL >= 1.0.1e and associated developement headers required
==> ERROR: A failure occurred in build().
Aborting...

are the development headers not included in the arch "openssl" pkg or is this actually a bug? If bug, arch or upstream?

thanks

ProGEEK commented on 2015-01-30 00:14

Is anyone else getting a core dump on running lua scripts ?

EXECUTE sofia/external/2002@**.***.**.** lua(app.lua ring_groups)
*** Error in `/usr/bin/freeswitch': free(): invalid pointer: 0x00007f5f38103338 ***

andriesinfoserv commented on 2015-01-20 06:15

@sanerb: That was quick. thanks for maintaining this.

sanerb commented on 2015-01-18 04:47

1.4.15 is now pushed.

i'm testing a makepkg now to confirm it builds, but i don't see any big differences between versions so it should be okay. if not i'll rel-bump it.

sanerb commented on 2014-11-25 18:28

or poor timing, lol.
updated to 1.4.14

philwo commented on 2014-11-25 08:22

@sanerb: Thank you! I noticed that the Freeswitch maintainers just released 1.4.14. Talk about good timing. ;)

sanerb commented on 2014-11-24 19:01

@philwo-

thanks! package has been updated to 1.4.13 per upstream's version of production.

sanerb commented on 2014-10-05 00:41

hrm. I can try but were I in their position, I'd probably close as WONTFIX or INVALID.

This is in part due to Arch using a newer build toolchain than upstream typically tests against (so the method may not be obsolete in their implementation), as well as their intended behaviour (normally it should compile; note they're warnings, not actual errors- they enable warnings as failing as errors during the make process to aid in package maintainers if my recollection of reading the source is correct).

But I'll go ahead and file a bug so they're at least aware of it in case they aren't. :)

chetwisniewski commented on 2014-10-04 21:04

Thanks sanerb. Maybe this should get reported upstream?

sanerb commented on 2014-09-30 16:25

Okay. New version uploaded.

I had three possible ways of fixing this:

1.) Simply disable the addition of -Werror to CFLAGS ('if test "$ac_cv_gcc_supports_w_no_unused_result" = yes; then' +2 lines in configure.ac)
2.) Strip out references to _BSD_SOURCE in src/include/switch.h (there are only two)
3.) Like 2., but replace with references to _DEFAULT_SOURCE

I had planned on 3., but I'm not a developer so I'm not experienced or knowledgeable enough about gcc/make/etc. about the repercussions of such.
I could have gone with 2, but that would have removed support for BSDs using the PKGBUILD (and we should keep that in there lest we forget our ArchBSD friends).

So I went with 1. It's a bit more verbose as it flashes a LOT of warnings and alters the distributed source in a bit of an unexpected way, but it doesn't kill the compile now. Why only the apr-util libs actually die, I have no idea, but this is fixed now.
Many thanks for reporting this, chetwisniewski!

sanerb commented on 2014-09-30 03:37

Thanks- I'm working on the 1.4.9 release.

And I seem to get the same error and even have apr-util installed separately so it looks like it prefers to compile and use its own bundled version during compile.

The "error" that causes the build to die isn't even an error so much as a warning, but because their default build options treat it as an error. There's nothing on their Jira, so this is probably something in makepkg.conf and I'll probably need to package a custom one. I should have this figured out shortly. Thanks for bringing it to my attention!

chetwisniewski commented on 2014-09-30 02:19

Build fails with:

[code]
make[2]: Leaving directory '/tmp/yaourt-tmp-chetwisniewski/aur-freeswitch-git/src/freeswitch/libs/apr-util'
CC src/libfreeswitch_la-switch_apr.lo
In file included from /usr/include/stdlib.h:24:0,
from ./src/include/switch.h:76,
from src/switch_apr.c:34:
/usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^
cc1: all warnings being treated as errors
Makefile:1614: recipe for target 'src/libfreeswitch_la-switch_apr.lo' failed
make[1]: *** [src/libfreeswitch_la-switch_apr.lo] Error 1
[/code]

calzon65 commented on 2014-09-21 19:39

sanerb, thank you for your hard work. I saw on the FreeSwitch webpage version 1.4 created from tag 1.4.7 on 25 August, 2014. Your current version is from tag 1.4.6 but close to the same date. Sorry about my confusion, but are you going to have a version 1.4.7-1?

calzon65 commented on 2014-09-21 19:37

sanerb, thank you for your hard work. I saw on the FreeSwitch webpage version 1.4 created from tag 1.4.7 on 25 August, 2014. Your current version is from tag 1.4.6 but close to the same date. Are you going to have a version 1.4.7-1?

calzon65 commented on 2014-09-21 19:24

sanerb, thank you for your hard work. I saw on the FreeSwitch webpage version 1.4 created from tag 1.4.7 on 25 August, 2014. Your current version is from tag 1.4.6 but close to the same date. Are you going to have a version 1.4.7?

sanerb commented on 2014-08-27 00:14

freeswitch-fixed is now obsolete. this is build against tag v1.4.6 per the upstream docs' recommendation. as always, any suggestions, just give a holler!

sanerb commented on 2014-03-02 21:59

https://aur.archlinux.org/packages/freeswitch-fixed/
this now builds correctly with some extra goodies. will do further stability runtime testing later tonight or tomorrow.

sanerb commented on 2014-02-24 14:49

whoops, spoke too soon. just cleared out my working directory and tried a fresh install; hitting some issues with (presumably) the actual systemd unit file. i'll update the customizepkg.d script in a bit.

sanerb commented on 2014-02-24 14:37

i've got a fix for y'all until the time when/if bougyman fixes this.
it DOES have some warnings, however:

-you'll need sed installed
-IT WILL wipe out anything you have at /usr/local/bin/python.
-...so do NOT do anything else that uses python without an absolute path while the makepkg/yaourt build/whatever is running.
-instead of grabbing a specific git revision, it grabs HEAD (the most current).


1.) install customizepkg-scripting (it will conflict with customizepkg if you have it installed)

2.) Execute (as root):
curl -o /etc/customizepkg.d/freeswitch "http://pastebin.com/raw.php?i=nBp23Ei0"

3.)
If installing via yaourt:
yaourt -S freeswitch

If running makepkg manually:
(cd to your dir with the tarball you grabbed from AUR and extract)
customizepkg -m
(then proceed with your normal makepkg process)

4.) grab yourself some tea 'cause the build takes a fair bit of time.

i'll work on a proper tarball package and PKGBUILD and pop it into AUR if y'all want (and i can find a way to not destructively create a symlink in /usr/local/bin).

sysfu commented on 2014-02-04 17:17

Build craps on v8;

Length: 37509261 (36M) [application/x-bzip2]
Saving to: ‘v8-3.24.14.tar.bz2’

100%[=============================================================================================>] 37,509,261 452KB/s in 1m 52s

2014-02-04 08:42:12 (326 KB/s) - ‘v8-3.24.14.tar.bz2’ saved [37509261/37509261]

File "build/gyp/gyp_main.py", line 12
except ImportError, e:
^
SyntaxError: invalid syntax
Makefile:398: recipe for target 'out/Makefile.native' failed
make[5]: *** [out/Makefile.native] Error 1
Makefile:1018: recipe for target '/tmp/packerbuild-1000/freeswitch/freeswitch/src/freeswitch-build/libs/v8-3.24.14/out/native/lib.target/libv8.so' failed
make[4]: *** [/tmp/packerbuild-1000/freeswitch/freeswitch/src/freeswitch-build/libs/v8-3.24.14/out/native/lib.target/libv8.so] Error 2
Makefile:547: recipe for target 'mod_v8-all' failed
make[3]: *** [mod_v8-all] Error 1
Makefile:463: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
Makefile:2616: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
Makefile:916: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

Anonymous comment on 2013-03-07 11:02

Please update it with systemd support

bougyman commented on 2012-09-19 18:55

DO NOT INSTALL, critical vuln is being fixed, will release a new package when it's patched.

bougyman commented on 2012-01-02 23:08

Update service (/etc/sv/freeswitch/run) script for /etc/conf.d/freeswitch.conf file including.

bougyman commented on 2011-12-30 18:03

Adopted this and patterned it on freeswitch-git, but locked to a certain (stable) commit, getting ready for fs 1.0.8. There's no reason to keep 1.0.7 (evil) nor 1.0.6 (many blocking bugs) builds around any longer. If you want odbc support you'll have to uncomment it at the top of the PKGBUILD, this defaults to building without odbc in the core.

mazieres commented on 2011-09-09 23:47

This used to work, but the new version doesn't build for me any more. The error I get is:


=== configuring in libs/srtp (/tmp/yaourt-tmp-xxx/aur-freeswitch-git/src/freeswitch-build/libs/srtp)
...

configure: running /bin/sh ./configure.gnu --disable-option-checking '--prefix=/var/lib/freeswitch' '--without-python' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--localstatedir=/var' '--sysconfdir=/etc/freeswitch' '--datarootdir=/usr/share' '--libexecdir=/usr/lib/freeswitch' '--libdir=/usr/lib/freeswitch' '--includedir=/usr/include/freeswitch' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu' 'CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'CONFIGURE_CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'CONFIGURE_CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'CONFIGURE_LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu' --cache-file=/dev/null --srcdir=.
./configure.gnu: line 3: ./configure: No such file or directory
configure: error: ./configure.gnu failed for libs/srtp

Ravenman commented on 2010-12-27 17:41

I can't compile it:

==> Making package: freeswitch 1.0.6-1 (Mon Dec 27 12:39:52 COT 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Found freeswitch-1.0.6.tar.gz
-> Found freeswitch
==> Validating source files with md5sums...
freeswitch-1.0.6.tar.gz ... Passed
freeswitch ... Passed
==> Extracting Sources...
-> Extracting freeswitch-1.0.6.tar.gz with bsdtar
==> Starting build()...
mv: cannot stat `scripts/contrib/dschreiber/mod_nibblebill': No such file or directory
Aborting...
==> ERROR: Makepkg was unable to build freeswitch.
==> Restart building freeswitch ? [y/N]
==> -----------------------------------
==>

bougyman commented on 2010-10-19 18:56

Can you remove dahdi from the depends? It's rarely used in the freeswitch community and conflicts with preferred hardware drivers (openzap/freetdm).

thiagoc commented on 2010-08-06 11:38

subversion should be on makedepends.

thiagoc commented on 2010-08-06 03:35

Remove the line

mv scripts/contrib/dschreiber/mod_nibblebill src/mod/applications/ #the billing module isn't in the default tree (yet)

from PKGBUILD, it is not necessary anymore.