Bug 662661

Summary: OSError: /usr/lib64/libphidget21.so: undefined symbol: DNSServiceRefSockFD
Product: [Fedora] Fedora Reporter: Egon Kastelijn <redhat2>
Component: libphidgetAssignee: Rich Mattes <richmattes>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: richmattes
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libphidget-2.1.7.20101103-1.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-02 19:48:24 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:

Description Egon Kastelijn 2010-12-13 14:34:56 UTC
Description of problem:
The Phidgets Python example code causes a crash in combination with the libphidget rpm supplied by Fedora 14.

Version-Release number of selected component (if applicable):
libphidget.x86_64  2.1.7.20100621-5.fc14

How reproducible:
Always (see steps below)

Steps to Reproduce:
0. Buy a Phidget Interface Kit 8/8/8   ;)
1. yum install libphidget libphidget-devel
2. cd /usr/src
3. wget http://www.phidgets.com/downloads/examples/Python_2.1.7.20101103.zip
4. unzip Python_2.1.7.20101103.zip
5. cd Python
6. python InterfaceKit-simple.py
  
Actual results:
# python InterfaceKit-simple.py 
Traceback (most recent call last):
  File "InterfaceKit-simple.py", line 23, in <module>
    interfaceKit = InterfaceKit()
  File "/usr/lib64/python2.7/site-packages/Phidgets/Devices/InterfaceKit.py", line 47, in __init__
    PhidgetLibrary.getDll().CPhidgetInterfaceKit_create(byref(self.handle))
  File "/usr/lib64/python2.7/site-packages/Phidgets/PhidgetLibrary.py", line 24, in getDll
    PhidgetLibrary.__dll = cdll.LoadLibrary("libphidget21.so")
  File "/usr/lib64/python2.7/ctypes/__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
  File "/usr/lib64/python2.7/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /usr/lib64/libphidget21.so: undefined symbol: DNSServiceRefSockFD
#

Expected results:
# python InterfaceKit-simple.py 
Opening phidget object....
Waiting for attach....
InterfaceKit 37168 Attached!
InterfaceKit 37168: Input 0: False
InterfaceKit 37168: Input 1: False
InterfaceKit 37168: Input 2: False
InterfaceKit 37168: Input 3: False
InterfaceKit 37168: Input 4: False
InterfaceKit 37168: Input 5: False
InterfaceKit 37168: Input 6: False
InterfaceKit 37168: Input 7: False
InterfaceKit 37168: Output 0: False
InterfaceKit 37168: Output 1: False
InterfaceKit 37168: Output 2: False
InterfaceKit 37168: Output 3: False
InterfaceKit 37168: Output 4: False
InterfaceKit 37168: Output 5: False
InterfaceKit 37168: Output 6: False
InterfaceKit 37168: Output 7: False
InterfaceKit 37168: Sensor 0: 5
InterfaceKit 37168: Sensor 1: 6
InterfaceKit 37168: Sensor 2: 532
InterfaceKit 37168: Sensor 3: 499
InterfaceKit 37168: Sensor 4: 2
InterfaceKit 37168: Sensor 5: 0
InterfaceKit 37168: Sensor 6: 1
InterfaceKit 37168: Sensor 7: 0
|------------|----------------------------------|--------------|------------|
|- Attached -|-              Type              -|- Serial No. -|-  Version -|
|------------|----------------------------------|--------------|------------|
|-     True -|-     Phidget InterfaceKit 8/8/8 -|-      37168 -|-      824 -|
|------------|----------------------------------|--------------|------------|
Number of Digital Inputs: 8
Number of Digital Outputs: 8
Number of Sensor Inputs: 8

Additional info:
I found out that this problem does not occur when I download the newest source code from phidgets.com:
http://www.phidgets.com/downloads/libraries/libphidget_2.1.7.20101103.tar.gz

./configure
make
make install

After that the Python example code works fine.

Comment 1 Rich Mattes 2010-12-15 03:17:44 UTC
Thanks for the report.  I updated the libphidget package to the latest version, and I think I've solved the error you're encountering.  I guess you downloaded and installed the python modules from the phidget website; I did the same and the example you tried to run seems to work fine now.

The new builds are located at http://koji.fedoraproject.org/koji/taskinfo?taskID=2665003, could you please test them and see if this solves your issue?

Comment 2 Egon Kastelijn 2010-12-15 06:00:33 UTC
Cool! Thnx.

I downloaded the RPMs you generated and installed them.
The Python example works fine now.
The C/C++ example also works.

Great!

I'll see if I can find some Karma around here, once the update pops up on Bodhi.
;)

kind regards,

   Egon

Comment 3 Rich Mattes 2010-12-15 06:24:42 UTC
Thanks for getting back to me so quickly!  I'll go ahead and submit the updates, please file more bugs should any more problems arise.

Comment 4 Fedora Update System 2010-12-15 06:25:24 UTC
libphidget-2.1.7.20101103-1.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/libphidget-2.1.7.20101103-1.fc13

Comment 5 Fedora Update System 2010-12-15 06:25:30 UTC
libphidget-2.1.7.20101103-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/libphidget-2.1.7.20101103-1.fc14

Comment 6 Fedora Update System 2010-12-17 08:26:24 UTC
libphidget-2.1.7.20101103-1.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update libphidget'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/libphidget-2.1.7.20101103-1.fc14

Comment 7 Fedora Update System 2011-01-02 19:48:20 UTC
libphidget-2.1.7.20101103-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2011-01-02 19:49:23 UTC
libphidget-2.1.7.20101103-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.