Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney)
Subject: odd compilation problem, possible compiler bug?
Date: 1999/02/17	[thread overview]
Message-ID: <7afjk7$noe$1@node2.nodak.edu> (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



             reply	other threads:[~1999-02-17  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-17  5:00 Tim Mooney [this message]
1999-02-18  5:00 ` odd compilation problem, possible compiler bug? Stefan Schwarzer
1999-02-18  5:00   ` Tim Mooney
read-only archive

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