Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90244 - logitech_applet ebuild does not find libusb on amd64
Summary: logitech_applet ebuild does not find libusb on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Carlos Silva (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-24 07:35 UTC by Scott Jubenville
Modified: 2005-05-16 10:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Jubenville 2005-04-24 07:35:39 UTC
Trying to compile logitech_applet on amd64 and ebuild is unable to find libusb.


Reproducible: Always
Steps to Reproduce:
1.emerge logitech_applet
2.
3.

Actual Results:  
Calculating dependencies  ...done! 
>>> emerge (1 of 1) app-misc/logitech-applet-0.4_pre1 to / 
>>> md5 files   ;-) logitech-applet-0.4_pre1.ebuild 
>>> md5 files   ;-) ChangeLog 
>>> md5 files   ;-) metadata.xml 
>>> md5 files   ;-) files/digest-logitech-applet-0.4_pre1 
>>> md5 src_uri ;-) logitech_applet-0.4test1.tar.gz 
>>> Unpacking source... 
>>> Unpacking logitech_applet-0.4test1.tar.gz 
to /var/tmp/portage/logitech-applet-0.4_pre1/work 
>>> Source unpacked. 
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man 
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc 
--localstatedir=/var/lib --libdir=/usr/lib64 
--with-libusb-libraries=/usr/lib64/ 
configure: WARNING: If you wanted to set the --build type, don't use --host. 
    If a cross compiler is detected then cross compile mode will be used. 
checking for a BSD-compatible install... /bin/install -c 
checking whether build environment is sane... yes 
checking for gawk... gawk 
checking whether make sets $(MAKE)... yes 
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip 
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc 
checking for C compiler default output file name... a.out 
checking whether the C compiler works... yes 
checking whether we are cross compiling... no 
checking for suffix of executables... 
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes 
checking for x86_64-pc-linux-gnu-gcc option to accept ANSI C... none needed 
checking for style of include used by make... GNU 
checking dependency style of x86_64-pc-linux-gnu-gcc... gcc3 
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E 
checking for egrep... grep -E 
checking for ANSI C header files... yes 
checking for sys/types.h... yes 
checking for sys/stat.h... yes 
checking for stdlib.h... yes 
checking for string.h... yes 
checking for memory.h... yes 
checking for strings.h... yes 
checking for inttypes.h... yes 
checking for stdint.h... yes 
checking for unistd.h... yes 
checking for stdint.h... (cached) yes 
checking for inttypes.h... (cached) yes 
checking usb.h usability... yes 
checking usb.h presence... yes 
checking for usb.h... yes 
checking for usb_init in -lusb... no 
 
   ERROR!  libusb library not found, get it from 
   http://libusb.sourceforge.net 
   or use the --with-libusb-libraries option, if you have it installed 
 

Expected Results:  
Finds libusb and compiles cleanly. 
 

Tried adding this to ebuild:  
  
src_compile() {  
        econf --with-libusb-libraries=/usr/lib64/ || die "Error econf failed!"  
}  
  
but same result. Noticed libusb has a libusb-config program, but don't know 
how to use with ebuild.
Comment 1 Carlos Silva (RETIRED) gentoo-dev 2005-05-06 04:05:59 UTC
what version of liusb do u have installed? it compiles ok with 0.1.8 on my system.
Comment 2 Scott Jubenville 2005-05-06 13:51:06 UTC
The ebuild continues and compiles fine. I'ts the configuration that doesn't recognize the libusb library location. (I'm using libusb-0.1.8 also)

Are you on a 64 bit system also?
Comment 3 Carlos Silva (RETIRED) gentoo-dev 2005-05-06 14:06:52 UTC
yep, it works without any problem. i also asked another dev to tried and it also compiled fine. try to reemerge libusb. either 0.1.8 or 0.1.10a a see if it solved the problem.
Comment 4 Scott Jubenville 2005-05-16 10:50:03 UTC
Initial rebuild of libusb and then logitech_applet didn't change result.

But now latest try finds libusb.
Maybe recent addition of several amd64 packages and updating paths and environmental variables fixed the problem and it was only specific to my system.

Please mark fixed.