From: Bart Veer <bartv@ecoscentric.com>
To: "Navya S Kamath" <navya@coreel.com>
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] Compile USB Host Application
Date: Tue, 11 Dec 2007 22:19:00 -0000 [thread overview]
Message-ID: <pn8x4027tc.fsf@delenn.bartv.net> (raw)
In-Reply-To: <20071211062402.A14A5260003@tymora.bartv.net> (navya@coreel.com)
>>>>> "Navya" == Navya S Kamath <navya@coreel.com> 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
next parent reply other threads:[~2007-12-11 22:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20071211062402.A14A5260003@tymora.bartv.net>
2007-12-11 22:19 ` Bart Veer [this message]
[not found] <200712110712.1j23Ym59t3Nl3qW0@watson.mail.atl.earthlink.net>
2007-12-11 14:01 ` Frank Pagliughi
[not found] <20071211055518.7F44B19500D2@mail.chez-thomas.org>
2007-12-11 8:08 ` Gary Thomas
2007-12-11 12:12 ` Navya S Kamath
2007-12-11 5:55 Navya S Kamath
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=pn8x4027tc.fsf@delenn.bartv.net \
--to=bartv@ecoscentric.com \
--cc=ecos-discuss@ecos.sourceware.org \
--cc=navya@coreel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).