Re: [Linphone-users] mediastreamer2 compile troubles on Fedora 7

2008-01-25 Thread Simon Morlat
Hi,

Those compilation bugs are already solved in the CVS.
I'm sorry to have make you loose your time on this: indeed I made too 
unfrequent mediastreamer2 releases those last times.

regards,

Simon

Le Thursday 17 January 2008 16:52:25 Roman Imankulov, vous avez écrit :
 Hi,

 I'm trying to build mediastreamer-2.1.0 against Fedora 7 and discover
 strange errors during compilation. When I'm doing ./configure  make I get
 these messages:

 if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
 -I.. -I../include/   -I.. -D_REENTRANT -DORTP_INET6  -DORTP_INET6
 -DINET6 -Wall -O2 -g  -pthread -D_REENTRANT -MT ice.lo -MD -MP -MF
 .deps/ice.Tpo -c -o ice.lo ice.c; \
 then mv -f .deps/ice.Tpo .deps/ice.Plo; else rm -f
 .deps/ice.Tpo; exit 1; fi
  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include/ -I.. -D_REENTRANT
 -DORTP_INET6 -DORTP_INET6 -DINET6 -Wall -O2 -g -pthread -D_REENTRANT -MT
 ice.lo -MD -MP -MF .deps/ice.Tpo -c ice.c  -fPIC -DPIC -o .libs/ice.o
 ice.c:31: error: expected declaration specifiers or '...' before 'bool'
 ice.c:36: error: expected declaration specifiers or '...' before 'bool'
 ice.c: In function 'ice_sendtest':
 ice.c:38: error: 'bool' undeclared (first use in this function)

 [SKIPPED]

 make[1]: Leaving directory
 `/home/cyx/Download/soft/Phone/mediastreamer-2.1.0'
 make: *** [all] Error 2

 I found out that there is type bool and constants true and false
 occurred in the src/ice.c whereas another code of mediastreamer uses
 bool_t. Moreover, I'm not sure but I think that variable
 switch_to_address (near line 217) have to be of type int not bool.

 The patch which helps me to build mediastreamer (./configure
 --disable-strict  make  make install) without errors is below. I'd like
 to know if these troubles due to the bug in the ice.c or I'm doing
 something wrong... I'm ready to give some additional information about my
 build environment (installed libraries, etc).

 Thank you.


 --- src/ice.c.orig  2008-01-17 20:08:19.0 +0500
 +++ src/ice.c   2008-01-17 20:10:54.0 +0500
 @@ -28,16 +28,16 @@
  static void
  ice_sendtest( Socket myFd, StunAddress4 *dest,
const StunAtrString *username, const StunAtrString
 *password,
 -  int testNum, bool verbose , UInt128 *tid);
 +  int testNum, bool_t verbose , UInt128 *tid);

  static void
  ice_sendtest( Socket myFd, StunAddress4 *dest,
const StunAtrString *username, const StunAtrString
 *password,
 -  int testNum, bool verbose , UInt128 *tid)
 +  int testNum, bool_t verbose , UInt128 *tid)
  {
 -   bool changePort=false;
 -   bool changeIP=false;
 -   bool discard=false;
 +   bool_t changePort=FALSE;
 +   bool_t changeIP=FALSE;
 +   bool_t discard=FALSE;

 StunMessage req;
 char buf[STUN_MAX_MESSAGE_SIZE];
 @@ -50,17 +50,17 @@
case 11:
   break;
case 2:
 - /* changePort=true; */
 - changeIP=true;
 + /* changePort=TRUE; */
 + changeIP=TRUE;
   break;
case 3:
 - changePort=true;
 + changePort=TRUE;
   break;
case 4:
 - changeIP=true;
 + changeIP=TRUE;
   break;
case 5:
 - discard=true;
 + discard=TRUE;
   break;
default:
   printf(Test %i is unkown\n, testNum);
 @@ -118,7 +118,7 @@
  StunAddress4 stunServerAddr;
  StunAtrString username;
  StunAtrString password;
 -bool res;
 +bool_t res;

  int  pad_size;

  struct CandidatePair *cand_pair = remote_candidates[pos];
 @@ -156,10 +156,10 @@

  res = stunParseServerName(cand_pair-remote_candidate.ipaddr,
  stunServerAddr);
 -if ( res == true )
 +if ( res == TRUE )
  {
  stunServerAddr.port = cand_pair-remote_candidate.port;
 -ice_sendtest(media_socket, stunServerAddr, username,
 password, 1, 0/*false*/,
 +ice_sendtest(media_socket, stunServerAddr, username,
 password, 1, 0/*FALSE*/,
  (cand_pair-tid));
  }
  }
 @@ -217,9 +217,9 @@

  int ice_process_stun_message(RtpSession *session, struct CandidatePair
 *remote_candidates, OrtpEvent *evt)
  {
 -bool switch_to_address = -1;
 +int switch_to_address = -1;
  StunMessage msg;
 -bool res;
 +bool_t res;
  int already_worked_once=-1;
  OrtpEventData *evt_data = ortp_event_get_data(evt);
  mblk_t *mp = evt_data-packet;
 @@ -296,8 +296,8 @@
  StunAddress4 secondary;
  StunAddress4 myAddr;
  StunAddress4 myAltAddr;
 -bool changePort = false;
 -bool changeIp = false;
 +bool_t changePort = FALSE;
 +bool_t changeIp = FALSE;
  struct sockaddr_storage name;
  socklen_t namelen;
  char localip[128];
 @@ -345,7 +345,7 @@

Re: [Linphone-users] linphonec: segmentation fault

2008-01-25 Thread Gerard Robin

On Fri, Jan 25, 2008 at 03:42:55PM +0100, Simon Morlat wrote:

From: Simon Morlat [EMAIL PROTECTED]
To: linphone-users@nongnu.org
Cc: Gerard Robin [EMAIL PROTECTED]
Subject: Re: [Linphone-users] linphonec: segmentation fault

Hi Gerard,

-g is always added by linphone configure script. It is removed by debian 
packages only.

So no problem, your build is ok.

sudo make:
---8---
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include/ -I.. -I../../oRTP/include 
-DORTP_INET6 -DINET6 -Wall -O2 -g -pthread -D_REENTRANT -MT videodec.lo -MD -MP 
-MF .deps/videodec.Tpo -c videodec.c  -fPIC -DPIC -o .libs/videodec.o
videodec.c:21:28: error: ffmpeg/swscale.h: No such file or directory
videodec.c: In function 'dec_uninit':
videodec.c:99: warning: implicit declaration of function 'sws_freeContext'
videodec.c: In function 'get_as_yuvmsg':
videodec.c:215: warning: implicit declaration of function 'sws_getContext'
videodec.c:216: error: 'SWS_FAST_BILINEAR' undeclared (first use in this 
function)
videodec.c:216: error: (Each undeclared identifier is reported only once
videodec.c:216: error: for each function it appears in.)
videodec.c:217: warning: assignment makes pointer from integer without a cast
videodec.c:219: warning: implicit declaration of function 'sws_scale'
make[5]: *** [videodec.lo] Erreur 1
make[5]: quittant le répertoire « /usr/src/linphone-2.0.1/mediastreamer2/src »
make[4]: *** [all] Erreur 2
make[4]: quittant le répertoire « /usr/src/linphone-2.0.1/mediastreamer2/src »
make[3]: *** [all-recursive] Erreur 1
make[3]: quittant le répertoire « /usr/src/linphone-2.0.1/mediastreamer2 »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « /usr/src/linphone-2.0.1/mediastreamer2 »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /usr/src/linphone-2.0.1 »
make: *** [all] Erreur 2

googling swscale.h,  I see that debian chuck swscale.h out ...

???
--
Gérard


___
Linphone-users mailing list
Linphone-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/linphone-users


Re: [Linphone-users] linphonec: segmentation fault

2008-01-25 Thread Simon Morlat
Hi Gerard,

-g is always added by linphone configure script. It is removed by debian 
packages only.
So no problem, your build is ok.

Simon

Le Sunday 20 January 2008 08:35:15 Gerard Robin, vous avez écrit :
 On Sat, Jan 19, 2008 at 04:42:34PM +0100, Gerard Robin wrote:
 From: Gerard Robin [EMAIL PROTECTED]
 To: linphone linphone-users@nongnu.org
 Subject: Re: [Linphone-users] linphonec: segmentation fault
 MTA: Postfix Version: 2.4.6-4
 EDITOR: vim or gvim
 
  On Fri, Jan 18, 2008 at 11:17:03PM +0100, Simon Morlat wrote:
  From: Simon Morlat [EMAIL PROTECTED]
  To: linphone-users@nongnu.org
  Cc: Gerard Robin [EMAIL PROTECTED]
  Subject: Re: [Linphone-users] linphonec: segmentation fault
 
  Gulp, this does not help me a lot...
  There are plenty of places where strstr() is used in linphone...
  If you have the opportunity to compile with debug symbols, don't
  hesitate.
 
  I will try to compile it but I need some informations:
 
  on my box (debian sid) I have:
  libosip2-2:
Installé : 3.0.3-2-1
  speex:
Installé : 1.1.12-3
  libreadline5:
Installé : 5.2-3
  libavcodec1d:
Installé : 0.cvs20070307-6
  libgsm1:
Installé : 1.0.12-1
  libexosip2-4:
Installé : 3.0.3-3-1
  libsdl-image1.2:
Installé : 1.2.6-1
  libsdl1.2debian:
Installé : 1.2.13-1
  libsdl1.2debian-alsa:
Installé : 1.2.13-1
 
  I would like to know if I must install some packages -dev in additon
  to the previous packages ?

 Ok I have installed all the -dev related to the previous packages and
 ./configure succeeded.

 I have always the same question about the makefile:
 is the option -g of gcc set by default or must I edit the makefile ?




___
Linphone-users mailing list
Linphone-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/linphone-users