Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help to compile Linphone 3.12
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
k547924
n00b
n00b


Joined: 17 Feb 2019
Posts: 14

PostPosted: Fri Jul 05, 2019 8:39 am    Post subject: Help to compile Linphone 3.12 Reply with quote

Liphone software was removed from Gentoo repository one year ago (https://forums.gentoo.org/viewtopic-t-1098948.html).

I am trying to build the same version as Debian witch is v3.12.

After making a git clone of all software components:
    decaf
    bcunit
    bctoolbox
    ortp
    belle-sip
    bzrtp
    bcmatroska2
    bcg729
    bv16-floatingpoint
    zxing-cpp
    mediastreamer2
    belr
    belcard
    linphone


All components compile fine but linphone with:
Code:
BelledonneCommunications/linphone/coreapi/callbacks.c:603:34: error: cast between incompatible function types from 'void (*)(LinphoneCall *)' {aka 'void (*)(struct _LinphoneCall *)'} to 'bool_t (*)(void *)' {aka 'unsigned char (*)(void *)'} [-Werror=cast-function-type]
      linphone_task_list_add(&tl, (LinphoneCoreIterateHook)start_pending_refer, call);


As it should compile, I don't understand what I have make wrong.

Is someone with packaging skills on Gentoo Linux could help me?
Back to top
View user's profile Send private message
Rion
Guru
Guru


Joined: 12 Oct 2006
Posts: 377
Location: Ekaterinburg, Russia

PostPosted: Fri Jul 05, 2019 9:41 am    Post subject: Reply with quote

https://gpo.zugaina.org/net-voip/linphone
_________________
~amd64
rion-overlay
Back to top
View user's profile Send private message
k547924
n00b
n00b


Joined: 17 Feb 2019
Posts: 14

PostPosted: Fri Jul 05, 2019 10:45 am    Post subject: Reply with quote

Rion wrote:
https://gpo.zugaina.org/net-voip/linphone


Hi Rion,

Using your repository for emerging Linphone lead to dependency media-libs/bzrtp-1.0.6 error:
Code:
/var/tmp/portage/media-libs/bzrtp-1.0.6/work/bzrtp-1.0.6/src/bzrtp.c:575:207: error: cast between incompatible function types from ‘void (*)(const uint8_t *, size_t,  const uint8_t *, size_t,  uint8_t,  uint8_t *)’ {aka ‘void (*)(const unsigned char *, long unsigned int,  const unsigned char *, long unsigned int,  unsigned char,  unsigned char *)’} to ‘void (*)(uint8_t *, uint8_t,  uint8_t *, uint32_t,  uint8_t,  uint8_t *)’ {aka ‘void (*)(unsigned char *, unsigned char,  unsigned char *, unsigned int,  unsigned char,  unsigned char *)’} [-Werror=cast-function-type]
   bzrtp_keyDerivationFunction(zrtpChannelContext->s0, zrtpChannelContext->hashLength, (uint8_t *)label, labelLength, zrtpChannelContext->KDFContext, zrtpChannelContext->KDFContextLength, *derivedKeyLength, (void (*)(uint8_t *, uint8_t,  uint8_t *, uint32_t,  uint8_t,  uint8_t *))zrtpChannelContext->hmacFunction, derivedKey);
Back to top
View user's profile Send private message
droide
n00b
n00b


Joined: 27 Jul 2007
Posts: 23

PostPosted: Tue Jul 16, 2019 7:36 am    Post subject: Reply with quote

Hi,
I have the same problem to emerge media-libs/bzrtp-1.0.6.
_________________
https://blog.waccabac.com
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22016
Location: here

PostPosted: Tue Jul 16, 2019 7:41 am    Post subject: Reply with quote

Can help this?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
droide
n00b
n00b


Joined: 27 Jul 2007
Posts: 23

PostPosted: Mon Jul 22, 2019 7:25 am    Post subject: Reply with quote

fedeliallalinea wrote:
Can help this?


Thanks but I don't solve the problem...
_________________
https://blog.waccabac.com
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22016
Location: here

PostPosted: Mon Jul 22, 2019 7:27 am    Post subject: Reply with quote

droide wrote:
Thanks but I don't solve the problem...

You tried to apply proposed patch?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
droide
n00b
n00b


Joined: 27 Jul 2007
Posts: 23

PostPosted: Mon Jul 22, 2019 7:48 am    Post subject: Reply with quote

Same problem :

Code:
# cmake . -DCMAKE_SKIP_INSTALL_RPATH=ON
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting install rpath to
-- Looking for sqrt in m
-- Looking for sqrt in m - found
-- Found Sqlite3: /usr/include 
-- Found XML2: /usr/include/libxml2 
-- Found Git: /usr/bin/git (found suitable version "2.21.0", minimum required is "1.7.1")
fatal: ni ceci ni aucun de ses répertoires parents n'est un dépôt git : .git
-- Package file name is bzrtp-1.0.6
CMake Error at build/CMakeLists.txt:50 (bc_generate_rpm_specfile):
  Unknown CMake command "bc_generate_rpm_specfile".

_________________
https://blog.waccabac.com
Back to top
View user's profile Send private message
k547924
n00b
n00b


Joined: 17 Feb 2019
Posts: 14

PostPosted: Wed Aug 14, 2019 10:21 am    Post subject: Reply with quote

fedeliallalinea wrote:
Can help this?


Hi fedeliallalinea,

Adding
Code:
-Wno-error=cast-function-type


shift the problem elsewhere:

Code:

linphone/coreapi/lime.c:295:97: error: passing argument 4 of 'bzrtp_cache_write' from incompatible pointer type [-Werror=incompatible-pointer-types]
  return bzrtp_cache_write(cachedb, associatedKey->zuid, "lime", role==LIME_SENDER?colNamesSender:colNamesReceiver, colValues, colLength, colNums);
Back to top
View user's profile Send private message
Makersmarx
n00b
n00b


Joined: 16 Feb 2019
Posts: 13
Location: Costa Rica

PostPosted: Wed Aug 14, 2019 5:25 pm    Post subject: Reply with quote

My problem @rion is with bctoolbox, will add errors when not on mobile. Just get a CMakeFiles/Makefile2:199: src/CMakeFiles/bctoolbox.dir/all] Error 2 @ 68% during build
_________________
Pura Vida
Back to top
View user's profile Send private message
Jimmy Jazz
Apprentice
Apprentice


