John Marriott wrote:

> On 18-Apr.-2018 07:24, Bram Moolenaar wrote:
> > John Marriott wrote:
> >
> >> On 17-Apr.-2018 00:38, Mike Williams wrote:
> >>> Hi
> >>>
> >>> On 16/04/2018 14:16, Bram Moolenaar wrote:
> >>>> I wrote:
> >>>>
> >>>>> Patch 8.0.1723
> >>>>> Problem:    Using one item array size declaration is misleading.
> >>>>> Solution:   Instead of using "[1]" and actually using a larger
> >>>>> array, use
> >>>>>              "[]".  This is to verify that this C99 
> >>>>> feature works
> >>>>> for all
> >>>>>              compilers.
> >>>>> Files:      src/structs.h, src/getchar.c
> >>>> If you notice a prolem because of this patch, please speak up!
> >>>> Also if it's just a compiler warning.  We want to know if this C99
> >>>> feature works for everybody.
> >> After this patch (8.0.1723), HP-UX throws this error:
> >> <snip>
> >> Starting make in the src directory.
> >> If there are problems, cd to the src directory and run make there
> >>     cd src && make first
> >>     cc -c -I. -Iproto -DHAVE_CONFIG_H   -O2  -o objects/arabic.o 
> >> arabic.c
> >> cc: "structs.h", line 514: error 1578: Size of struct or union member is
> >> unknown.
> >> *** Error exit code 1
> >>
> >> Stop.
> >> *** Error exit code 1
> >>
> >> Stop.
> >> </snip>
> >>
> >> It looks like HP-UX compiler doesn't like flexible arrays.
> > Disappointing...
> >
> > This document suggests it was added at some point:
> > https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c02670372
> >
> > Apparently it was added with version B.11.11.16.
> > What version are you using?
> > Is there any way to upgrade?
> >
> According to "uname -a" I am on:
> HP-UX B.11.11 U 9000/800
> The c compiler says it is:
> HP C/HP-UX Version 11.11.02
> 
> Old stuff I know. The machine *might* be retired and replaced with a Red 
> Hat linux box in the next 18 months or so. Maybe. In the meantime, there 
> is no chance of an upgrade.
> 
> Also, after the related patch 8.0.1730, the HP-UX throws this (from 
> configure):
> <snip>
> Starting make in the src directory.
> If there are problems, cd to the src directory and run make there
>     cd src && make first
>     rm -f auto/config.cache
> ...
> checking for nawk... no
> checking for awk... awk
> checking for strip... strip
> checking for ANSI C header files... yes
> checking for sys/wait.h that is POSIX.1 compatible... yes
> checking if the compiler can handle Vim code... configure: error: 
> compiler does not work properly - see auto/config.log
> *** Error exit code 1
> 
> Stop.
> *** Error exit code 1
> 
> Stop.

Yeah, at least the configure check works.  But clearly this change will
mean you can no longer compile Vim.  So let's not allow for flexible
array members.  It's a nice feature, pity we can't use it.

I'll make a patch to revert this, please check that it works again.

-- 
hundred-and-one symptoms of being an internet addict:
220. Your wife asks for sex and you tell her where to find you on IRC.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui