Hi Tony, Thanks very much for your response
I am compiling on IBM z/OS which has a very very strict implementation that does not deviate from standards Apparently the ibm compiler does not allow dups In the case switch logic ( and to me that seems correct ) To me a dup in a case switch statement implies a bug !!!! We have often found that the ibm compiler finds bugs that other compilers naively ignore !!!!! >>>>>>>>>>>>>>>>>>>>> But that aside I do not know why the " feat_windows" was defined (if that is for ms-window ) I will have to search thru the Makefile or config to figure out why or how it was set ( I certainly did not set it or select it ) I did ./configure , make (assuming that the magic configure would do the right thing) but apparently not !!!! -----Original Message----- From: Tony Mechelynck [mailto:[email protected]] Sent: Thursday, December 15, 2011 6:25 PM To: [email protected] Cc: Bovy, Stephen Subject: Re: ERROR CCN3052 ./normal.c:8344 Duplicate case label for value 163. Labels must be unique. On 16/12/11 00:45, Bovy, Stephen wrote: > cc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MOTIF -O -D_ALL_SOURCE > -Wc,float\(IEEE\) -W c,dll -o objects/normal.o normal.c > WARNING CCN3296 ./os_unix.h:60 #include file<libc.h> not found. > WARNING CCN3296 ./os_unix.h:64 #include file<sys/param.h> not found. > ERROR CCN3052 ./normal.c:8344 Duplicate case label for value 163. Labels > must be unique. > CCN0793(I) Compilation failed for file ./normal.c. Object file not created. > FSUM3065 The COMPILE step ended with return code 12. > FSUM3017 Could not compile normal.c. Correct the errors and try again. > FSUM8226 make: Error code 3 > $ > > Y:\public\vim\src\normal.c (4 hits) > > Line 4866: case 't': scroll_cursor_top(0, TRUE); > Line 8344: case 't': > Line 8347: case 'T': > Line 9146: case 't': /* "at" = a tag block (xml > and html) */ > >>> Help OR Suggestions<<<< > 1) Since when do case statements need to be unique inside _different_ switch statements? Line 4866 is in a switch statement at line 4846 whose range includes lines 4847 to 5195 Line 8344 is in a switch statement at line 7809 whose range includes lines 7810 to 8362 2) Since when do you compile os_unix.h or a Motif GUI with FEAT_WINDOWS defined? Line 8344 is inside the range of an #ifdef FEAT_WINDOWS (lines 8343-8350). If you are on Windows, you need to find the src/Make_*.mak corresponding to your compiler, possibly set appropriate environment variables, and compile with that. Or else (recommended), download Steve Hall's outstanding precompiled Windows distribution (dubbed "Vim without Cream" by some list regulars) from http://sourceforge.net/projects/cream/files/Vim/ If you are on Unix (or Linux etc.), you should set your configure options in environment variables as described at http://users.skynet.be/antoine.mechelynck/vim/compunix.htm then run "make reconfig" in the top-level directory (parent of src/ runtime/ etc.) or in your shadow directory if you have made one. This will re-run configure under control of make then compile an executable with the same options. If that succeeds, you can then "make install" to get your executable where you can use it. If you are on Cygwin, you should either compile as on Unix/Linux (which will use Cygwin gcc and require the cygwin1.dll at runtime) or compile as on Windows with the Make_cyg.mak or the Make_ming.mak (which will use the Cygwin or MinGW gcc respectively, and produce a "native-Windows" executable which you should run from the cmd.exe prompt or a desktop shortcut but not from Cygwin bash). Best regards, Tony. -- Here in my heart, I am Helen; I'm Aspasia and Hero, at least. I'm Judith, and Jael, and Madame de Staël; I'm Salome, moon of the East. Here in my soul I am Sappho; Lady Hamilton am I, as well. In me Récamier vies with Kitty O'Shea, With Dido, and Eve, and poor nell. I'm all of the glamorous ladies At whose beckoning history shook. But you are a man, and see only my pan, So I stay at home with a book. -- Dorothy Parker -- 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
