Thanks again
Ohh absolutely not !!!
I kind-of figured this one out :)
The following lines in the makefile used { | $(QUOTESED) }
and that messed everything up
I removed the reference to QUOTESED to fix the problem !!!! >>>>
QUOTESED = sed -e 's/[\\"]/\\&/g' -e 's/\\"/"/' -e 's/\\";$$/";/'
auto/pathdef.c: Makefile auto/config.mk
-@echo creating $@
-@echo '/* pathdef.c */' > $@
-@echo '/* This file is automatically created by Makefile' >> $@
-@echo ' * DO NOT EDIT! Change Makefile only. */' >> $@
-@echo '#include "vim.h"' >> $@
-@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> $@
-@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";'
>> $@
-@echo 'char_u *all_cflags = (char_u *)"$(CC) -c -I$(srcdir)
$(ALL_CFLAGS)";' >> $@
-@echo 'char_u *all_lflags = (char_u *)"$(CC) $(ALL_LIB_DIRS)
$(LDFLAGS) -o $(VIMTARGET) $(ALL_LIBS) ";' >> $@
-@echo 'char_u *compiled_user = (char_u *)"' | tr -d $(NL) >> $@
-@if test -n "$(COMPILEDBY)"; then \
echo "$(COMPILEDBY)" | tr -d $(NL) >> $@; \
else ((logname) 2>/dev/null || whoami) | tr -d $(NL) >> $@; fi
-@echo '";' >> $@
-@echo 'char_u *compiled_sys = (char_u *)"' | tr -d $(NL) >> $@
-@if test -z "$(COMPILEDBY)"; then hostname | tr -d $(NL) >> $@; fi
-@echo '";' >> $@
-@sh $(srcdir)/pathdef.sh
-----Original Message-----
From: Tony Mechelynck [mailto:[email protected]]
Sent: Thursday, December 15, 2011 6:38 PM
To: [email protected]
Cc: Bovy, Stephen
Subject: Re: pathdef.c compile errors ??
On 16/12/11 01:42, Bovy, Stephen wrote:
> cc -c -I. -Iproto -DHAVE_CONFIG_H -O -D_ALL_SOURCE -Wc,float\(IEEE\) -o
> objects/pathdef.o auto/pathdef.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 CCN3275 ./auto/pathdef.c:5 Unexpected text '/' encountered.
> ERROR CCN3045 ./auto/pathdef.c:5 Undeclared identifier usr.
> ERROR CCN3045 ./auto/pathdef.c:5 Undeclared identifier local.
> ERROR CCN3045 ./auto/pathdef.c:5 Undeclared identifier share.
> ERROR CCN3045 ./auto/pathdef.c:5 Undeclared identifier vim.
> ERROR CCN3046 ./auto/pathdef.c:5 Syntax error.
> ERROR CCN3221 ./auto/pathdef.c:5 Initializer must be a valid constant
> expression.
> ERROR CCN3045 ./auto/pathdef.c:7 Undeclared identifier cc.
> ERROR CCN3045 ./auto/pathdef.c:7 Undeclared identifier c.
> ERROR CCN3275 ./auto/pathdef.c:7 Unexpected text '-' encountered.
> ERROR CCN3045 ./auto/pathdef.c:7 Undeclared identifier I.
> ERROR CCN3045 ./auto/pathdef.c:7 Undeclared identifier DHAVE_CONFIG_H.
> ERROR CCN3045 ./auto/pathdef.c:7 Undeclared identifier O.
> ERROR CCN3045 ./auto/pathdef.c:7 Undeclared identifier D_ALL_SOURCE.
> ERROR CCN3045 ./auto/pathdef.c:7 Undeclared identifier Wc.
> ERROR CCN3221 ./auto/pathdef.c:7 Initializer must be a valid constant
> expression.
> ERROR CCN3046 ./auto/pathdef.c:7 Syntax error.
> ERROR CCN3045 ./auto/pathdef.c:8 Undeclared identifier Wl.
> ERROR CCN3221 ./auto/pathdef.c:8 Initializer must be a valid constant
> expression.
> ERROR CCN3045 ./auto/pathdef.c:8 Undeclared identifier NO.
> ERROR CCN3045 ./auto/pathdef.c:8 Undeclared identifier o.
> ERROR CCN3221 ./auto/pathdef.c:8 Initializer must be a valid constant
> expression.
> ERROR CCN3277 ./auto/pathdef.c:8 Syntax error: possible missing ';' or
> ','?
> CCN0793(I) Compilation failed for file ./auto/pathdef.c. Object file not
> created.
> FSUM3065 The COMPILE step ended with return code 12.
> FSUM3017 Could not compile auto/pathdef.c. Correct the errors and try again.
> FSUM8226 make: Error code 3
> $
>
>
> /* pathdef.c */
> /* This file is automatically created by Makefile
> * DO NOT EDIT! Change Makefile only. */ #include "vim.h"
> char_u *default_vim_dir = (char_u *)&/usr/local/share/vim&; char_u
> *default_vimruntime_dir = (char_u *)&&; char_u *all_cflags = (char_u
> *)&cc -c -I. -Iproto -DHAVE_CONFIG_H -O -D_ALL_SOURCE -Wc,float&(IEEE&)&;
> char_u *all_lflags = (char_u *)&cc -Wl,EDIT=NO -o vim -lm
> -lcurses&;
> char_u *compiled_user = (char_u *)"SB18607"; char_u *compiled_sys =
> (char_u *)"MVS9.TD.TERADATA.COM";
>
See my other answer.
You seem to be trying to compile a Unix program with a Windows compiler.
This won't work.
If using MS Visual C++, use src/Make_mvc.mak (not Makefile) as the makefile, or
(better IMO) avail yourself of the pre-compiled "Vim without Cream" at
http://sourceforge.net/projects/cream/files/Vim/
If you want to compile Vim for Cygwin using the top-level Makefile, you should
use Cygwin gcc, not MSVC, but the result will be a Vim "for Cygwin"; there
should already be a usable (but not the very latest) Vim in the Cygwin
distribution though.
Best regards,
Tony.
--
"It's kind of fun to do the impossible."
-- Walt Disney
--
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