This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: ECOS: undefined reference to `__errno_location'
- From: Jesper Skov <jskov at redhat dot com>
- To: michael shiloh <michael at magrittesystems dot com>
- Cc: eCos Discuss <ecos-discuss at sources dot redhat dot com>
- Date: 15 Feb 2002 08:39:40 +0100
- Subject: Re: [ECOS] ECOS: undefined reference to `__errno_location'
- References: <Pine.LNX.4.33.0202141923200.22468-100000@magritte.magrittesystems.com>
On Fri, 2002-02-15 at 04:28, michael shiloh wrote:
> hi gang,
>
> sorry to bother you again,
>
> i'm trying to port an application that was written for
> linux over to ecos. i've been slowly figuring out what's
> missing and making changes either to my application or
> to my ecos configuration.
>
> this one has me stumped. it's comes from a line of source
> that says:
>
> return -errno;
>
> and the error is while linking:
>
> undefined reference to `__errno_location'
>
> any ideas?
Look at the pre-processor output. You'll probably find that some header
defines errno to be __errno_localtion. Whatever header file is picked up
should be suppressed in favor of the eCos errno.h header file.
In eCos, you'll need to include the CYGPKG_ERROR package.
Jesper
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss