This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.1.2 HP-UX 10.x compilation question
- To: vamsi at synopsys dot COM
- Subject: Re: egcs-1.1.2 HP-UX 10.x compilation question
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Tue, 14 Mar 2000 01:46:27 +0100
- CC: egcs-bugs at egcs dot cygnus dot com, vamsi at synopsys dot COM
- References: <200003130854.AAA01538@bronzino.synopsys.com>
> I have a question regarding g++-2.9.5 (egcs-1.1.2) compilation
> on HP-UX 10.x platform.
Thanks for your bug report. I'm somewhat confused about the version
you are running; there never was a release 2.9.5. The current release
is 2.95.2, or two-ninetyfive-two. Apparently, you run egcs 1.1.2,
which is also known as 2.91.66.
> /usr/include/sys/time.h:337: `extern' can only be specified for objects and functions
>
> Questions
> ---------
>
> - Does this indicate that the /usr/include directory
> has some problems ?
I don't know, what is the contents of sys/time.h around line 337?
> - Does this indicate that the gcc installation has
> some problem ?
Normally, if there are really problems with the system headers, gcc
runs the 'fixincludes' script to correct all known problems. I think
egcs 1.1.2 had been tested on HPUX 10, so it seems there is an
installation problem.
> - Is there any easy workaround ? For instance, to get rid
> of the "time.h" include problem, all I had to do was make
> the following link
> > ln -s <gcc_include_dir>/time.h <gcc_include_dir/sys/time.h
> However, this approach is not good, plus it does not work
> for other files like algo.h.
algo.h is part of the gcc distribution, so it should not give any
errors at all. What errors do you get for it?
Martin