Bug 666256

Summary: Ekiga does not recognise any devices
Product: Red Hat Enterprise Linux 6 Reporter: David Mair <dmair>
Component: ptlibAssignee: Benjamin Otte <otte>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.3CC: agk, ddumas, eugen.dedu, jnevill, jpeterka, jwest, kpiwko, mbaudier, mcepl, mclasen, myllynen, rfreire, sgraf, syeghiay, sysadmin, tjackson, tpelka, twillber
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 766169 (view as bug list) Environment:
Last Closed: 2013-10-07 01:32:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 645519, 670971, 766169, 782183, 835616, 1002711    
Attachments:
Description Flags
debug output, ekiga -d 4
none
debug output; PTLIB_TRACE_LEVEL=4 ekiga 2>ekiga.log none

Description David Mair 2010-12-29 21:58:28 UTC
Description of problem:
Ekiga does not recognise any devices attached for audio/video on Lenovo Thinkpad (T500)

Version-Release number of selected component (if applicable):
ekiga-3.2.6-3.el6.x86_64

How reproducible:
Every time

Steps to Reproduce:
1.Fire up Ekiga
2.Attempt to configure
3.No devices listed
  
Actual results:
Cannot use Ekiga for audio/video conferencing nor can you hear a ringtone for incoming calls.

Expected results:
Ekiga should recognise internal devices.

Additional info:

Comment 3 RHEL Program Management 2011-01-14 22:09:35 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 4 Eugen Dedu 2011-04-01 10:12:11 UTC
This is probably because you do not have installed ptlib plugins.  What does
ls -lR /usr/lib/ptlib*
show?

If you do not see alsa and v4l2 (and v4l), then the problem is there.

Just install ptlib plugins package and tell ptlib maintainer to:
- make libpt depend on libpt-plugins
- or better, as it is done on debian, put plugins too inside libpt package

Comment 5 Toni Willberg 2011-05-18 18:51:59 UTC
I have same problem; no audio devices detected.

The files alsa_pwplugin.so and v4l2_pwplugin.so are only ones under ptlib, those are provided by ptlib-2.6.5-3.el6.x86_64. Is something else missing from ptlib? 

I didn't find separate ptlib-plugins or libpt-plugins for RHEL6.

Comment 6 Eugen Dedu 2011-05-18 20:11:48 UTC
What does
ls -lR /usr/lib/ptlib*
show?

Attach -d 4 output when starting and closing ekiga 5 sec. later.

Comment 7 Toni Willberg 2011-05-19 07:40:54 UTC
###
ls -lR /usr/lib/ptlib*
ls: cannot access /usr/lib/ptlib*: No such file or directory

###
ls -lR /usr/lib64/ptlib*
/usr/lib64/ptlib-2.6.5:
total 4
drwxr-xr-x. 4 root root 4096 Oct  4  2010 devices

/usr/lib64/ptlib-2.6.5/devices:
total 8
drwxr-xr-x. 2 root root 4096 Oct  4  2010 sound
drwxr-xr-x. 2 root root 4096 Oct  4  2010 videoinput

/usr/lib64/ptlib-2.6.5/devices/sound:
total 80
-rwxr-xr-x. 1 root root 81384 Jun 22  2010 alsa_pwplugin.so

/usr/lib64/ptlib-2.6.5/devices/videoinput:
total 92
-rwxr-xr-x. 1 root root 90472 Jun 22  2010 v4l2_pwplugin.so

Comment 8 Toni Willberg 2011-05-19 07:41:52 UTC
Created attachment 499766 [details]
debug output, ekiga -d 4

Comment 9 Eugen Dedu 2011-05-19 08:06:00 UTC
I suppose that ptlib does not read /usr/lib64.  Could you execute:

strace ekiga 2>&1 | grep /usr/lib.*/ptlib

and tell us what it shows.

Comment 10 Toni Willberg 2011-05-19 08:35:48 UTC
strace ekiga 2>&1 | grep /usr/lib.*/ptlib

doesn't show anything, but:

strace ekiga 2>&1 |grep -i /usr/li.*pt
open("/usr/lib64/libpt.so.2.6.5", O_RDONLY) = 3
open("/usr/lib64/libcrypto.so.10", O_RDONLY) = 3

Comment 11 Jiri Peterka 2011-05-24 18:58:50 UTC
Same problem here. I'm not sure about PM statement. Ekiga is useless without fixing this bug. Is there at least any workaround at this moment?

Comment 12 Eugen Dedu 2011-05-25 16:12:01 UTC
Do you have /usr/lib ?  If not, create it like this:

# cd /usr
# ln -s lib64 lib

and test ekiga.

You can remove the 'lib' link afterwards.

If you have /usr/lib, then create inside a link to /usr/lib64 counterpart.

This is because I think ekiga tries to load directly /usr/lib/ptlib-... instead of /usr/lib64/ptlib-...

Comment 13 Jiri Peterka 2011-05-27 14:40:28 UTC
I created link in /usr/lib (ptlib-2.6.5 -> /usr/lib64/ptlib-2.6.5/) and run ekiga however no change there.

