Bug 11916 - Build failure with xlc 13.1.3, pylibsmb.c, lib/replace/system/select.h, stack-protector
Summary: Build failure with xlc 13.1.3, pylibsmb.c, lib/replace/system/select.h, stack...
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.4.3
Hardware: Other AIX
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-11 13:07 UTC by Peter (mail address dead)
Modified: 2022-03-07 00:20 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter (mail address dead) 2016-05-11 13:07:50 UTC
On AIX 6.1 I'm trying to compile samba 4.4.3:

./configure --check-c-compiler=xlc --without-ad-dc --without-ldap --without-ads
'configure' finished successfully (7m44.429s)

make fails with following errors:
--------------------------
[2805/3350] Compiling source3/script/tests/timelimit.c
"../source3/utils/ntlm_auth.c", line 1089.63: 1506-280 (W) Function argument assignment between types "_Bool" and "const char*" is not allowed.
[2806/3350] Compiling source3/torture/rpc_open_tcp.c
[2807/3350] Compiling source3/utils/dbwrap_tool.c
[2808/3350] Compiling source3/utils/dbwrap_torture.c
[2809/3350] Compiling source3/utils/split_tokens.c
[2810/3350] Compiling source3/printing/tests/vlp.c
[2811/3350] Compiling source3/smbd/pysmbd.c
[2812/3350] Compiling source3/libsmb/pylibsmb.c
[2813/3350] Compiling source3/auth/auth_script.c
[2814/3350] Compiling source3/lib/pthreadpool/tests.c
[2815/3350] Compiling source3/lib/asys/tests.c
[2816/3350] Compiling source3/lib/unix_msg/tests.c
[2817/3350] Compiling source3/lib/unix_msg/test_drain.c
[2818/3350] Compiling source3/lib/unix_msg/test_source.c
"../lib/replace/system/select.h", line 34.10: 1506-296 (S) #include file <sys/epoll.h> not found.
Waf: Leaving directory `/source/samba/samba-4.4.3/bin'
Build failed:  -> task failed (err #1): 
        {task: cc pylibsmb.c -> pylibsmb_197.o}
make: 1254-004 The error code from the last command is 1.
------------------------------------

samba-4.4.3/bin/config.log shows:
------------------------------------
Checking if toolchain accepts -fstack-protector
==>

        #include <stdio.h>

        int main(void)
        {
            char t[100000];
            while (fgets(t, sizeof(t), stdin));
            return 0;
        }
        
<==
[1/2] Compiling test.c
['/opt/IBM/xlc/13.1.3/bin/xlc_r', '-fstack-protector', '-I/usr/local/include', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-D_ALL_SOURCE=1', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '../test.c', '-c', '-o', 'default/test_1.o']
[2/2] Linking default/testprog
ld: 0706-005 Cannot find or open file: stack-protector
        ld:fopen(): A file or directory in the path name does not exist.
['/opt/IBM/xlc/13.1.3/bin/xlc_r', 'default/test_1.o', '-o', '/source/samba/samba-4.4.3/bin/.conf_check_0/testbuild/default/testprog', '-fstack-protector', '-Wl,-brtl', '-L/usr/local/lib']
command returned 'Build failed:  -> task failed (err #255): \n\t{task: cc_link test_1.o -> testprog}'no
-----------------------------

The same error also occurs on samba version 4.3.9

I have no idea what this means or how to fix. - Thanks for looking into this.
Comment 1 Peter (mail address dead) 2016-05-18 12:14:14 UTC
before getting this error I have applied the following patches:
https://bugzilla.samba.org/show_bug.cgi?id=11621
https://bugzilla.samba.org/show_bug.cgi?id=11746
https://bugzilla.samba.org/show_bug.cgi?id=11748
Comment 2 Björn Jacke 2016-05-18 12:28:42 UTC
It's good that IBM reports problems that Samba has with their enterprise unix platform but without a AIX machine donation for Ssamba development - either dedicated remote access LPAR or a bare metal machine donation we cannot help a lot with those issues. I know, we repeat ourself saying this :-)
Comment 3 Peter (mail address dead) 2016-05-18 12:48:00 UTC
unfortunately I'm not in a position to offer such an environment...
Comment 4 Björn Jacke 2022-03-07 00:20:17 UTC
on AIX7 I don't see an issue like this and AIX6 isn't supported by Samba any more.