Package Details: freeswitch 1.6.17-2

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: 14
Popularity: 0.010038
First Submitted: 2009-03-02 18:40
Last Updated: 2017-06-24 00:11

Pinned Comments

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.

GPG signature "errors" are explained here:
https://devblog.square-r00t.net/articles/a-note-on-using-gpg-signatures-in-pkgbuilds

Please read; it's not a bug.


Thanks!

Latest Comments

sanerb commented on 2017-06-24 00:13

@mal- yep, all good points. removed the extraneous env vars, and didn't bother with an export- you can set env vars at runtime (as demonstrated in the file). moved the whole configure and patching etc. to the prepare function (which, honestly, i should have done a while ago) and confirmed it still successfully builds. however, that shouldn't have any bearing on jro not being able to build for some reason. looking at it, i'd guess he's not using the right openssl version or he hit an OOM or something. hard to tell without the entire build output.

mal commented on 2017-06-23 23:27

In my first attempt I had the LDFLAGS and CFLAGS modifications, but after fixing the other problems discovered they weren't needed, so the gist had them commented. I also exported the PKG_CONFIG_PATH change. It seems to work after removing those two and exporting PKG_CONFIG_PATH, or just grab https://gist.github.com/indecisivemal/7c1bff33468db69a3104c68250b688ab
Unrelated, I think the patch apply belongs in prepare() - https://wiki.archlinux.org/index.php/Patching_in_ABS#Applying_patches

sanerb commented on 2017-06-23 22:55

@jro are you sure you're using openssl-1.0? the PKGBUILD builds cleanly for me on 1.6.17 as of two? days ago right before i pushed it.

jro commented on 2017-06-23 22:42

build fails

CC libfreeswitch_la-upnperrors.lo
CC libfreeswitch_la-natpmp.lo
CC libfreeswitch_la-getgateway.lo
CXX switch_cpp.lo
CXXLD libfreeswitch.la

*** Warning: Linking the shared library libfreeswitch.la against the
*** static library libs/libvpx/libvpx.a is not portable!
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in .
make[2]: Entering directory '/tmp/yaourt-tmp-jr/aur-freeswitch/src/freeswitch'
CC libfreeswitch_la-switch_version.lo
CXXLD libfreeswitch.la

*** Warning: Linking the shared library libfreeswitch.la against the
*** static library libs/libvpx/libvpx.a is not portable!
ar: `u' modifier ignored since `D' is the default (see `U')
CC freeswitch-switch.o
CCLD freeswitch
./.libs/libfreeswitch.so: undefined reference to `ENGINE_cleanup'
./.libs/libfreeswitch.so: undefined reference to `EVP_CIPHER_CTX_cleanup'
./.libs/libfreeswitch.so: undefined reference to `EVP_MD_CTX_cleanup'
./.libs/libfreeswitch.so: undefined reference to `SSL_library_init'
./.libs/libfreeswitch.so: undefined reference to `EVP_MD_CTX_init'
./.libs/libfreeswitch.so: undefined reference to `CRYPTO_set_id_callback'
./.libs/libfreeswitch.so: undefined reference to `CRYPTO_set_locking_callback'
./.libs/libfreeswitch.so: undefined reference to `SSL_state'
./.libs/libfreeswitch.so: undefined reference to `EVP_CIPHER_CTX_init'
./.libs/libfreeswitch.so: undefined reference to `CRYPTO_num_locks'
./.libs/libfreeswitch.so: undefined reference to `CRYPTO_cleanup_all_ex_data'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1615: freeswitch] Error 1
make[2]: Leaving directory '/tmp/yaourt-tmp-jr/aur-freeswitch/src/freeswitch'
make[1]: *** [Makefile:3143: all-recursive] Error 1
make[1]: Leaving directory '/tmp/yaourt-tmp-jr/aur-freeswitch/src/freeswitch'
make: *** [Makefile:1414: all] Error 2
==> ERROR: A failure occurred in build(

sanerb commented on 2017-06-22 00:51

@mal, @mlody_salceson-

thank you so much for both of your work on this. i don't know the first thing about any languages lower than python, so you've both been an extremely big help in fixing this and i wouldn't be able to do it without you.

i confirmed it built and am pushing fixes now. i can't imagine it breaking anything but i suppose we'll find out soon enough if it does; my use case isn't complex enough to test for SSL errors

mal commented on 2017-06-21 20:32

Nice, thanks! That error isn't very clear. I assume it's just the "> " added to a 512b buffer, so I only added 2 (514) and it seems to work. I didn't have to change prompt_str at all.

Here's what i ended up with. It compiles ok, haven't written a config to test running it with yet.
https://gist.github.com/anonymous/ed2ccde7518423ab18374b8013a820f4

mlody_salceson commented on 2017-06-21 15:38

@mal-

Thanks for your work. I have managed to build freeswitch-git using your information and a small modification (increased buffer sizes) for fs_cli.c:

static char bare_prompt_str[1024] = "";
and
static char prompt_str[1024] = "";

instead of

static char bare_prompt_str[512] = "";
static char prompt_str[512] = "";

Hope I didn't break anything!

@sanerb:-

Thank you very much for maintaining this package!

mal commented on 2017-06-16 06:50

.15 and .17 builds fail for me:
./crypto/include/aes_icm_ossl.h:66:20: error: field ‘ctx’ has incomplete type
./crypto/include/aes_gcm_ossl.h:58:18: error: field ‘ctx’ has incomplete type
I think this is https://freeswitch.org/jira/browse/FS-9785

Added these before ./configure, not all may be necessary:
PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
CFLAGS+=" -I/usr/include/openssl-1.0"
LDFLAGS+=" -I/usr/lib/openssl-1.0"

then made it to this (third * highlighted):
src/switch_ivr_play_say.c:1668:47: error: ‘*’ in boolean context, suggest ‘&&’ instead [-Werror=int-in-bool-context]
buflen = FILE_STARTSAMPLES * sizeof(*abuf) * fh->cur_channels ? fh->cur_channels : fh->channels;

Update - tried this, completely guessing about author's intent:
- buflen = FILE_STARTSAMPLES * sizeof(*abuf) * fh->cur_channels ? fh->cur_channels : fh->channels;
+ buflen = FILE_STARTSAMPLES * sizeof(*abuf) * (fh->cur_channels ? fh->cur_channels : fh->channels);

now:
libs/esl/fs_cli.c:1728:54: error: ‘> ’ directive output may be truncated writing 2 bytes into a region of size between 1 and 512 [-Werror=format-truncation=]
snprintf(bare_prompt_str, sizeof(bare_prompt_str), "%s> ", profile->prompt_string);
^~~~~~

sanerb commented on 2017-06-16 06:43

@mal-

getting build failures on 1.6.17; i'll have to look at it tomorrow- it's 0242 here. will update as soon as i figure out why it's failing

sanerb commented on 2017-03-06 05:06

@aztec102-

thanks! updated to 1.6.15!

All comments