2009-02-25 16:21:31     Linphone does not respond to stdin

Document created by Aaronwu Employee on Aug 14, 2013
Version 1Show Document
  • View in full screen mode

2009-02-25 16:21:31     Linphone does not respond to stdin

Rob Maris (GERMANY)

Message: 69911   

 

Using a build by current svn trunk, Im encountering a basic problem upon start of linphonec, see log below, which includes a short test of (audible) audio test:

 

 

 

root: /> arecord -D plughw:0,0 -f S16_LE a.wav

Recording WAVE 'a.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono

^CAborted by signal Interrupt...

root: /> aplay -D plughw:0,0 -f S16_LE a.wav

Playing WAVE 'a.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono

root: /> linphonec

NLS disabled.

Ready

Warning: video is disabled in linphonec.

linphonec> ^Croot:/

 

The platform is a TCM-BF537, used together with an AD73311.

 

Contrary to the log shown at the blackfin linphone doc page, only NLS is disabled, but the strangest thing is: there is no visible response to key hits, except CTRL-C (another shell-like program as tclsh e.g. perform correctly in this respect).

 

Note: Ethernet is OK, ping is successful.

QuoteReplyEditDelete

 

 

2009-02-25 16:28:36     Re: Linphone does not respond to stdin

Rob Maris (GERMANY)

Message: 69912   

 

short follow-up:

 

The build process shows several errors around linphone build activity, with the addition "ignored".

 

make[7]: [install-data-local] Fehler 1 (ignoriert)

 

QuoteReplyEditDelete

 

 

2009-02-25 16:35:45     Re: Linphone does not respond to stdin

Mike Frysinger (UNITED STATES)

Message: 69913   

 

are you sure you're using latest svn trunk ?  there was a bug like this, but Yi fixed it ...

 

to be sure, i'd run like `make clean` after updating to latest svn trunk

QuoteReplyEditDelete

 

 

2009-02-25 17:31:18     Re: Linphone does not respond to stdin

Rob Maris (GERMANY)

Message: 69917   

 

Hm, tried make clean, with little hope, since the trunk is completely set up today using svn command (my previous trunk 7688 originated from a compressed file source). However, after make clean, the following is reported just before build stop:

 

make[5]: Verlasse Verzeichnis '/home/rob/uClinux_2.6.4/uclinux-dist/lib/ncurses/build-ncurses-5.7/c++'

make[4]: Verlasse Verzeichnis '/home/rob/uClinux_2.6.4/uclinux-dist/lib/ncurses/build-ncurses-5.7'

make post-build

make[4]: Betrete Verzeichnis '/home/rob/uClinux_2.6.4/uclinux-dist/lib/ncurses'

make[4]: Für das Ziel »post-build« ist nichts zu tun.

make[4]: Verlasse Verzeichnis '/home/rob/uClinux_2.6.4/uclinux-dist/lib/ncurses'

/home/rob/uClinux_2.6.4/uclinux-dist/tools/cross-fix-root

make[3]: Verlasse Verzeichnis '/home/rob/uClinux_2.6.4/uclinux-dist/lib/ncurses'

make[2]: Verlasse Verzeichnis '/home/rob/uClinux_2.6.4/uclinux-dist/lib'

make[1]: *** [all] Fehler 2

make[1]: Verlasse Verzeichnis '/home/rob/uClinux_2.6.4/uclinux-dist/lib'

make: *** [subdirs] Fehler 1

 

After resume with make, the process ends up with a completed build (why?), and the same ignored errors as reported in my previous post. The tool set consists of the trunk state, downloaded as per febr. 5th.

 

 

QuoteReplyEditDelete

 

 

2009-02-25 17:34:15     Re: Linphone does not respond to stdin

Rob Maris (GERMANY)

Message: 69918   

 

my trunk state is 7797? (as found in uclinux-dist/.svn/entries)

QuoteReplyEditDelete

 

 

2009-02-25 17:38:13     Re: Linphone does not respond to stdin

Mike Frysinger (UNITED STATES)

Message: 69920   

 

that snippet doesnt contain an actual error.  things build in parallel, so the real error occurred long before.  scroll up to see it, or force a single build by doing `make single`

QuoteReplyEditDelete

 

 

2009-02-25 18:42:59     Re: Linphone does not respond to stdin

Rob Maris (GERMANY)

Message: 69923   

 

Ah, single make as contrary to recursive make? Now I understand why make may fail sometimes.

 

However, make single (after make clean) yields the same result, i.e. no key response within linphonec.

 

I tried this:

 

root:   /> linphonec -d 6

NLS disabled.

INFO: no logfile, logging to stdout

ortp-message-oRTP-0.15.0 initialized.

ortp-message-Registering all filters...

