[nanomsg] Problem building on HP-UX

  • From: nanomsg@xxxxxx
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Mon, 16 Sep 2013 15:04:19 +0200

Hi all,

I'm attempting to build nanomsg on a HP-UX machine (11.31) with aCC (A.06.12) and got into some trouble...

I added two missing defines (which I assumed must be there), to fix some problems:
  NN_HAVE_HPUX
  NN_HAVE_SEMAPHORE

But this error I've not been able to fix (yet):

  CC     src/aio/usock.lo
"src/aio/usock_posix.inc", line 900: error #2852: expression must be a pointer to a complete object type
               hdr->msg_iov->iov_base += nbytes;

Type type of the msg_iov member is undefined, which is struct iovec. This seems to be defined in /usr/include/sys/uio.h, guarded by a _INCLUDE_XOPEN_SOURCE_EXTENDED define, which is not defined. Defining it makes no difference, however.

Compiler command-line used is:

/bin/sh ./libtool --silent --tag=CC --mode=compile aCC -Ae -AC99 -DPACKAGE_NAME="nanomsg" -DPACKAGE_TARNAME="nanomsg" -DPACKAGE_VERSION="0.1-alpha" -DPACKAGE_STRING="nanomsg 0.1-alpha" -DPACKAGE_BUGREPORT="nanomsg@xxxxxxxxxxxxx" -DPACKAGE_URL="http://nanomsg.org/"; -DPACKAGE="nanomsg" -DVERSION="0.1-alpha" -DNN_HAVE_HPUX=1 -DNN_HAVE_SEMAPHORE=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_NETDB_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_PIPE=1 -DNN_HAVE_PIPE=1 -DHAVE_GETHRTIME=1 -DNN_HAVE_GETHRTIME=1 -DHAVE_CLOCK_GETTIME=1 -DHAVE_POLL=1 -DNN_HAVE_POLL=1 -DNN_USE_POLL=1 -DNN_USE_LITERAL_IFADDR=1 -DNN_HAVE_SOCKETPAIR=1 -DNN_USE_EVENTFD=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -I. +DD64 -mt -D_REENTRANT


Anyone tried this?


/André

Other related posts: