Guys
Attempting to compile Postfix 3.4.4 on Solaris 11 with GCC 7.3.0, but I
am getting the following error when running "make makefiles":
----------------------------------------------------------------------------------------------------
gcc -I. -I../../include -DNO_NISPLUS -Dstrcasecmp=fix_strcasecmp
-Dstrncasecmp=fix_strncasecmp -I/usr/remove/include -DHAS_DEV_URANDOM
-DHAS_PCRE -I/usr/include/pcre -UUSE_DYNAMIC_LIBS -DDEF_SHLIB_DIR=\"no\"
-UUSE_DYNAMIC_MAPS -Wmissing-prototypes -Wformat -Wno-comment -g -O -I.
-DSUNOS5 -c unix_dgram_connect.c
unix_dgram_connect.c: In function ‘unix_dgram_connect’:
unix_dgram_connect.c:63:24: error: expected identifier or ‘(’ before
numeric constant
struct sockaddr_un sun;
^
unix_dgram_connect.c:70:48: error: request for member ‘sun_path’ in
something not a structure or union
if ((path_len = strlen(path)) >= sizeof(sun.sun_path))
^
unix_dgram_connect.c:72:21: error: lvalue required as unary ‘&’ operand
memset((void *) &sun, 0, sizeof(sun));
^
unix_dgram_connect.c:73:8: error: request for member ‘sun_family’ in
something not a structure or union
sun.sun_family = AF_UNIX;
^
unix_dgram_connect.c:77:15: error: request for member ‘sun_path’ in
something not a structure or union
memcpy(sun.sun_path, path, path_len + 1);
^
unix_dgram_connect.c:84:43: error: lvalue required as unary ‘&’ operand
if (connect(sock, (struct sockaddr *) &sun, sizeof(sun)) < 0) {
^
*** Error code 1
make: Fatal error: Command failed for target `unix_dgram_connect.o'
Current working directory /usr/local/src/postfix-3.4.4/src/util
*** Error code 1
make: Fatal error: Command failed for target `update'
----------------------------------------------------------------------------------------------------
Not sure if I am missing the plot somewhere. When compiling Postfix
3.3.4 there is no issues and the source compile just fine.
OS: Solaris 11.3 SPARC (SunOS dev-host 5.11 11.3 sun4v sparc sun4v)
Compiler: GCC 7.3.0
Postfix: 3.4.4
Regards
--
---
Jaco Lesch
SAIX HLS
Email: ja...@saix.net