LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Linphone won't compile. Mediastreamer2. (https://www.linuxquestions.org/questions/linux-software-2/linphone-wont-compile-mediastreamer2-4175622821/)

rup1034 01-31-2018 08:14 PM

Linphone won't compile. Mediastreamer2.
 
First off I am using slackware-current 64/multilib with ktown5 which is a fresh install with the newest libraries. I am trying to get linphone working.

I made an attempt at compiling linphone from git v4.x. I keep getting failures at mediastreamer2, first failure was because they were searching /usr/lib instead of /usr/lib64 despite the entire rest of the project using /lib64 dont know why mediastreamer has a different config was getting libXext.so wrong format. So i manually navigated to the media streamer source directory within linphones git clone and did the following to force it to use /usr/lib64 as how it should be with a 64 bit system:
Code:

cd /usr/src/linphone-desktop/submodules/mediastreamer2/
./autogen.sh
./configure --prefix=/usr --libdir=/usr/lib64
make -j8

It gets further this time but has a serious error with msfactory.c and I cant find much documentation about anyone having this happen via google. I do not think many people compile this program successfully or just use debs or rpms which is not a option for me.

Code:

make[3]: Entering directory '/usr/src/linphone-desktop/submodules/mediastreamer2/src'
  CC      base/mscommon.lo
lines 1-30base/msfactory.c: In function ‘ms_factory_load_plugins’:
base/msfactory.c:620:85: error: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 64 [-Werror=format-truncation=]
    snprintf(plugin_name, MIN(sizeof(plugin_name), (size_t)(ext - de->d_name + 1)), "%s", de->d_name);
                                                                                    ^~
base/msfactory.c:620:4: note: ‘snprintf’ output between 1 and 256 bytes into a destination of size 64
    snprintf(plugin_name, MIN(sizeof(plugin_name), (size_t)(ext - de->d_name + 1)), "%s", de->d_name);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [Makefile:1665: base/msfactory.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:1028: all] Error 2
make[1]: *** [Makefile:638: all-recursive] Error 1
make: *** [Makefile:545: all] Error 2


Is anyone able to help me get linphone compiled is there any patches or version regressions I could use that this does not happen on.

Mill J 02-01-2018 02:16 PM

Quote:

cc1: all warnings being treated as errors
Is there an option to turn this off?

BTW :D how big a computer do you have? -j8? I do good if I can use -j2 on my pc's ;)

BeaverusIV 02-01-2018 02:35 PM

I'm no expert but 2 things jump out at me:

> -Werror=format-truncation=

> cc1: all warnings being treated as errors

Maybe try setting up the build to not fail on warnings or disable that particular warning?

rup1034 02-01-2018 11:03 PM

I tried a few different things and managed to compile it using a slackbuild but with modifications, apparently slackbuilds.org has a patch built in to fix that mediastreamer compile issue. I added --disable-video and --disable-upnp. Managed to build a older version of linphone 3.12.0. I don't care about the v4l crap.

But linphones build scripts are very broken on a few things. v4l utils tries loading a few files out of /usr/lib which breaks that part of the build and despite searching makefiles trying to find stuff to change to /usr/lib64 I was unable to succeed I was at this all afternoon. Mediastreamer has alot of errors. Setting compiler errors as warnings to disabled only showed me a slew of further errors.

I will just consider this solved for the time being and use a older version. I will post here if I figure out getting 4.x built ever. And perhaps post a slackware .tgz package file.


All times are GMT -5. The time now is 05:31 AM.