Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 366 by ctrud...@arsensa.com: compilation problems on yosemite
https://code.google.com/p/vim/issues/detail?id=366
What steps will reproduce the problem?
1. ./configure --prefix=/usr/local --disable-darwin --enable-gui=no
2. make
What is the expected output? What do you see instead?
Compilation error:
os_unix.c:830:13: error: conflicting types for 'sigaltstack'
What version of the product are you using? On what operating system?
Vim 7.4
OS X 10.10.3
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
Please provide any additional information below.
There seems to be posts around the web about this issue on Maverick but not
on Yosemite. It doesn't appear to have been fixed. Patches exist.
Applying this one fixed the problem for me:
# HG changeset patch
# User Nicolas Goles <m...@nicolasgoles.com>
# Date 1376276970 14400
# Sun Aug 11 23:09:30 2013 -0400
# Node ID 75f44cf36d49b713f5fc5468db800d4e27d2a2c1
# Parent a643d80b65071c4713309430a0c29da35ff90d45
Fixes error while compiling under OS X 10.9 Mavericks
diff -r a643d80b6507 -r 75f44cf36d49 src/os_unix.c
--- a/src/os_unix.c Sat Aug 10 15:00:24 2013 +0200
+++ b/src/os_unix.c Sun Aug 11 23:09:30 2013 -0400
@@ -827,7 +827,7 @@
|| MAC_OS_X_VERSION_MAX_ALLOWED <= 1040)
/* missing prototype. Adding it to osdef?.h.in doesn't work, because
* "struct sigaltstack" needs to be declared. */
- extern int sigaltstack __ARGS((const struct sigaltstack *ss, struct
sigaltstack *oss));
+ extern int sigaltstack __ARGS((const stack_t *restrict ss, stack_t
*restrict oss));
# endif
# ifdef HAVE_SS_BASE
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
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.