Many moons later, and with the latest and greatest Mac toolchain, I'm still ending up with several things that fail to build with the "undefined reference to fstat64" errors. Here's what it looks like when I try to build glib-2.34:

Code:
  CC       giounix.lo
  CC       gspawn.lo
  CCLD     libglib-2.0.la
  CC       gtester.o
  CCLD     gtester
./.libs/libglib-2.0.so: undefined reference to `fstat64'
./.libs/libglib-2.0.so: undefined reference to `stat64'
./.libs/libglib-2.0.so: undefined reference to `lstat64'
collect2: ld returned 1 exit status


Here's the arm-empeg-linux-nm output for libc.so:

Code:
arm-empeg-linux-nm /opt/arm/arm-empeg-linux/lib/libc.so.6|grep stat64         
0008a7f8 T __fxstat64
000e50bc b __have_no_stat64
0008a9dc T __lxstat64
0008a614 T __xstat64


And here's the same for libc_nonshared.a:

Code:
arm-empeg-linux-nm /opt/arm/arm-empeg-linux/lib/libc_nonshared.a | grep stat64
         U __fxstat64
         U __xstat64
xstat64.os:
00000004 C __have_no_stat64
00000000 T __xstat64
fxstat64.os:
00000000 T __fxstat64
         U __have_no_stat64
lxstat64.os:
         U __have_no_stat64
00000000 T __lxstat64
         U __lxstat64
         U __xstat64


Looks like the relevant symbols are indeed missing from libc. Any ideas what to try next?
_________________________
- Tony C
my empeg stuff