This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs-1.1.2 HP-UX 10.x compilation question


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]