Joined: 04 Oct 2004
Posts: 291
Location: Strasbourg

PostPosted: Thu Aug 15, 2019 4:38 pm    Post subject: Reply with quote

Makersmarx wrote:
My problem @rion is with bctoolbox, will add errors when not on mobile. Just get a CMakeFiles/Makefile2:199: src/CMakeFiles/bctoolbox.dir/all] Error 2 @ 68% during build


try linphone-desktop-4.1.1 Also I didn't have time to test it myself.
_________________
« La seule condition au triomphe du mal, c'est l'inaction des gens de bien » E.Burke
Code:

+----+----+----+
|    |::::|    |
|    |::::|    |
+----+----+----+

motto: WeLCRO
WritE Less Code, Repeat Often
Back to top
View user's profile Send private message
Makersmarx
n00b
n00b


Joined: 16 Feb 2019
Posts: 13
Location: Costa Rica

PostPosted: Thu Aug 15, 2019 5:40 pm    Post subject: Reply with quote

Jimmy Jazz wrote:
Makersmarx wrote:
My problem @rion is with bctoolbox, will add errors when not on mobile. Just get a CMakeFiles/Makefile2:199: src/CMakeFiles/bctoolbox.dir/all] Error 2 @ 68% during build


try linphone-desktop-4.1.1 Also I didn't have time to test it myself.


Thanks, will give it a go this weekend when I get home.
_________________
Pura Vida
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum