Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Wierd Compilation error in RH6.0
@ 1999-09-05  4:07 vilayannur r sitaraman
  1999-09-05  6:10 ` Richard Henderson
  1999-09-05 15:03 ` Michal Jaegermann
  0 siblings, 2 replies; 5+ messages in thread
From: vilayannur r sitaraman @ 1999-09-05  4:07 UTC (permalink / raw)
  To: axp-list

Hi,
	The line in the code that the compiler dosent like is 

	static FILE *log_to = stderr;

The error message is,
	diag.c:34: initializer element not constant. This does not happen with RH5.0. Can anything be done about this. I would like to have 6.0 on my system and not have to go back to 5.0 for this reason. Should i be using a different set of libraries? How do i do that?
Thanks a lot.
Sitaraman


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Wierd Compilation error in RH6.0
  1999-09-05  4:07 Wierd Compilation error in RH6.0 vilayannur r sitaraman
@ 1999-09-05  6:10 ` Richard Henderson
  1999-09-05  7:30   ` vilayannur r sitaraman
  1999-09-05 15:03 ` Michal Jaegermann
  1 sibling, 1 reply; 5+ messages in thread
From: Richard Henderson @ 1999-09-05  6:10 UTC (permalink / raw)
  To: axp-list

On Sun, Sep 05, 1999 at 12:07:53AM -0400, vilayannur r sitaraman wrote:
> 	static FILE *log_to = stderr;

This is illegal.  Instead initialize log_to at the beginning of main.


r~


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Wierd Compilation error in RH6.0
  1999-09-05  6:10 ` Richard Henderson
@ 1999-09-05  7:30   ` vilayannur r sitaraman
  0 siblings, 0 replies; 5+ messages in thread
From: vilayannur r sitaraman @ 1999-09-05  7:30 UTC (permalink / raw)
  To: axp-list

Thank you. The same statement dosent give an error in RH5.0, they have different compilers it looks like.
Sitaraman

> 
> On Sun, Sep 05, 1999 at 12:07:53AM -0400, vilayannur r sitaraman wrote:
> > 	static FILE *log_to = stderr;
> 
> This is illegal.  Instead initialize log_to at the beginning of main.
> 
> 
> r~
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Wierd Compilation error in RH6.0
  1999-09-05  4:07 Wierd Compilation error in RH6.0 vilayannur r sitaraman
  1999-09-05  6:10 ` Richard Henderson
@ 1999-09-05 15:03 ` Michal Jaegermann
  1999-09-05 20:46   ` vilayannur r sitaraman
  1 sibling, 1 reply; 5+ messages in thread
From: Michal Jaegermann @ 1999-09-05 15:03 UTC (permalink / raw)
  To: axp-list

> 	The line in the code that the compiler dosent like is 
> 
> 	static FILE *log_to = stderr;
> 
> The error message is,
> 	diag.c:34: initializer element not constant. This does not happen with RH5.0. Can anything be done about this.

(Could you, please, wrap your lines?  This is an elementary courtesy
in any decent company.)

Sure it can be done.
       
        static FILE *log_to;
        .....
        log_to = stderr;

You have either new headers where 'stderr' is defined in a different
way that it used to be (it is not a constant anymore) or a compiler
which is stricter in following standard rules.

  Michal


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Wierd Compilation error in RH6.0
  1999-09-05 15:03 ` Michal Jaegermann
@ 1999-09-05 20:46   ` vilayannur r sitaraman
  0 siblings, 0 replies; 5+ messages in thread
From: vilayannur r sitaraman @ 1999-09-05 20:46 UTC (permalink / raw)
  To: axp-list

Hi Michal,
Thank you for the response.  Didnt mean to skirt on the courtesy aspect, just that this is the firstime that somebody had reported that the lines dont wrap. On top of that the copy that i get of the
mails i send comes, deceptively, all nicely wrapped up. Thanks again, and good weekend!
sitaraman
> 
> > 	The line in the code that the compiler dosent like is 
> > 
> > 	static FILE *log_to = stderr;
> > 
> > The error message is,
> > 	diag.c:34: initializer element not constant. This does not happen with RH5.0. Can anything be done about this.
> 
> (Could you, please, wrap your lines?  This is an elementary courtesy
> in any decent company.)
> 
> Sure it can be done.
>        
>         static FILE *log_to;
>         .....
>         log_to = stderr;
> 
> You have either new headers where 'stderr' is defined in a different
> way that it used to be (it is not a constant anymore) or a compiler
> which is stricter in following standard rules.
> 
>   Michal
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-09-05 20:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-05  4:07 Wierd Compilation error in RH6.0 vilayannur r sitaraman
1999-09-05  6:10 ` Richard Henderson
1999-09-05  7:30   ` vilayannur r sitaraman
1999-09-05 15:03 ` Michal Jaegermann
1999-09-05 20:46   ` vilayannur r sitaraman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox