Do you have a question? Post it now! No Registration Necessary
December 29, 2004, 10:05 pm

When cross-compiling a Montavista Linux kernel for PPC, I modified the
BSP and here comes the headache. Something wrong with my file system --
some shellutils are OK, like pwd; but some always cause segmentation
fault, like uname.
I tracked uname.c. I am sure the problem comes from the function call
setlocale(LC_ALL, ""). When I comment it out, uname will work fine. But
I find the same call in pwd.c. My question is, what might be wrong with
my glibc, or other problem?
Any feedback is deeply appreciated!
BSP and here comes the headache. Something wrong with my file system --
some shellutils are OK, like pwd; but some always cause segmentation
fault, like uname.
I tracked uname.c. I am sure the problem comes from the function call
setlocale(LC_ALL, ""). When I comment it out, uname will work fine. But
I find the same call in pwd.c. My question is, what might be wrong with
my glibc, or other problem?
Any feedback is deeply appreciated!
Site Timeline
- » Linux for embedded mpc5xx
- — Next thread in » Embedded Linux
-
- » Boot Method??
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Orcad Pspice purchase
- — The site's Newest Thread. Posted in » Electronics Design
-
- » Dual Line driver
- — The site's Last Updated Thread. Posted in » Electronics Design
-