Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
builtins.c does not compile under latest cygwin
- X-seq: zsh-workers 31630
- From: Edgar Sánchez Grajeda <edgarsanchezg@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: builtins.c does not compile under latest cygwin
- Date: Fri, 2 Aug 2013 14:14:26 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=VvhxVlFKR2nhUPUBhfur16M9o86Be3Urbf0uMQL9dM0=; b=FPlW3xt2QfGj7ryiOsTfhWzP+2WLYSQkuB9CTjQIfkM5iNqFvJirGag0cnTN0UB+e+ QxwZWUcAMf9gzmRRxhC7LREt2j+Smf5t9UDlUqMEN8/1bl1HR3yeMZE+zjm1n6WpB9I8 6HS+FgKcvBNuzWgKUORyM/wdvcU/YCn1udUAd7qOzEFL6JNLQhpjL4+RaFq9i1b6Aj5w kTGd5B6KyWgt8vZZSw+BVrhqk/j/Wn81CXmHQMT8TrL0/csdewWIcElGwK2giZOlWiqy +0CWyU5jvLp9q9jIbZtJtQTIMeOlx0ZE1FzCYPgomYXg5tcOWjbwQUkzlv9ZGNlo9mrJ mjdw==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
When installing Cygwin I tried installing zsh from the source, and the
builtin.c module
was not compiling.
Here
the output from make:
rm -f libzsh-5.0.2.dll
gcc -s -shared -Wl,--export-all-symbols -o libzsh-5.0.2.dll `cat
stamp-modobjs` -ldl -lncursesw -lrt -lm -lc
builtin.o:builtin.c:(.text+0xa98c): undefined reference to
`cygwin_conv_to_posix_path'
builtin.o:builtin.c:(.text+0xa98c): relocation truncated to fit:
R_X86_64_PC32 against undefined symbol `cygwin_conv_to_posix_path'
/usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../x86_64-pc-cygwin/bin/ld:
builtin.o: bad reloc address 0x8 in section `.data'
collect2: error: ld returned 1 exit status
Makefile:230: recipe for target `libzsh-5.0.2.dll' failed
make[1]: *** [libzsh-5.0.2.dll] Error 1
make[1]: Leaving directory `/zsh-5.0.2/Src'
I
looked up the missing function, and cygwin_conv_to_posix_path() function
was deprecated and replaced with cygwin_conv_path().
In builtins.c:cd_do_chdir()
I fixed it with:
#ifndef _SYS_CYGWIN_H
void cygwin_conv_path(cygwin_conv_path_t what, const void * from, void
* to, size_t size);
#endif
cygwin_conv_path (CCP_WIN_A_TO_POSIX | CCP_RELATIVE, dest, buf,
PATH_MAX);
dest = buf;
There's still some comptests failing when running make check, but at least
now it's compiling without errors.
--
~ Ed
gar
Messages sorted by:
Reverse Date,
Date,
Thread,
Author