Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
using libusb 1.0 and 0.1 in parallel?!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
m@o
Apprentice
Apprentice


Joined: 25 Nov 2003
Posts: 184
Location: /eu/at/grz

PostPosted: Mon Sep 03, 2012 4:24 pm    Post subject: using libusb 1.0 and 0.1 in parallel?! Reply with quote

hey!

i'm trying to compile ykchalresp for my initramfs.
you can find the source here on github (it's also in portage sys-auth/ykpers)

i have libusb (1.0.9) and libusb-compat (0.1.4) installed. (plus the virtual/libusb package)

according to the advice of this forum i tried to compile the package with libusb-0.1 instead of 1.0, but i don't succeed.
i fail to get libusb-0.1 to be used by make. and configure does not seem to find it either.

when i run "./configure --with-backend=libusb" i get:
Code:
...
checking how to link with libyubikey... -lyubikey
checking for libusb_init in -lusb... yes
checking for libusb... no
checking for libusb... (cached) no
configure: error: libusb not found, please install usb.h and libusb.so


with libusb-1.0 it finished but fails when i try to build it.

i tried to edit the Makefile and the configure file, to get libusb0.1 in there. no success.

what can i do to get libusb-0.1 to be used with this build?

background: i try to get a static build of ykchalresp to put it in my initramfs. i want to unlock my harddrive based on a challenge and response of the yubikey.

thx for your help
m@o
Back to top
View user's profile Send private message
m@o
Apprentice
Apprentice


Joined: 25 Nov 2003
Posts: 184
Location: /eu/at/grz

PostPosted: Tue Sep 04, 2012 8:27 am    Post subject: Reply with quote

i tried the same thing on an ubuntu machine
it worked.

for the record:
i had to install libusb-dev and libyubikey-dev on the ubuntu machine. that's all.
then run:
./configure --with-backend=libusb
make LDFLAGS=-all-static

is it possible to get both libraries to work on gentoo as well?
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Tue Sep 04, 2012 8:56 am    Post subject: Reply with quote

m@o wrote:
i tried the same thing on an ubuntu machine
it worked.

for the record:
i had to install libusb-dev and libyubikey-dev on the ubuntu machine. that's all.
then run:
./configure --with-backend=libusb
make LDFLAGS=-all-static

is it possible to get both libraries to work on gentoo as well?


download llsusb-0.1 and compile it locally might work.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum