__getpid.c & pid_t
Salman
unix at gofree.indigo.ie
Wed Feb 12 14:26:43 UTC 2003
I'm stuck at this error message here, no matter what I do :(
gcc --pipe -isystem ../../../.././pc386/lib/include -DHAVE_CONFIG_H
-Isrc -O4 -g -Wall -o o-optimize/__getpid.o -c
../../../../../../rtems/c/src/../../cpukit/libcsupport/src/__getpid.c
../../../../../../rtems/cpukit/libcsupport/src/__getpid.c:14: parse error before "__getpid"
../../../../../../rtems/cpukit/libcsupport/src/__getpid.c:15: warning: return type defaults to `int'
gmake[4]: *** [o-optimize/__getpid.o] Error 1
gmake[4]: Leaving directory `/home/salman/work/build/i386-rtems/c/pc386/exec/libcsupport'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/home/salman/work/build/i386-rtems/c/pc386/exec'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/salman/work/build/i386-rtems/c/pc386'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/salman/work/build/i386-rtems/c'
make: *** [all-recursive] Error 1
i think it's giving out about "pid_t" which is a type defined within gcc.
I'm using latest rtems build tools and gnu build utils. and /opt/rtems/bin is prepended to my environmental path.
anyone with similar experience?
NB i hope this is not the cause, but my native gcc is version 3.2.2 (i386-rtems-gcc is version 3.2.1)
Salman
More information about the users
mailing list