From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a60984b8349a1a04,start X-Google-Attributes: gidfee84,public From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) Subject: odd compilation problem, possible compiler bug? Date: 1999/02/17 Message-ID: <7afjk7$noe$1@node2.nodak.edu>#1/1 X-Deja-AN: 445502782 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Complaints-To: abuse@nodak.edu X-Trace: node2.nodak.edu 919294407 24334 134.129.106.23 (17 Feb 1999 23:33:27 GMT) Organization: North Dakota Higher Education Computing Network (NDHECN) Mime-Version: 1.0 NNTP-Posting-Date: 17 Feb 1999 23:33:27 GMT Newsgroups: comp.unix.osf.osf1 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