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: sys/cdefs.h required by gcc 2.95.3 but not 2.95.2. Why? Bug?


I found a reference to this problem posted in 1999
using gcc 2.95.2. Since _G_config.h is automatically
generated when compiling gcc (?), it looks for
sys/cdefs.h. If it can find it, it sets a flag.

My guess it that sys/cdefs.h is part of the SPARC box
that has been used to build gcc 2.95.3 on
sunfreeware.com. But it was not part of the
build-machine when 2.95.2 has been build roughly one
year ago.

I manually changed now _G_config.h to reflect this by
just replacing '1' into '0' at the appropriate
location. 

If someone from the gcc-team could confirm that this
is acceptable to do without breaking anything else I
would appreciate this. I do not like to edit files
that are labelled with "Do not edit this file".

Thanks,

GT


--- Thomas Kaiser <home_cray@yahoo.com> wrote:
> Here is what I did on my Solaris 8/SPARC box on
> 03/19/01:
> 
> 1) I got gcc 2.95.3 from sunfreeware.com
> 2) I used pkgrm to uninstall gcc 2.95.2.
> 3) I installed gcc 2.95.3 using pkgadd -d
> 4) I got the sys/cdefs.h missing error when
> compiling
> any C++ file that uses iostream.
> 5) I uninstalled gcc 2.95.3 using pkgrm.
> 6) I installed gcc 2.95.2 using pkgadd -d
> 7) I can compile all my C++ programs that use
> iostream
> without any complains that there is a missing
> sys/cdefs.h.
> 8) I went once more through this install/uninstall
> process with the same results.
> 9) Steve who maintains sunfreeware.com suggested to
> ask people at gcc-bugs@gcc.gnu.org.
> 
> Is there someone that can make this work on his
> SPARC
> running Solaris 8?
> 
> Gregor
> 
> 
> 
> --- Bernd Schmidt <bernds@cambridge.redhat.com>
> wrote:
> > On Mon, 19 Mar 2001, TC wrote:
> > 
> > > On my Solaris 8 box, time.h, wait.h, resource.h,
> > and socket.h are all there
> > > in /usr/include/sys. cdefs.h is missing but
> > required by gcc 2.95.3 when
> > > compiling any C++ program that uses iostream.
> > >
> > > gcc 2.95.2 does not look for cdefs.h but gcc
> > 2.95.3 does (see
> > >
> >
>
/usr/local/sparc-sun-solaris-2.8/include/_G_config.h.)
> > On a different
> > > platform, you need to replace
> > sparc-sun-solaris-2.8 by your HW specific
> > > subdirectory.
> > 
> > I can see nothing in the 2.95.2-2.95.3 patch that
> > would cause this.  Are
> > you quite sure that you have installed the two
> > compilers in the same way,
> > and that you are using them in the same way?
> > 
> > 
> > Bernd
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail. 
> http://personal.mail.yahoo.com/


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/


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