|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Problems building 2.2.6 on HP-UX 10.20, 11.00, 11.11, 11.23
From: Albert Chin (postfix-users
mlists.thewrittenword.com)
Date: Wed Nov 30 2005 - 17:08:15 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2.2.6 won't build on HP-UX 10.20, 11.00, 11.11, 11.23/PA, 11.23/IA.
The errors are essentially all the same. <sys/socket.h> defines
cmsghdr and the CMSG macros if:
#if defined(_XOPEN_SOURCE_EXTENDED) || defined(_KERNEL)
cc -DDEF_COMMAND_DIR=\"/opt/TWWfsw/postfix226/sbin\"
-DDEF_CONFIG_DIR=\"/etc/opt/TWWfsw/postfix226\"
-DDEF_DAEMON_DIR=\"/opt/TWWfsw/postfix226/libexec\"
-DDEF_MAILQ_PATH=\"/opt/TWWfsw/postfix226/bin/mailq\"
-DDEF_MANPAGE_DIR=\"/opt/TWWfsw/postfix226/man\"
-DDEF_NEWALIAS_PATH=\"/opt/TWWfsw/postfix226/bin/newaliases\"
-DDEF_SAMPLE_DIR=\"/opt/TWWfsw/postfix226/contrib\"
-DDEF_SENDMAIL_PATH=\"/opt/TWWfsw/postfix226/sbin/sendmail\"
-DDEF_QUEUE_DIR=\"/var/opt/TWWfsw/postfix226\"
-DDEF_README_DIR=\"/opt/TWWfsw/postfix226/doc/readme-files\" -DHAS_DB
-I/opt/TWWfsw/libdb42/include -DHAS_LDAP
-I/opt/TWWfsw/openldap2229/include -DUSE_TLS
-I/opt/TWWfsw/libopenssl097/include -DHAS_PCRE
-I/opt/TWWfsw/libpcre50/include -z +O2 +Onofltacc +Olit=all
+Oentrysched +Odataprefetch +Onolimit -I. -DHPUX11 -c unix_recv_fd.c
"unix_recv_fd.c", line 69: error #2070: incomplete type is not allowed
struct cmsghdr just_for_alignment;
^
"unix_recv_fd.c", line 70: error #2020: identifier "_CMSG_ALIGN" is
undefined
char control[CMSG_SPACE(sizeof(newfd))];
^
"unix_recv_fd.c", line 70: error #2059: function call is not allowed
in a
constant expression
char control[CMSG_SPACE(sizeof(newfd))];
^
"unix_recv_fd.c", line 70: error #2070: incomplete type is not allowed
char control[CMSG_SPACE(sizeof(newfd))];
^
"unix_recv_fd.c", line 70: error #2059: function call is not allowed
in a
constant expression
char control[CMSG_SPACE(sizeof(newfd))];
^
"unix_recv_fd.c", line 74: error #2136: struct "msghdr" has no field
"msg_control"
msg.msg_control = control_un.control;
^
If I #define _XOPEN_SOURCE_EXTENDED in src/util/sys_defs.h, everything
builds but I get a linker error:
/usr/ccs/bin/ld: Unsatisfied symbols:
ntohl (first referenced in ../../lib/libutil.a(sock_addr.o)) (code)
The fix is to #include <arpa/inet.h> in sock_addr.c. Then I
encountered another linker error:
/usr/ccs/bin/ld: Unsatisfied symbols:
ntohs (first referenced in ../../lib/libdns.a(dns_lookup.o)) (code)
The fix is to #include <netinet/in.h> and #include <arpa/inet.h> in
dns_lookup.c. There were a few other linker errors, resolved by
including at least one of these files.
Seem like an ok fix?
--
albert chin (china
thewrittenword.com)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]