www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1998/01/10/04:54:22

X-POP3-Rcpt: mlehmann AT universe DOT sgh-net DOT de
From: nuke AT bayside DOT net
X-Authentication-Warning: nuklear.steelcity.net: nuke owned process doing -bs
10 Jan 1998 04:54:22 +0000 (GMT) :
X-Sender: nuke AT nuklear DOT steelcity DOT net
To: Jake Buchholz <jake AT execpc DOT com>
cc: beastium-list AT Desk DOT nl
Subject: Re: linux 2.0.33 & pgcc 1.01
In-Reply-To: <19980109120601.60942@execpc.com>
Message-ID: <Pine.LNX.3.96.980110045125.465C-100000@nuklear.steelcity.net>
MIME-Version: 1.0
Sender: Marc Lehmann <pcg AT goof DOT com>
Status: RO
X-Status: A
Lines: 40

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019