Comment 14 Eugen Dedu 2011-05-27 14:47:39 UTC
Three other tests:
cd /usr/lib64/ptlib-* ; ekiga

and
ENV_PTLIB_PLUGIN_DIR=/usr/lib64/ptlib-2.6.5 ekiga

and
ENV_PTLIB_PLUGIN_DIR=/usr/lib64/ptlib ekiga

Comment 15 Jiri Peterka 2011-05-27 15:00:48 UTC
Same results: Ekiga started, no real devices available, no detected.

Comment 16 Toni Willberg 2011-05-27 15:50:44 UTC
Same result as comment 15, no devices detected.

Comment 17 Eugen Dedu 2011-05-27 16:08:15 UTC
Start ekiga like this:
PTLIB_TRACE_LEVEL=4 ekiga 2>output
and attach the output.

Comment 18 Toni Willberg 2011-05-27 16:18:35 UTC
Created attachment 501341 [details]
debug output; PTLIB_TRACE_LEVEL=4 ekiga 2>ekiga.log

PTLIB_TRACE_LEVEL=4 ekiga 2>ekiga.log

Comment 19 Eugen Dedu 2011-05-27 17:02:21 UTC
The first lines are useful:
   pluginmgr.cxx(93)	PLUGIN	Cannot open plugin directory /usr/lib64/2.6.5/
   pluginmgr.cxx(96)	PLUGIN	Enumerating plugin directory /usr/lib64/opal-3.6.6/

The error is that it uses 2.6.5 instead of ptlib-2.6.5.  Could you create in /usr/lib64 a link ptlib-2.6.5 to 2.6.5 and tell if ekiga works?

Where are the details on how ptlib and opal and ekiga are built on your distribution (what patches, what configure parameters etc.)?

Comment 20 Toni Willberg 2011-05-27 17:11:52 UTC
ln -s ptlib-2.6.5 2.6.5
cd /usr/lib64/


PTLIB_TRACE_LEVEL=4 ekiga 2>ekiga.log

And now it works. It's a miracle. ;)

   tlibthrd.cxx(187)   PTLib   Maximum per-process file handles is 1024
   pluginmgr.cxx(96)    PLUGIN  Enumerating plugin directory /usr/lib64/2.6.5/
   pluginmgr.cxx(96)    PLUGIN  Enumerating plugin directory /usr/lib64/2.6.5/devices/
   pluginmgr.cxx(96)    PLUGIN  Enumerating plugin directory /usr/lib64/2.6.5/devices/sound/
   pluginmgr.cxx(96)    PLUGIN  Enumerating plugin directory /usr/lib64/2.6.5/devices/videoinput/
   pluginmgr.cxx(96)    PLUGIN  Enumerating plugin directory /usr/lib64/opal-3.6.6/
   pluginmgr.cxx(96)    PLUGIN  Enumerating plugin directory /usr/lib64/opal-3.6.6/codecs/
   pluginmgr.cxx(96)    PLUGIN  Enumerating plugin directory /usr/lib64/opal-3.6.6/codecs/audio/

Comment 22 Eugen Dedu 2011-05-27 18:19:29 UTC
Who is the u$*^^%j who added the multilib patch in ptlib??

Comment 23 Toni Willberg 2011-05-27 18:34:25 UTC
I tested with older ptlib:
 ptlib-2.6.5-3 triggers this problem in ekiga
 ptlib-2.6.5-1 works with ekiga

