This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

redboot linker error


I keep getting this linker error (shown below) when compiling redboot with 
the elf loader libraries.  The basic problem seems to be that the linker
can't find stderr...so I've tried the following:

1) using #define to define stderr and stdout
2) using #define to define stderr as 2
3) including the libc_stdio package (which introduced more linker errors)

It's not clear what source file this error is originating from, so it's
hard for me to verify that the file has the proper includes and such.  But
I assume that if it didn't then I'd be getting a compiler error and not a
linker error.

I've been tempting to just start commenting out the...

   fprintf(stderr, ...)

...lines in the code, but surely there is a better way ;-)

Does anyone have some thoughts as to why this isn't linking properly?  Any
thoughts are appreciated...

i386-elf-gcc -g -nostdlib -Wl,--gc-sections -Wl,-static
-L/home/bdpayne/School/Research/SEBOS/ecos.cvs/bdpbuild/install/lib
-Ttarget.ld -o
/home/bdpayne/School/Research/SEBOS/ecos.cvs/bdpbuild/install/bin/redboot.elf
/home/bdpayne/School/Research/SEBOS/ecos.cvs/bdpbuild/install/lib/version.o
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcc.a(_eh.o): In function
`__eh_rtime_match':
/tmp/31295-i386/BUILD/gcc-2.96-20000731/obj-i386-redhat-linux/gcc/../../gcc/libgcc2.c(.text+0x79b): undefined
reference to `stderr'
collect2: ld returned 1 exit status
make[1]: ***
[/home/bdpayne/School/Research/SEBOS/ecos.cvs/bdpbuild/install/bin/redboot.elf]
Error 1
make[1]: Leaving directory
`/home/bdpayne/School/Research/SEBOS/ecos.cvs/bdpbuild/redboot/current'
make: *** [build] Error 2

Thanks,
bryan





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]