>>>>> "Navya" == Navya S Kamath <[EMAIL PROTECTED]> writes:
Navya> Hi All,
Navya> I'm trying to compile the USB host application on a RedHat
Navya> Enterprise Linux, I get following errors
Navya> usbhost.o(.text+0xb4): In function `usb_scan_devices':
Navya> : undefined reference to `__fgetc_unlocked'
Navya> usbhost.o(.text+0x197): In function `usb_scan_devices':
Navya> : undefined reference to `__fgetc_unlocked'
Navya> usbhost.o(.text+0x207): In function `usb_scan_devices':
Navya> : undefined reference to `__fgetc_unlocked'
Navya> usbhost.o(.text+0x163d): In function `run_test_bulk_out':
Navya> : undefined reference to `__glibc_strerror_r'
Navya> usbhost.o(.text+0x1e4b): In function `run_test_bulk_in':
Navya> : undefined reference to `__glibc_strerror_r'
Navya> usbhost.o(.text+0x2807): In function `run_test_control_in':
Navya> : undefined reference to `__glibc_strerror_r'
Navya> I include file /usr/local/include/stdio.h has these
Navya> definitions.Anybody faced such errors before? Please help
It is not clear that usbhost is going to compile easily on any current
Linux system due to incompatible changes in the Linux world. For
example my Fedora 7 system no longer has a <linux/usb.h> header,
instead there is a <linux/usb/ch9.h> header which appears much to have
the same contents.
However I think that your immediate problem is that the build is
picking up the wrong header files. I do not know where
/usr/local/include/stdio.h comes from, but the usbhost build should be
using the official header files from /usr/include.
Bart
--
Bart Veer eCos Configuration Architect
eCosCentric Limited The eCos experts http://www.ecoscentric.com/
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss