John Levon wrote:
[23 days later (shame on me) ...]
> On Sun, Feb 01, 2009 at 06:33:57PM +0100, Roland Mainz wrote:
> > > There's no ETA. If it's important for you, then you could fairly easily
> > > fix it yourself...
> >
> > The "easy" assumes I would be able to make any heads or tails out of the
> > CTF stuff. Is there _any_ documentation of the CTF file format and/or a
>
> No, but you shouldn't need to know that anyway. It's the incoming DWARF
> that matters, and that should be specified. STABS is less well-defined
> sadly:
I don't need STABS since the AST stuff in OS/Net explicitly uses DWARF
for Sun Studio, too (originally to work around an already fixed issue
but we kept it in the Makefile to avoid that we break too many
developers with older tools and have something which tests whether Sun
Studio+DWARF+CTF works).
> you might need to ping Chris Quenelle for the up to date Studio
> spec for this. Since all you need to do is update the CTF parsing code
> to correctly ignore such entries, it shouldn't be particularly tricky.
... it seems that the gcc build handles some kind of VLAs ("variable
length arrays") - for example |char *xargv[argc+2];|
(http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/ksh/builtins/alias.c#81)
works but not |struct pollfd pollfd[bpoll_max];|
(http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libshell/common/bltins/shiocmd_solaris.c#1115).
After some experimentation I found that the following patch gets the gcc
build working again:
-- snip --
diff src/lib/libshell/common/bltins/shiocmd_solaris.c
--- src/lib/libshell/common/bltins/shiocmd_solaris.c
+++ src/lib/libshell/common/bltins/shiocmd_solaris.c
@@ -1112,7 +1112,7 @@
varname = argv[0];
- struct pollfd pollfd[bpoll_max];
+ struct pollfd pollfd[bpoll_max+1];
for(i=0 ; i < bpoll_max ; i++)
{
-- snip --
... but I have still no clue why this works (which AFAIK disqualifies
this as a workaround) ... ;-(
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)