From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21776 invoked by alias); 11 Dec 2007 22:19:43 -0000 Received: (qmail 21766 invoked by uid 22791); 11 Dec 2007 22:19:41 -0000 X-Spam-Check-By: sourceware.org Received: from snape.ecoscentric.com (HELO snape.ecoscentric.com) (212.13.207.199) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 11 Dec 2007 22:19:33 +0000 Received: from localhost (snape.ecoscentric.com [127.0.0.1]) by snape.ecoscentric.com (Postfix) with ESMTP id C92AEDC80E9; Tue, 11 Dec 2007 22:19:30 +0000 (GMT) Received: from snape.ecoscentric.com ([127.0.0.1]) by localhost (snape.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rdcNNHdc3cMo; Tue, 11 Dec 2007 22:19:29 +0000 (GMT) Received: from delenn.bartv.net (unknown [212.13.207.199]) by snape.ecoscentric.com (Postfix) with ESMTP id C7817DC80E8; Tue, 11 Dec 2007 22:19:28 +0000 (GMT) Date: Tue, 11 Dec 2007 22:19:00 -0000 Message-Id: From: Bart Veer To: "Navya S Kamath" CC: ecos-discuss@ecos.sourceware.org In-reply-to: <20071211062402.A14A5260003@tymora.bartv.net> (navya@coreel.com) References: <20071211062402.A14A5260003@tymora.bartv.net> Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Compile USB Host Application X-SW-Source: 2007-12/txt/msg00036.txt.bz2 >>>>> "Navya" == Navya S Kamath 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 header, instead there is a 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