Bug#854512: ftpcopy: FTBFS: dpkg-shlibdeps: error: cannot read «BUILDDIR»/debian/ftpcopy/usr/bin/ftpcp

Chris Lamb lamby at debian.org
Tue Feb 7 20:46:52 UTC 2017


Source: ftpcopy
Version: 0.6.7-3
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Dear Maintainer,

ftpcopy fails to build from source in unstable/amd64:

  […]

  In file included from socket_conn64.c:4:0:
  socket_conn64.c: In function 'socket_connect64':
  byte.h:15:47: warning: pointer targets in passing argument 3 of 'byte_diff' differ in signedness [-Wpointer-sign]
   #define byte_equal(s,n,t) (!byte_diff((s),(n),(t)))
                                                 ^
  ip6.h:23:29: note: in expansion of macro 'byte_equal'
   #define ip6_isv4mapped(ip) (byte_equal(ip,12,V4mappedprefix))
                               ^~~~~~~~~~
  socket_conn64.c:19:7: note: in expansion of macro 'ip6_isv4mapped'
     if (ip6_isv4mapped(ip))
         ^~~~~~~~~~~~~~
  byte.h:12:5: note: expected 'const char *' but argument is of type 'const unsigned char *'
   int byte_diff(const char *s,unsigned int n,const char *t);
       ^~~~~~~~~
  byte.h:15:47: warning: pointer targets in passing argument 3 of 'byte_diff' differ in signedness [-Wpointer-sign]
   #define byte_equal(s,n,t) (!byte_diff((s),(n),(t)))
                                                 ^
  socket_conn64.c:22:7: note: in expansion of macro 'byte_equal'
     if (byte_equal(ip,16,V6loopback))
         ^~~~~~~~~~
  byte.h:12:5: note: expected 'const char *' but argument is of type 'const unsigned char *'
   int byte_diff(const char *s,unsigned int n,const char *t);
       ^~~~~~~~~
  socket_conn64.c:23:30: warning: pointer targets in passing argument 2 of 'socket_connect4' differ in signedness [-Wpointer-sign]
       return socket_connect4(s,V4loopback,port);
                                ^~~~~~~~~~
  In file included from socket_conn64.c:5:0:
  socket.h:15:5: note: expected 'const char *' but argument is of type 'const unsigned char *'
   int socket_connect4 (int fd, const char *ip, uo_uint16_t port);
       ^~~~~~~~~~~~~~~
  ./auto-compilew.sh  -c socket_connt.c
  ./auto-compilew.sh  -c socket_family.c
  socket_family.c: In function 'socket_family':
  socket_family.c:14:51: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness [-Wpointer-sign]
     if (-1!=getsockname(fd,(struct sockaddr *) &sa6,&dummy)) {
                                                     ^
  In file included from socket_family.c:2:0:
  /usr/include/x86_64-linux-gnu/sys/socket.h:127:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *'
   extern int getsockname (int __fd, __SOCKADDR_ARG __addr,
              ^~~~~~~~~~~
  socket_family.c:23:51: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness [-Wpointer-sign]
     if (-1==getsockname(fd,(struct sockaddr *) &sa4,&dummy))
                                                     ^
  In file included from socket_family.c:2:0:
  /usr/include/x86_64-linux-gnu/sys/socket.h:127:12: note: expected 'socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *'
   extern int getsockname (int __fd, __SOCKADDR_ARG __addr,
              ^~~~~~~~~~~
  ./auto-compilew.sh  -c socket_flag.c
  ./auto-compilew.sh  -c socket_gifid.c
  ./auto-compilew.sh  -c socket_gifna.c
  ./auto-compilew.sh  -c socket_htons.c
  socket_htons.c: In function 'socket_htons':
  socket_htons.c:10:19: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
    unsigned char *p=(char *)nport;
                     ^
  ./auto-compilew.sh  -c socket_ntohs.c
  socket_ntohs.c: In function 'socket_ntohs':
  socket_ntohs.c:10:19: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
    unsigned char *p=(char *)&nport;
                     ^
  ./auto-compilew.sh  -c socket_remote6.c
  ./auto-compilew.sh  -c socket_tcp.c
  ./auto-compilew.sh  -c socket_tcp6.c
  ./auto-compilew.sh  -c socket_tcp64.c
  ./auto-compilew.sh  -c socket_udp.c
  ./auto-compilew.sh  -c socket_udp6.c
  ./auto-compilew.sh  -c socket_udp64.c
  ./auto-compilew.sh  -c stralloc_cat.c
  ./auto-compilew.sh  -c stralloc_catb.c
  ./auto-compilew.sh  -c stralloc_cats.c
  ./auto-compilew.sh  -c stralloc_copy.c
  ./auto-compilew.sh  -c stralloc_eady.c
  ./auto-compilew.sh  -c stralloc_free.c
  ./auto-compilew.sh  -c stralloc_opyb.c
  ./auto-compilew.sh  -c stralloc_opys.c
  ./auto-compilew.sh  -c stralloc_pend.c
  ./auto-compilew.sh  -c stralloc_plus.c
  ./auto-makelib.sh libunix.a alloc.o alloc_re.o api_futimes.o api_utimes.o buffer.o buffer_0.o buffer_1.o buffer_2.o buffer_get.o buffer_put.o env_get.o error.o error_str.o gen_alloc_ady.o gen_alloc_end.o gen_alloc_lus.o get_cwd.o getln.o iopause.o ndelay_off.o ndelay_on.o open_append.o open_excl.o open_read.o openreadclose.o readclose.o readclose_app.o sig.o sig_catch.o socket_bind.o socket_bind6.o socket_bind64.o socket_conn.o socket_conn6.o socket_conn64.o socket_connt.o socket_family.o socket_flag.o socket_gifid.o socket_gifna.o socket_htons.o socket_ntohs.o socket_remote6.o socket_tcp.o socket_tcp6.o socket_tcp64.o socket_udp.o socket_udp6.o socket_udp64.o stralloc_cat.o stralloc_catb.o stralloc_cats.o stralloc_copy.o stralloc_eady.o stralloc_free.o stralloc_opyb.o stralloc_opys.o stralloc_pend.o stralloc_plus.o
  ar: `u' modifier ignored since `D' is the default (see `U')
  ./auto-compilew.sh  -c tai_add.c
  ./auto-compile.sh  -c tai_now.c
  ./auto-compilew.sh  -c tai_pack.c
  ./auto-compilew.sh  -c tai_sub.c
  ./auto-compilew.sh  -c tai_uint.c
  ./auto-compilew.sh  -c taia_add.c
  ./auto-compilew.sh  -c taia_approx.c
  ./auto-compilew.sh  -c taia_frac.c
  ./auto-compile.sh  -c taia_half.c
  ./auto-compilew.sh  -c taia_less.c
  ./auto-compilew.sh  -c taia_now.c
  ./auto-compilew.sh  -c taia_pack.c
  ./auto-compilew.sh  -c taia_sub.c
  ./auto-compilew.sh  -c taia_uint.c
  ./auto-makelib.sh libtai.a tai_add.o tai_now.o tai_pack.o tai_sub.o tai_uint.o taia_add.o taia_approx.o taia_frac.o taia_half.o taia_less.o taia_now.o taia_pack.o taia_sub.o taia_uint.o
  ar: `u' modifier ignored since `D' is the default (see `U')
  ./auto-compilew.sh  -c byte_chr.c
  byte_chr.c: In function 'byte_chr':
  byte_chr.c:16:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (*p == ch) break; ++p; --n;
     ^~
  byte_chr.c:16:24: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (*p == ch) break; ++p; --n;
                          ^~
  byte_chr.c:19:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (*p == ch) break; ++p; --n;
     ^~
  byte_chr.c:19:24: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (*p == ch) break; ++p; --n;
                          ^~
  byte_chr.c:22:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (*p == ch) break; ++p; --n;
     ^~
  byte_chr.c:22:24: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (*p == ch) break; ++p; --n;
                          ^~
  byte_chr.c:25:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (*p == ch) break; ++p; --n;
     ^~
  byte_chr.c:25:24: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (*p == ch) break; ++p; --n;
                          ^~
  ./auto-compilew.sh  -c byte_copy.c
  ./auto-compilew.sh  -c byte_cr.c
  ./auto-compilew.sh  -c byte_diff.c
  ./auto-compilew.sh  -c byte_zero.c
  ./auto-compilew.sh  -c case_diffb.c
  case_diffb.c: In function 'case_diffb':
  case_diffb.c:10:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
    const unsigned char *s=ss;
                           ^~
  case_diffb.c:11:25: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
    const unsigned char *t=st;
                           ^~
  ./auto-compilew.sh  -c case_lowerb.c
  ./auto-compilew.sh  -c case_lowers.c
  case_lowers.c: In function 'case_lowers':
  case_lowers.c:10:22: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
       unsigned char *s=ss;
                        ^~
  ./auto-compilew.sh  -c case_lwrtab.c
  ./auto-compilew.sh  -c case_startb.c
  case_startb.c: In function 'case_startb':
  case_startb.c:10:26: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
    const unsigned char *lo=ulo;
                            ^~~
  case_startb.c:11:26: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
    const unsigned char *sh=ush;
                            ^~~
  ./auto-compilew.sh  -c case_starts.c
  ./auto-compilew.sh  -c fmt_uint0.c
  ./auto-compilew.sh  -c fmt_uint64.c
  ./auto-compilew.sh  -c fmt_ulong.c
  ./auto-compilew.sh  -c fmt_xlong.c
  ./auto-compilew.sh  -c ip4_constants.c
  ./auto-compilew.sh  -c ip4_fmt.c
  ./auto-compile.sh  -c ip4_scan.c
  ./auto-compilew.sh  -c ip6_constants.c
  ./auto-compilew.sh  -c ip6_fmt.c
  In file included from ip6_fmt.c:2:0:
  ip6_fmt.c: In function 'ip6_fmt':
  byte.h:15:47: warning: pointer targets in passing argument 3 of 'byte_diff' differ in signedness [-Wpointer-sign]
   #define byte_equal(s,n,t) (!byte_diff((s),(n),(t)))
                                                 ^
  ip6.h:23:29: note: in expansion of macro 'byte_equal'
   #define ip6_isv4mapped(ip) (byte_equal(ip,12,V4mappedprefix))
                               ^~~~~~~~~~
  ip6_fmt.c:17:18: note: in expansion of macro 'ip6_isv4mapped'
       if (j==12 && ip6_isv4mapped(ip)) {
                    ^~~~~~~~~~~~~~
  byte.h:12:5: note: expected 'const char *' but argument is of type 'const unsigned char *'
   int byte_diff(const char *s,unsigned int n,const char *t);
       ^~~~~~~~~
  ip6_fmt.c:28:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
      if (s) *s++=':'; ++len;
      ^~
  ip6_fmt.c:28:21: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
      if (s) *s++=':'; ++len;
                       ^~
  ip6_fmt.c:34:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if (s) *s++=':'; ++len;
    ^~
  ip6_fmt.c:34:19: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    if (s) *s++=':'; ++len;
                     ^~
  ./auto-compilew.sh  -c ip6_scan.c
  ip6_scan.c: In function 'ip6_scan':
  ip6_scan.c:25:19: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
       const char *c=V4mappedprefix;
                     ^~~~~~~~~~~~~~
  In file included from ip6_scan.c:4:0:
  byte.h:15:47: warning: pointer targets in passing argument 3 of 'byte_diff' differ in signedness [-Wpointer-sign]
   #define byte_equal(s,n,t) (!byte_diff((s),(n),(t)))
                                                 ^
  ip6_scan.c:26:9: note: in expansion of macro 'byte_equal'
       if (byte_equal(ip+12,4,V6any)) c=V6any;
           ^~~~~~~~~~
  byte.h:12:5: note: expected 'const char *' but argument is of type 'const unsigned char *'
   int byte_diff(const char *s,unsigned int n,const char *t);
       ^~~~~~~~~
  ip6_scan.c:26:37: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
       if (byte_equal(ip+12,4,V6any)) c=V6any;
                                       ^
  ./auto-compilew.sh  -c scan_long.c
  ./auto-compilew.sh  -c scan_sign.c
  ./auto-compilew.sh  -c scan_ulong.c
  ./auto-compilew.sh  -c scan_xlong.c
  ./auto-compilew.sh  -c str_chr.c
  ./auto-compilew.sh  -c str_diff.c
  ./auto-compilew.sh  -c str_len.c
  ./auto-compilew.sh  -c str_rchr.c
  ./auto-compilew.sh  -c str_start.c
  ./auto-compilew.sh  -c uint16_pack.c
  ./auto-compilew.sh  -c uint16_unpack.c
  ./auto-compilew.sh  -c uint32_pack.c
  ./auto-compilew.sh  -c uint32_unpack.c
  ./auto-makelib.sh libbyte.a byte_chr.o byte_copy.o byte_cr.o byte_diff.o byte_zero.o case_diffb.o case_lowerb.o case_lowers.o case_lwrtab.o case_startb.o case_starts.o fmt_uint0.o fmt_uint64.o fmt_ulong.o fmt_xlong.o ip4_constants.o ip4_fmt.o ip4_scan.o ip6_constants.o ip6_fmt.o ip6_scan.o scan_long.o scan_sign.o scan_ulong.o scan_xlong.o str_chr.o str_diff.o str_len.o str_rchr.o str_start.o uint16_pack.o uint16_unpack.o uint32_pack.o uint32_unpack.o
  ar: `u' modifier ignored since `D' is the default (see `U')
  sh fsync.sh >fsync.t && mv fsync.t auto-fsync.lib
  sh replace.sh utimes utimes "" -lsocket >auto-utimes.lib.t && mv auto-utimes.lib.t auto-utimes.lib
  ./auto-link.sh ftpcopy  ftpcopy.o ftpparse.o ftplib.o ftp_read_lis.o urlparse.o canon.o common.o mdtm.o mysleep.o warn_broken.o eof_or_error.o utcdate2tai.o sockrecbuf.o ssort.o inq_winsize.o libuotime.a libuomisc.a libdns.a libstrhash.a libunix.a libtai.a libbyte.a `head -n 1 auto-socket.lib` `head -n 1 auto-fsync.lib` `head -n 1 auto-utimes.lib` `head -n 1 auto-gettimeofday.lib` 
  ./auto-compilew.sh  -c ftpls.c
  ftpls.c: In function 'get_listing':
  ftpls.c:181:48: warning: pointer targets in passing argument 2 of 'cmdwrite2' differ in signedness [-Wpointer-sign]
    cmdwrite2(r_dir->s[0]=='/' ? "CWD " : "CWD /",r_dir->s);
                                                  ^~~~~
  In file included from ftpls.c:26:0:
  ftpcopy.h:149:6: note: expected 'const unsigned char *' but argument is of type 'char *'
   void cmdwrite2(const char *s1, const unsigned char *s2);
        ^~~~~~~~~
  ftpls.c:199:22: warning: pointer targets in passing argument 2 of 'cmdwrite2' differ in signedness [-Wpointer-sign]
     cmdwrite2("LIST ", o_list_options);
                        ^~~~~~~~~~~~~~
  In file included from ftpls.c:26:0:
  ftpcopy.h:149:6: note: expected 'const unsigned char *' but argument is of type 'const char *'
   void cmdwrite2(const char *s1, const unsigned char *s2);
        ^~~~~~~~~
  ftpls.c:175:6: warning: variable 'got_it' set but not used [-Wunused-but-set-variable]
    int got_it;
        ^~~~~~
  ftpls.c: In function 'main':
  ftpls.c:524:7: warning: variable 'retcode' set but not used [-Wunused-but-set-variable]
     int retcode;
         ^~~~~~~
  ./auto-compilew.sh  -c sort_it.c
  ./auto-link.sh ftpls  ftpls.o ftpparse.o ftplib.o ftp_read_lis.o urlparse.o sort_it.o common.o mysleep.o warn_broken.o eof_or_error.o utcdate2tai.o ssort.o libuotime.a libdns.a libuomisc.a libstrhash.a libdns.a libunix.a libtai.a libbyte.a `head -n 1 auto-socket.lib` `head -n 1 auto-gettimeofday.lib` 
  (echo .ds PA ftpcopy ;\
   echo .ds VE 0.6.7 ;\
   echo .ds CL web ;\
  ) >auto-version.tmac.t
  cmp auto-version.tmac auto-version.tmac.t \
   || cp auto-version.tmac.t auto-version.tmac
  cmp: auto-version.tmac: No such file or directory
  touch version.tmac.stamp && rm auto-version.tmac.t
  cat groff.tmac auto-version.tmac ftpcp.1.in \
   | sed 's/^.section/.SH/' >ftpcp.1.t \
   && mv ftpcp.1.t ftpcp.1
  perl uogo2man ftpcopy ./ftpcopy 1 man "--include-exclude-help" \
  "IN/EXCLUDE" >ftpcopy.1.t &&mv ftpcopy.1.t ftpcopy.1
  perl uogo2man ftpcopy ./ftpls 1 man  >ftpls.1.t &&mv ftpls.1.t ftpls.1
  perl uogo2man ftpcopy ./ftpcopy - html "--include-exclude-help" \
  "IN/EXCLUDE" >ftpcopy.html.t &&mv ftpcopy.html.t ftpcopy.html
  perl uogo2man ftpcopy ./ftpls - html  >ftpls.html.t &&mv ftpls.html.t \
  ftpls.html
  make[1]: Leaving directory '«BUILDDIR»/web/ftpcopy-0.6.7/compile'
  Copying documentation into ./doc...
  touch build-arch-stamp
   fakeroot debian/rules binary
  rm -rf '«BUILDDIR»/debian/ftpcopy'
  install -d -m0755 '«BUILDDIR»/debian/ftpcopy'/usr/bin
  for i in ftpcopy ftpcp ftpls; do \
    install -m0755 web/ftpcopy/command/$i '«BUILDDIR»/debian/ftpcopy'/usr/bin/ || exit 1; \
  done
  for i in ftpcopy ftpls; do \
    strip -R .comment -R .note '«BUILDDIR»/debian/ftpcopy'/usr/bin/$i || exit 1; \
  done
  # man pages
  install -d -m0755 '«BUILDDIR»/debian/ftpcopy'/usr/share/man/man1
  install -m0644 web/ftpcopy/doc/*.1 '«BUILDDIR»/debian/ftpcopy'/usr/share/man/man1/
  gzip -9 '«BUILDDIR»/debian/ftpcopy'/usr/share/man/man1/*.1
  # changelog
  test -r changelog || ln -s web/ftpcopy/src/ChangeLog changelog
  : implicit
  : debian/ftpcopy/usr/share/doc/ftpcopy/
  + install -m0644 debian/copyright debian/ftpcopy/usr/share/doc/ftpcopy/
  + install -m0644 debian/changelog debian/ftpcopy/usr/share/doc/ftpcopy/changelog.Debian
  + install -m0644 changelog debian/ftpcopy/usr/share/doc/ftpcopy/
  + install -m0644 web/ftpcopy/src/NEWS debian/ftpcopy/usr/share/doc/ftpcopy/
  + install -m0644 web/ftpcopy/src/README debian/ftpcopy/usr/share/doc/ftpcopy/
  + install -m0644 web/ftpcopy/src/THANKS debian/ftpcopy/usr/share/doc/ftpcopy/
  + install -m0644 debian/README.Debian.diet debian/ftpcopy/usr/share/doc/ftpcopy/
  : debian/ftpcopy/usr/share/doc/ftpcopy/examples/
  : debian/ftpcopy/usr/share/doc/ftpcopy/ ok
  : debian/ftpcopy/DEBIAN/
  : debian/ftpcopy/DEBIAN/md5sums
  : debian/ftpcopy/DEBIAN/ ok
  test '0' -ne 0 || dpkg-shlibdeps '«BUILDDIR»/debian/ftpcopy'/usr/bin/*
  dpkg-shlibdeps: error: cannot read «BUILDDIR»/debian/ftpcopy/usr/bin/ftpcp: 
  debian/rules:72: recipe for target 'binary-arch' failed
  make: *** [binary-arch] Error 255
  dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2

  […]

The full build log is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ftpcopy.0.6.7-3.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 8671 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-bugs/attachments/20170208/6ebb1984/attachment-0001.obj>


More information about the Reproducible-bugs mailing list