Opened 11 years ago

Closed 11 years ago

#41774 closed defect (fixed)

vim @7.4.052_0+big: build fails with "conflicting types for 'sigaltstack' "

Reported by: bitaxis (Nathan Brazil) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: benjamin@…, mndavidoff (Monte Davidoff), skymoo (Adam Mercer), clayton@…, bolkin@…
Port: vim

Description

I am running latest Mac OS X Mountain Lion, latest Xcode (5.0.2). Upgrading vim gives me the following error:

:info:build os_unix.c:830:46: warning: declaration of 'struct sigaltstack' will not be visible outside of this function [-Wvisibility]
:info:build         extern int sigaltstack __ARGS((const struct sigaltstack *ss, struct sigaltstack *oss));
:info:build                                                     ^
:info:build ./os_unix.h:88:21: note: expanded from macro '__ARGS'
:info:build #  define __ARGS(x) x
:info:build                     ^
:info:build os_unix.c:830:13: error: conflicting types for 'sigaltstack'
:info:build         extern int sigaltstack __ARGS((const struct sigaltstack *ss, struct sigaltstack *oss));
:info:build                    ^
:info:build /usr/include/signal.h:89:5: note: previous declaration is here
:info:build int     sigaltstack(const stack_t * __restrict, stack_t * __restrict)  __DARWIN_ALIAS(sigaltstack);
:info:build         ^
:info:build 1 warning and 1 error generated.
:info:build make[1]: *** [objects/os_unix.o] Error 1
:info:build make[1]: *** Waiting for unfinished jobs….)

Attachments (2)

main.log (91.3 KB) - added by bitaxis (Nathan Brazil) 11 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_vim/vim/main.log
main.2.log (102.8 KB) - added by benjamin@… 11 years ago.
Also /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_vim/vim/main.log

Download all attachments as: .zip

Change History (15)

Changed 11 years ago by bitaxis (Nathan Brazil)

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_vim/vim/main.log

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Owner: changed from macports-tickets@… to raimue@…
Summary: Failed to upgrade vim @7.3.762_2+big to 7.4.052_0vim @7.4.052_0+big: build fails with "conflicting types for 'sigaltstack' "

Changed 11 years ago by benjamin@…

Attachment: main.2.log added

Also /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_vim/vim/main.log

comment:2 Changed 11 years ago by benjamin@…

Can confirm, I am experiencing this issue. OS X 10.8.5, XCode 5.0.2

comment:3 Changed 11 years ago by benjamin@…

Cc: benjamin@… added

Cc Me!

comment:4 Changed 11 years ago by barto@…

Another confirmation: 10.8.5 and Xcode 5.0.2

comment:5 Changed 11 years ago by mndavidoff (Monte Davidoff)

Cc: md14-macports@… added

Cc Me!

comment:6 Changed 11 years ago by skymoo (Adam Mercer)

Cc: ram@… added

Cc Me!

comment:7 Changed 11 years ago by clayton@…

Cc: clayton@… added

Cc Me!

comment:8 Changed 11 years ago by bolkin@…

Same error with XCode 4.6.3 on OSX 10.7.5

comment:9 Changed 11 years ago by bolkin@…

Cc: bolkin@… added

Cc Me!

comment:10 Changed 11 years ago by benjamin@…

Ouch. Still open without reply 6 weeks later?

comment:11 in reply to:  10 ; Changed 11 years ago by raimue (Rainer Müller)

Replying to benjamin@…:

Ouch. Still open without reply 6 weeks later?

Sorry I did not answer earlier. I do not see this build error on OS X 10.9 Mavericks and cannot reproduce the problem as I am no longer running OS X 10.8 Mountain Lion.

Initially the build failed on OS X 10.9 Mavericks. This was resolved by #include <AvailabilityMacros.h> that is applied in a local patch (patch-compat-darwin13.diff). Can you confirm that this is required on OS X 10.8 Mountain Lion with Xcode 5 as well?

comment:12 in reply to:  11 Changed 11 years ago by mndavidoff (Monte Davidoff)

Replying to raimue@…:

Initially the build failed on OS X 10.9 Mavericks. This was resolved by #include <AvailabilityMacros.h> that is applied in a local patch (patch-compat-darwin13.diff). Can you confirm that this is required on OS X 10.8 Mountain Lion with Xcode 5 as well?

I can confirm that the patch-compat-darwin13.diff patch is required on Mac OS X 10.6.8 with Xcode 3.2.6. The vim build fails with this error without the patch; it succeeds with the patch.

comment:13 Changed 11 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

Okay, thanks for this feedback. If it is also broken in Snow Leopard now without this patch, let's always enable this. Including the header should not harm even if it were not necessary.

As of r116417, the patch for the AvailabilityMacros.h is now included regardless of the version of OS X. Please report back if it is still broken for you.

Note: See TracTickets for help on using tickets.