Comment 24 Benjamin Otte 2011-06-09 13:55:31 UTC
(In reply to comment #22)
> Who is the u$*^^%j who added the multilib patch in ptlib??

That would be me. I tried to make ptlib work with multilib, but obviously did not manage to do it right. I'm sure you've noticed by now and are hard at work on a better patch.

The problem is that ptlib generates headers at compile time. These headers differ on 32bit and 64bit but get installed at the same location. And this obviously may not happen.

The original bug for this was bug 605100.

Comment 25 Eugen Dedu 2011-06-09 14:45:23 UTC
(In reply to comment #24)
> (In reply to comment #22)
> > Who is the u$*^^%j who added the multilib patch in ptlib??
> 
> That would be me. I tried to make ptlib work with multilib, but obviously did
> not manage to do it right. I'm sure you've noticed by now and are hard at work
> on a better patch.

:o)

> The problem is that ptlib generates headers at compile time. These headers
> differ on 32bit and 64bit but get installed at the same location. And this
> obviously may not happen.

I use debian 64bit and ptlib works: it puts them in /usr/lib, and /usr/lib64 is a link to it.  Do you know how can we know if ptlib should install the plugins in /usr/lib or /usr/lib64 ?

> The original bug for this was bug 605100.

I do not have access to it.

Comment 26 Systems Admin 2011-06-14 16:40:23 UTC
Reading these comments it looked like a workaround existed.

(cd /usr/lib64 && ln -s ptlib-2.6.5 2.6.5) 

but it does not work for me. Am I missing something else? I really need this working before I can deploy for our corporate network.

Comment 27 Systems Admin 2011-06-14 17:06:47 UTC
Sorry all. I did a complete fresh install (via kickstart) and tried the above again and it does seem to now detect the devices. I guess I did something else to break things.

Comment 28 Eugen Dedu 2011-07-22 20:31:11 UTC
Benjamin, wasn't --libdir=/usr/lib64 a good solution for multiarch problem?

Comment 30 Mathieu Baudier 2011-12-03 17:10:23 UTC
The problem still occurs on Scientific Linux 6.1
ekiga.x86_64      3.2.6-3.el6      @anaconda-ScientificLinux-201107271550.x86_64

(cd /usr/lib64 && ln -s ptlib-2.6.5 2.6.5) solves it

Are there any plans to fix this?
As already put, Ekiga is otherwise pretty useless for normal users.

Comment 31 Eugen Dedu 2011-12-03 21:23:10 UTC
I would like to fix this issue upstream, but I do not know how.
1. What is the problem exactly?
2. Does someone know how to fix it?

Comment 32 Toni Willberg 2011-12-10 19:08:45 UTC
Problem still exists in RHEL 6.2. Causes Ekiga to be completely unusable on my laptop. (Thinkpad X200)

Comment 33 Eugen Dedu 2011-12-10 19:55:49 UTC
To resume the problem: RedHat uses a multilib approach.  Ekiga seems not to work in this case, hence ekiga RedHat  maintainer created ptlib-2.6.5-multilib.patch in ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Workstation/en/os/SRPMS/ptlib-2.6.5-3.el6.src.rpm.  But there is a bug in this patch.  The last lines should not be:

+#ifdef P_64BIT
+#define P_DEFAULT_PLUGIN_DIR "/usr/lib64/" PTLIB_VERSION
+#else
+#define P_DEFAULT_PLUGIN_DIR "/usr/lib/" PTLIB_VERSION
+#endif

but

+#ifdef P_64BIT
+#define P_DEFAULT_PLUGIN_DIR "/usr/lib64/ptlib-" PTLIB_VERSION
+#else
+#define P_DEFAULT_PLUGIN_DIR "/usr/lib/ptlib-" PTLIB_VERSION
+#endif

Can someone with write access to RedHat packages apply the fix?

Comment 38 Suzanne Logcher 2012-02-14 23:05:42 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 39 Eugen Dedu 2012-02-15 08:37:17 UTC
The fix to close this bug is given in comment #37.  It is a RedHat issue, please fix it, it is trivial.

Comment 40 Mathieu Baudier 2012-02-15 08:55:43 UTC
How does Red Hat dare to call their Desktop / Workstation editions "Enterprise" without fixing such bugs??

Nobody feels bad with shipping software which has been identified as completely unusable for more than one year?

We were considering purchasing Workstation subscriptions but it is now forgotten. Rather invest the money in patching such trivial bugs ourselves based on CentOS or Scientific Linux packages.

Very disappointed I am.

Comment 41 Jeremy West 2012-03-19 19:27:41 UTC
Folks,

We do appreciate the feedback on this bug report and look to use reports such as this to guide our efforts at improving our products. That being said, this bug tracking system is not a mechanism for getting support, and as such we are not able to make any guarantees as to the timeliness or suitability of a resolution. Red Hat is focused on prioritizing the needs of our customers at the top of the list.

If this issue is critical or in any way time sensitive, please raise a ticket through your regular Red Hat support channels to make certain that it gets the proper attention and prioritization to assure a timely resolution. 

For information on how to contact the Red Hat production support team, please see:

    https://www.redhat.com/support/process/production/#howto

Comment 42 Mathieu Baudier 2012-03-19 19:41:56 UTC
We are unlikely to buy (or recommend to our own customers) Desktop/Workstation subscriptions if they contain software which is broken from the very beginning and not fixed within one year.
(But I'm aware that the fix may be less trivial than it seems)

I assume getting new customers also belongs to your business model?

This being said, this is no place for a flame war. 
You seem not to be interested in Enterprise desktops, only in servers. This is good too know before investing further in this direction, and I very much appreciate that Red Hat is honest about it by keeping such information public.

Comment 43 Eugen Dedu 2012-03-19 20:03:20 UTC
I do not understand why people make comments instead of just fixing it.  It takes less time to fix it than to write a comment.

Comment 45 John Bradshaw 2012-05-07 10:02:31 UTC
Same issue on 32-bit version, the ln -s workaround in comment #20 is good on 32-bit.

Comment 46 RHEL Program Management 2012-07-10 06:27:55 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 47 RHEL Program Management 2012-07-11 01:56:53 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 48 RHEL Program Management 2012-09-07 05:18:16 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 51 Andrius Benokraitis 2013-10-07 01:32:26 UTC
This Bugzilla has been reviewed by Red Hat and is not planned on being addressed in Red Hat Enterprise Linux 6, and will be closed. If this bug is critical to production systems, please contact your Red Hat support representative and provide sufficient business justification.

Comment 52 manuel wolfshant 2013-11-15 09:47:42 UTC
JUst for the record, the problem still exists in RHEL 6.4

Comment 54 Rodrigo A B Freire 2016-01-11 14:53:00 UTC

*** This bug has been marked as a duplicate of bug 766169 ***