Originally posted by: dieter_mosbach
Because of CVE-2017-7494 (sambacry) we need a newer version of samba.
I tried to compile 4.6.4 with xlc and gcc, but got same errors like above:
###############################################
IBM XL C/C++ for AIX, V13.1.3 (5725-C72, 5765-J07)
Version: 13.01.0003.0004
...
[ 506/3555] Compiling lib/util/signal.c
"../lib/util/time.c", line 63.5: 1506-294 (S) Syntax error in expression on #if directive.
"../lib/util/charset/iconv.c", line 102.28: 1506-280 (W) Function argument assignment between types "const char**" and "char**" is not allowed.
[ 507/3555] Compiling lib/util/util.c
1500-030: (I) INFORMATION: test_strtoull: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 16384.
Waf: Leaving directory `/tmp/samba-4.6.4/bin'
Build failed: -> task failed (err #1):
{task: cc time.c -> time_15.o}
make: 1254-004 The error code from the last command is 1.
Stop.
###############################################
gcc --version
gcc (GCC) 6.3.0
Copyright (C) 2016 Free Software Foundation, Inc.
In file included from ../lib/replace/system/filesys.h:132:0,
from ../lib/replace/xattr.c:30:
/usr/include/sys/ea.h:43:5: note: expected 'void *' but argument is of type 'const void *'
int fsetea(int, const char *, void *, size_t, int);
^~~~~~
[ 9/3546] Linking default/lib/replace/libreplace-samba4.so
gcc: error: argument to '-G' should be a non-negative integer
Waf: Leaving directory `/tmp/samba-4.6.4/bin'
Build failed: -> task failed (err #1):
{task: cc_link replace_2.o,timegm_2.o,snprintf_2.o,cwrap_2.o,getifaddrs_2.o,xattr_2.o,closefrom_2.o -> libreplace-samba4.so}
make: 1254-004 The error code from the last command is 1.
Stop.
###############################################