The Samba-Bugzilla – Attachment 11970 Details for
Bug 11750
gcc6 fails to build internal heimdal (seen with 4.4.0rc3)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch from master branch
0001-configure-set-HAVE___ATTRIBUTE__-for-heimdal.patch (text/plain), 1.61 KB, created by
Douglas Bagnall
on 2016-04-07 10:16:50 UTC
(
hide
)
Description:
patch from master branch
Filename:
MIME Type:
Creator:
Douglas Bagnall
Created:
2016-04-07 10:16:50 UTC
Size:
1.61 KB
patch
obsolete
>From 1c796547f20fa3c7c2e93fd5ce6ee8453a2bb435 Mon Sep 17 00:00:00 2001 >From: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> >Date: Tue, 8 Mar 2016 10:23:09 +1300 >Subject: [PATCH] configure: set HAVE___ATTRIBUTE__ for heimdal > >Without this, heimdal ends up defining __attribute__ away, causing >gcc-6 compile errors with -Werror=return-type because it can't tell >when functions have __attribute__((noreturn)). > >Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> >Reviewed-by: Andrew Bartlett <abartlet@samba.org> >Reviewed-by: Garming Sam <garming@catalyst.net.nz> > >Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> >Autobuild-Date(master): Wed Mar 9 13:52:26 CET 2016 on sn-devel-144 >--- > buildtools/wafsamba/wscript | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > >diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript >index 586cc4b..8802e5a 100755 >--- a/buildtools/wafsamba/wscript >+++ b/buildtools/wafsamba/wscript >@@ -402,6 +402,22 @@ def configure(conf): > addmain=False, > msg='Checking for library destructor support') > >+ conf.CHECK_CODE(''' >+ void test_attribute(void) __attribute__ (()); >+ >+ void test_attribute(void) >+ { >+ return; >+ } >+ >+ int main(void) { >+ return 0; >+ } >+ ''', >+ 'HAVE___ATTRIBUTE__', >+ addmain=False, >+ msg='Checking for __attribute__') >+ > if sys.platform.startswith('aix'): > conf.DEFINE('_ALL_SOURCE', 1, add_to_cflags=True) > # Might not be needed if ALL_SOURCE is defined >-- >2.1.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11750
:
11970
|
12251