>And yes adding -lc to the linker line would resolve it, but it

Actually, adding -lc results in the same error.  I have to resort to:

cc /usr/lib/libc.a hello.c

in order to get a successfull build.

Steve


On 6/16/07, Dave Hylands <dhylands@gmail.com> wrote:
Hi Steve,

On 6/16/07, Steve Sakoman <sakoman@gmail.com> wrote:
> And nm returns:
>
> [root@192 develop]# nm /usr/lib/libc.a | grep libc_stack_end
>          U __libc_stack_end
> 00000000 B __libc_stack_end

So the U line (undefined reference) seems to be the problem. If I go
into my gumstix-buildroot/staging-dir/lib and run

nm libc.a | grep libc_stack_end

I get

1143 >nm libc.a | grep stack_end
00000000 B __libc_stack_end

I guess the next thing to do is figure out which object is causing the problem.

And yes adding -lc to the linker line would resolve it, but it
shouldn't be required. You could also copy in the libc.a and
libuClibc-*.so from a buildroot done on the host (provided they were
from the same buildroot).

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users