ortp-message-Registering all soundcard handlers

ortp-message-Card ALSA: default device added

ortp-message-Card ALSA: bf5xx_ad73311 added

ortp-message-Card OSS: /dev/dsp added

ortp-message-Card OSS: /dev/dsp added

ortp-message-Loading plugins

ortp-message-Cannot open directory /usr/lib/mediastreamer/plugins: No such fileor directory

ortp-message-ms_init() done

ortp-message-Adding new codec PCMU/8000

ortp-message-Adding new codec PCMA/8000

ortp-message-Adding new codec speex/8000

ortp-message-Adding new codec speex/16000

ortp-message-DNS resolution with 0.0.0.0:5060

ortp-message-getaddrinfo returned the following addresses:

ortp-message-0.0.0.0 port 5060

ortp-message-eXosip: Reseting timer to 10s before waking up!

Ready

Warning: video is disabled in linphonec.

linphonec> ortp-message-eXosip: Reseting timer to 10s before waking up!

ortp-message-eXosip: Reseting timer to 10s before waking up!

ortp-warning-keep alive: 3

ortp-message-eXosip: Reseting timer to 10s before waking up!

 

What about mediastreamer plugins? Should I take any additional menuconfig topic into account?

 

 

 

 

QuoteReplyEditDelete

 

 

2009-02-25 19:06:55     Re: Linphone does not respond to stdin

Mike Frysinger (UNITED STATES)

Message: 69924   

 

recursive is not the same thing as parallel.  `make single` forces a serial build rather than parallel.

 

if `make` is failing but `make single` is working, you should run something like:

make >& log

and then post that log for us to look at and fix the real bug

 

i'll open a tracker item for someone to look at linphonec to make sure it's working as expected.  could you please run `make bugreport` and post the resulting tarball as an attachment.  this will hopefully make reproduction easier.

QuoteReplyEditDelete

 

 

2009-02-26 01:31:54     Re: Linphone does not respond to stdin

Rob Maris (GERMANY)

Message: 69935   

 

Mike, please find attached the log file. The first error ("Fehler" - sorry for the intermixing with german phrases) seems to occur in relationship with gsm build - which I have included a few builds ago.

 

The make bugreport is going on as my next step.

 

log.tar.gz

QuoteReplyEditDelete

 

 

2009-02-26 01:44:59     Re: Linphone does not respond to stdin

Rob Maris (GERMANY)

Message: 69937   

 

I didn't expect that make bugreport immediately created the report using the previous build. Here it is.

 

Rob

 

bugreport.tgz

QuoteReplyEditDelete

 

 

2009-02-26 15:14:16     Re: Linphone does not respond to stdin

Mike Frysinger (UNITED STATES)

Message: 70037   

 

thanks, that shows the error clearly.  it should be fixed in svn now.

QuoteReplyEditDelete

 

 

2009-03-05 03:48:13     Re: Linphone does not respond to stdin

Rob Maris (GERMANY)

Message: 70420   

 

i'll open a tracker item for someone to look at linphonec to make sure it's working as expected.  could you please run `make bugreport` and post the resulting tarball as an attachment.  this will hopefully make reproduction easier.

 

---

 

I have just synced my source base with trunk (because of a readline problem). I hoped that this would solve the non-response to key hits within the linphonec interactive console. The problem still remains.

 

Mike, can you provide a short status regarding the tracker item? - yet I don't find it in bug tracker list.

QuoteReplyEditDelete

 

 

2009-03-05 19:09:34     Re: Linphone does not respond to stdin

Mike Frysinger (UNITED STATES)

Message: 70479   

 

the fix i referred to originally was in readline-5 ...

 

you can try doing this:

$ cd lib/readline

$ svn diff -r7702:7703 readline-5.2_p13 > f

$ cd readline-6.0

$ patch -p1 < ../f

$ cd ../../..

$ make lib/readline_clean

QuoteReplyEditDelete

 

 

2009-03-06 04:48:05     Re: Linphone does not respond to stdin

Rob Maris (GERMANY)

Message: 70527   

 

I'm impressed...

 

That's it!

 

Linphonec console is OK; the consoles tclsh and lua are found to operate as before (=OK).

QuoteReplyEditDelete

 

 

2009-03-16 11:48:35     Re: Linphone does not respond to stdin

Rob Maris (GERMANY)

Message: 71041   

 

Mike: can you please give a statement whether or not this readline change is going into SVN (up to date nothing noticed).

 

-Rob

QuoteReplyEditDelete

 

 

2009-03-16 17:39:01     Re: Linphone does not respond to stdin

Mike Frysinger (UNITED STATES)

Message: 71052   

 

that's because the fix went into uClibc

Attachments

Outcomes