Mail Archives: pgcc/1998/01/10/04:54:22
in fact, i've had similar problems with PGCC 1.0 not handling defines
correctly. in this snippet of code from GNU libc 2.0.5c's stdio.h, PGCC
assumes __USE_BSD is always defined:
#ifdef __USE_BSD
extern int sys_nerr;
extern const char *const sys_errlist[];
#endif
i've ended up commenting out all of the __USE_BSD's in my headers, as i'm
running linux 2.0.33 and had trouble compiling certain things. i meant to
post this sooner, but forgot. i hope this helps
> Tried to compile linux 2.0.33 (with sound drivers) with PGCC 1.01 today,
> got the following:
>
> gcc -D__KERNEL__ -I/usr/src/linux-2.0.33/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o sound_switch.o sound_switch.c
> sound_switch.c: In function `init_status':
> sound_switch.c:97: parse error before `SOUND_CONFIG_DATE'
>
> put_status ("Sound Driver:" SOUND_VERSION_STRING
> " (" SOUND_CONFIG_DATE " " SOUND_CONFIG_BY "@" /* <-- here */
> SOUND_CONFIG_HOST "." SOUND_CONFIG_DOMAIN ")"
> "\n");
>
> The SOUND_CONFIG_ defines appear to be missing from local.h, and PGCC
> catches that they're not set.
>
> I'm not on the mailing list, BTW.
>
> --
> Jake Buchholz http://www.execpc.com/~jake
> ExecPC Senior Systems Administrator jake AT execpc DOT com
> Domain & Virtual Services Manager
>
---
Nuke Skyjumper - "Master of the farce"
- Raw text -