Pavel Raiskup wrote:
With current gnulib submodule hash - build system throws:

To fix that particular problem I updated to the current Gnulib version, as 
follows:

git submodule foreach git pull origin master
git commit -m 'build: update gnulib submodule to latest' gnulib

You'll need to bootstrap, most likely.

The next problem I ran into is that paxutils doesn't compile cleanly. Perhaps Sergey can look into that, as the code indeed looks dicey (it even has comments saying it's dicey...) Tail of the log attached.

  CC       rtapelib.o
In file included from /usr/include/sys/socket.h:33,
                 from /usr/include/netinet/in.h:23,
                 from /usr/include/netdb.h:27,
                 from rtapelib.c:59:
/usr/include/bits/socket.h: In function ‘__cmsg_nxthdr’:
/usr/include/bits/socket.h:315:12: error: cast increases required alignment of 
target type [-Werror=cast-align]
   __cmsg = (struct cmsghdr *) ((unsigned char *) __cmsg
            ^
rtapelib.c: In function ‘rmt_ioctl__’:
rtapelib.c:675:18: error: cast increases required alignment of target type 
[-Werror=cast-align]
  uintmax_t u = (((struct mtop *) argument)->mt_count < 0
                  ^
rtapelib.c:676:27: error: cast increases required alignment of target type 
[-Werror=cast-align]
          ? - (uintmax_t) ((struct mtop *) argument)->mt_count
                           ^
rtapelib.c:677:25: error: cast increases required alignment of target type 
[-Werror=cast-align]
          : (uintmax_t) ((struct mtop *) argument)->mt_count);
                         ^
rtapelib.c:684:7: error: cast increases required alignment of target type 
[-Werror=cast-align]
  if (((struct mtop *) argument)->mt_count < 0)
       ^
rtapelib.c:690:5: error: cast increases required alignment of target type 
[-Werror=cast-align]
    ((struct mtop *) argument)->mt_op, p);
     ^
rtapelib.c:735:7: error: cast increases required alignment of target type 
[-Werror=cast-align]
  if (((struct mtget *) argument)->MTIO_CHECK_FIELD < 256)
       ^

Reply via email to