readlink.c compiling failed because of size_t

ray xr at trasin.net
Wed Apr 25 16:31:31 UTC 2007


compiling failed in /cpukit/libcsupport/src/readlink.c
type mismatch for:

int readlink(
  const char *pathname,
  char       *buf,
  int         bufsize
)

This function declare in include/sys/unistd.h

ssize_t _EXFUN(readlink, (const char *__path, char *__buf, size_t __buflen));

it seems the size_t had changed in the new tool chain.  and I change readlink in /cpukit/libcsupport/src/readlink.c to
ssize_t readlink(
  const char *pathname,
  char       *buf,
  size_t     bufsize
)
Then everything is fine.

I am using:
gcc-4.2 with patch gcc-core-4.2-20070221-rtems4.8-20070228.diff
newlib-1.15.0 with patch newlib-1.15.0-rtems4.8-20070413.diff
Target is arm-rtems4.8

What might cause this?


--------------
Thanks & Best Regards!
ray
2007-04-26





More information about the users mailing list