Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: conflicting types for 'sigaltstack' when compiling on MacOSX 10.9 #79

Open
albertz opened this issue Nov 22, 2013 · 6 comments
Open

Comments

@albertz
Copy link

albertz commented Nov 22, 2013

cc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X_UNIX -no-cpp-precomp  -O2 -fno-strength-reduce -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       -o objects/os_unix.o os_unix.c
clang: warning: argument unused during compilation: '-fno-strength-reduce'
os_unix.c:830:46: warning: declaration of 'struct sigaltstack' will not be
      visible outside of this function [-Wvisibility]
        extern int sigaltstack __ARGS((const struct sigaltstack *ss, str...
                                                    ^
./os_unix.h:88:21: note: expanded from macro '__ARGS'
#  define __ARGS(x) x
                    ^
os_unix.c:830:13: error: conflicting types for 'sigaltstack'
        extern int sigaltstack __ARGS((const struct sigaltstack *ss, str...
                   ^
/usr/include/signal.h:85:5: note: previous declaration is here
int     sigaltstack(const stack_t * __restrict, stack_t * __restrict)  _...
        ^
1 warning and 1 error generated.
make[1]: *** [objects/os_unix.o] Error 1
make: *** [first] Error 2

My configure:

./configure --with-features=huge --enable-cscope --enable-pythoninterp --enable-rubyinterp --enable-perlinterp 
@wpp
Copy link

wpp commented Apr 28, 2014

thanks for your fix @albertz

@ernsheong
Copy link

Encountered same issue here.

gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X_UNIX -no-cpp-precomp  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       -o objects/os_unix.o os_unix.c
os_unix.c:830:46: warning: declaration of 'struct sigaltstack' will not be visible outside of this function
      [-Wvisibility]
        extern int sigaltstack __ARGS((const struct sigaltstack *ss, struct sigaltstack *oss));
                                                    ^
./os_unix.h:88:21: note: expanded from macro '__ARGS'
#  define __ARGS(x) x
                    ^
os_unix.c:830:13: error: conflicting types for 'sigaltstack'
        extern int sigaltstack __ARGS((const struct sigaltstack *ss, struct sigaltstack *oss));
                   ^
/usr/include/signal.h:85:5: note: previous declaration is here
int     sigaltstack(const stack_t * __restrict, stack_t * __restrict)  __DARWIN_ALIAS(sigaltstack);
        ^
1 warning and 1 error generated.
make: *** [objects/os_unix.o] Error 1

@imtiazwazir
Copy link

I am also getting above error

@4fthawaiian
Copy link

Yeah. If it's "fixed upstream", where's the fix? :(

@alloy
Copy link
Owner

alloy commented Dec 8, 2014

I have little time atm. I would love to see a PR that rebases on top of the current upstream version.

For the long run, I’d like to have a Cocoa plugin version of this that just loads into builds of the upstream version, possibly monkey-patching some things in MacVim at runtime as a plugin architecture isn’t happening soon.

@kyleget
Copy link

kyleget commented Jan 28, 2015

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants