* odd compilation problem, possible compiler bug?
@ 1999-02-17 5:00 Tim Mooney
1999-02-18 5:00 ` Stefan Schwarzer
0 siblings, 1 reply; 3+ messages in thread
From: Tim Mooney @ 1999-02-17 5:00 UTC (permalink / raw)
System: DEC PWS 433au
OS: Digital Unix 4.0d + patch set #3
I'm working my way through building the various pre-requisites to
GNOME (http://www.gnome.org) on my desktop machine, and I've run into a problem
that's puzzling me. I'm hoping someone out there can either point out the
problem in the code or verify that it is indeed a compiler problem, as I
suspect. I'm using DEC's cc (not gcc), and the problem has occurred both with
the various patches from patch set #2 installed and now also with patch set #3
installed.
There are a few required files needed to reproduce the problem, so I won't
post them here. They are available for ftp at
ftp://dogbert.cc.ndsu.nodak.edu/pub/util-test.tar.gz
for anyone that wants to download and take a look. That tarball is the minimal
set I could get that would show the problem.
The problem occurs while trying to compile the file `util.c' from the libIDL
subdirectory of the ORBit-0.3.97.tar.gz tarball. The error I'm getting is:
cc: Error: util.c, line 415: In this statement, "tmpfilename" is not declared.
__IDL_tmp_filename = tmpfilename;
-----------------------------^
The thing is, as far as I can tell `tmpfilename' *is* defined in
the same scope; it's used in several places in the code above this point
without error. It's not a conditional compilation problem; I've run it through
the preprocessor and the section of code in question is visible, as are the
sections above that the compiler does *not* object to.
It could just be something stupid and obvious that I'm missing, but I'm
usually pretty good about spotting what's causing compilation problems.
This one's got me stumped though, so I'm thinking it may be a compiler problem.
I would appreciate comments from anyone that has the time to take a look at
this.
Thanks,
Tim
--
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J1, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: odd compilation problem, possible compiler bug?
1999-02-17 5:00 odd compilation problem, possible compiler bug? Tim Mooney
@ 1999-02-18 5:00 ` Stefan Schwarzer
1999-02-18 5:00 ` Tim Mooney
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Schwarzer @ 1999-02-18 5:00 UTC (permalink / raw)
Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu> wrote:
> cc: Error: util.c, line 415: In this statement, "tmpfilename" is not declared.
> __IDL_tmp_filename = tmpfilename;
> -----------------------------^
> The thing is, as far as I can tell `tmpfilename' *is* defined in
> the same scope; it's used in several places in the code above this point
> without error. It's not a conditional compilation problem;
I checked the 6.0 version of the c compiler (beta) and it gives the same
message. I looked into the code and I think the compiler is right.
tmpfilename is defined in the function IDL_parse_filename(...)
right above IDL_pare_filename_with_input(...) where the error occurs in which
as the compiler rightly claims, no 'tmpfilename' can be found.
I am afraid that it's a bug in the sources (but it seems that one can just
take the offending statements to fix it.)
Stefan.
> Tim
> --
> Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
> Information Technology Services (701) 231-1076 (Voice)
> Room 242-J1, IACC Building (701) 231-8541 (Fax)
> North Dakota State University, Fargo, ND 58105-5164
--
Stefan Schwarzer office: +49-(0)711-685-7606 fax: x-3658
Uni Stuttgart, ICA 1 e-mail: sts@ica1.uni-stuttgart.de
Pfaffenwaldring 27 pgp public key available on request/finger
70569 Stuttgart, Germany http://www.ica1.uni-stuttgart.de/~sts
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: odd compilation problem, possible compiler bug?
1999-02-18 5:00 ` Stefan Schwarzer
@ 1999-02-18 5:00 ` Tim Mooney
0 siblings, 0 replies; 3+ messages in thread
From: Tim Mooney @ 1999-02-18 5:00 UTC (permalink / raw)
In article <7agr1q$duv$1@infosun2.rus.uni-stuttgart.de>,
Stefan Schwarzer <sts@anaconda.ica1.uni-stuttgart.de> wrote:
> Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu> wrote:
>
> > cc: Error: util.c, line 415: In this statement, "tmpfilename" is not declared.
> > __IDL_tmp_filename = tmpfilename;
> > -----------------------------^
>
> > The thing is, as far as I can tell `tmpfilename' *is* defined in
> > the same scope; it's used in several places in the code above this point
> > without error. It's not a conditional compilation problem;
>
>
> I checked the 6.0 version of the c compiler (beta) and it gives the same
> message. I looked into the code and I think the compiler is right.
> tmpfilename is defined in the function IDL_parse_filename(...)
> right above IDL_pare_filename_with_input(...) where the error occurs in which
> as the compiler rightly claims, no 'tmpfilename' can be found.
> I am afraid that it's a bug in the sources (but it seems that one can just
> take the offending statements to fix it.)
You're right, and it's obvious now that you pointed it out. ;-)
I'm not sure what I was doing the night I was trying to get this to compile,
but at this point the error is clearly in the code.
Thanks
Tim
--
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J1, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-02-18 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-17 5:00 odd compilation problem, possible compiler bug? Tim Mooney
1999-02-18 5:00 ` Stefan Schwarzer
1999-02-18 5:00 ` Tim Mooney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox