Bluelich / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

compilation problems on yosemite #366

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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/MacO
SX.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 <me@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

Original issue reported on code.google.com by ctrud...@arsensa.com on 18 May 2015 at 8:14

GoogleCodeExporter commented 9 years ago
> What version of the product are you using? On what operating system?
> Vim 7.4
> OS X 10.10.3

If 7.4 meant 7.4.000, it's too old.

Use 7.4.062 or later, at which versions the problem you reported above was 
fixed for OS X 10.9.x.  The latest version is 7.4.729.

I tried building 7.4.729 on OS X 10.10.3 with the same configure options you 
used, and found it built successfully.

Original comment by ht.mtche...@gmail.com on 19 May 2015 at 1:14

GoogleCodeExporter commented 9 years ago
I just grabbed whatever was in the downloads directory as I don't have Mecurial 
installed on this machine.  By the looks of it, it is just 7.4.  Feel free to 
close the ticket.  When I get around to installing Mecurial I'll re-open if I 
continue having problems.

Thanks for the quick response.

Original comment by ctrud...@arsensa.com on 19 May 2015 at 12:45

GoogleCodeExporter commented 9 years ago
Closing

Original comment by chrisbr...@googlemail.com on 22 May 2015 at 7:09