[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libusb+librump patch

From: Bruno Félix Rezende Ribeiro
Subject: libusb+librump patch
Date: Wed, 30 Sep 2015 01:57:20 -0300

Hello, GNU Hurd hackers!

Based on Robert Millan's mplayer rump patch, I was able to make a
patch to successfully build libusb-1.0 on Hurd linking it to librump.
The patch is attached.  To try it, save the patch file in the current
working directory and from there follow these steps:

  $ su -c 'apt-get install libbsd-dev'  
  $ wget 
  $ tar xf libusb-1.0.9.tar.bz2 && cd libusb-1.0.9
  $ patch -p1 < ../libusb-1.0.9+rump.patch
  $ rm config.guess
  $ autoreconf -i
  $ ./configure --enable-debug-log && make

To test the built library, build the example application and run it.

  $ cd examples && make
  $ su -c './listdevs'

Now, here is the problem: When I run 'listdevs' with no USB device
connected to the box I get:

  libusb: 0.000000 debug [libusb_init] libusb-1.0.9
  libusb: 1.870000 debug [usbi_add_pollfd] add fd 4 events 1
  libusb: 1.870000 debug [libusb_init] created default context
  libusb: 1.880000 debug [libusb_get_device_list] 
  libusb: 1.880000 debug [obsd_get_device_list] 
  libusb: 1.910000 debug [libusb_exit] 
  libusb: 1.910000 debug [libusb_exit] destroying default context
  libusb: 1.920000 debug [usbi_remove_pollfd] remove fd 4

And thus no device is listed, as expected.  However, if I plug in any
USB device I get the following message after the first (libusb_init)

  WARNING: 1 error while detecting hardware; check system log.

It means that this message is produced by the 'rump_init' function.
The other debug messages are the same, and thus no device is listed
--- what's not right.

Do you have any idea on what's going on?  Any points to facts,
procedures, concepts or documentation will be highly appreciated.  If
I can't make libusb work properly when directly linked to librump, I
clearly won't be able to make a translator indirection work.

A problem at a time.

 ,= ,-_-. =.  Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF]
((_/)o o(\_)) http://oitofelix.freeshell.org/
 `-'(. .)`-'  irc://chat.freenode.org/oitofelix
     \_/      xmpp:oitofelix@riseup.net

GNU ccd2cue maintainer
GNU Savannah hacker
GNU web translation team coordinator (Brazilian Portuguese)
GNU audio and video maintainer
DMOZ free software editor (Portuguese)

[GNU DISCLAIMER] I'm a GNU hacker, but my views don't necessarily
match those of the GNU project.  Hereby I express my own opinion,
style and perception, in good faith, aiming the betterment of GNU.

Attachment: libusb-1.0.9+rump.patch
Description: Text Data

Attachment: pgpE_3eLYfmW8.pgp
Description: Assinatura digital OpenPGP

reply via email to

[Prev in Thread] Current Thread [Next in Thread]