2.2a3 compile fails with __retval error
Bruce Sass
bsass at freenet.edmonton.ab.ca
Thu Sep 13 16:07:16 EDT 2001
Here are the messages:
gcc -c -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H -o Python/strdup.o Python/strdup.c
Python/strdup.c:6: parse error before `__extension__'
Python/strdup.c:6: `__len' undeclared here (not in a function)
Python/strdup.c:6: initializer element is not constant
Python/strdup.c:6: parse error before `if'
Python/strdup.c:6: warning: type defaults to `int' in declaration of `__retval'
Python/strdup.c:6: conflicting types for `__retval'
Python/strdup.c:6: previous declaration of `__retval'
Python/strdup.c:6: warning: data definition has no type or storage class
Python/strdup.c:6: parse error before `}'
make: *** [Python/strdup.o] Error 1
Anyone know how to fix it?
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20010902 (Debian prerelease)
- Bruce
More information about the Python-list
mailing list