This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Obsolete/remove Solaris < 10 [was: Re: Fix gdb 8.1 Solaris compilation]
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:
> However, this section is only needed on Solaris < 10, which is why I
> didn't notice it until I tried an i386-pc-solaris2.9 build. It's
> probably time to remove support for those old Solaris versions in gdb,
> too: gcc lost them after 4.9.
I'm pretty certain we should: the Solaris 9/x86 build didn't complete,
even with the configure.nat section fixed:
In file included from build-gnulib/import/wchar.h:87:0,
from /vol/gcc-4.9/include/c++/4.9.0/cwchar:44,
from /vol/gcc-4.9/include/c++/4.9.0/bits/postypes.h:40,
from /vol/gcc-4.9/include/c++/4.9.0/bits/char_traits.h:40,
from /vol/gcc-4.9/include/c++/4.9.0/string:40,
from /vol/src/gnu/gdb/gdb/local/gdb/common/common-utils.h:23,
from /vol/src/gnu/gdb/gdb/local/gdb/common/common-defs.h:78,
from /vol/src/gnu/gdb/gdb/local/gdb/defs.h:28,
from /vol/src/gnu/gdb/gdb/local/gdb/gdb.c:19:
/vol/gcc-4.9/lib/gcc/i386-pc-solaris2.9/4.9.0/include-fixed/wchar.h:59:12: error: ‘std::wcstok’ has not been declared
using std::wcstok;
^
/vol/gcc-4.9/lib/gcc/i386-pc-solaris2.9/4.9.0/include-fixed/wchar.h:60:12: error: ‘std::wcsftime’ has not been declared
using std::wcsftime;
^
This bad interaction between gnulib and fixed Solaris 9 headers may be
fixable, but even trying to seems like a total waste of time.
How is obsoletion/removal handled in gdb? In gcc, in one release a
target is obsoleted and trying to build it yields an error which can be
overridden with --enable-obsolete. Unless someone steps up to continue
maintenance, the code is removed in the next release.
Does gdb go for immediate removal instead? I have no idea which release
last built/worked on Solaris 9. I have a build of 7.11 lying around,
but never tried anything later.
Thoughts?
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University