[Reproducible-builds] Bug#818563: httpfs2: FTBFS: httpfs2.c:796:21: error: storage size of 'hints' isn't known

Chris Lamb lamby at debian.org
Fri Mar 18 02:24:05 UTC 2016


Source: httpfs2
Version: 0.1.4-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Dear Maintainer,

httpfs2 fails to build from source in unstable/amd64:

   dpkg-buildpackage -rfakeroot -D -us -uc -b
  dpkg-buildpackage: source package httpfs2
  dpkg-buildpackage: source version 0.1.4-1
  dpkg-buildpackage: source distribution unstable
  dpkg-buildpackage: source changed by Michal Suchanek <hramrach at centrum.cz>
   dpkg-source --before-build httpfs2-0.1.4
  dpkg-buildpackage: host architecture amd64
   fakeroot debian/rules clean
  dh clean
     dh_testdir
     dh_auto_clean
  	make -j1 clean
  make[1]: Entering directory '/home/lamby/temp/cdt.20160318102233.XHWYQBxObq/httpfs2-0.1.4'
  Package openssl was not found in the pkg-config search path.
  Perhaps you should add the directory containing `openssl.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'openssl' found
  Package openssl was not found in the pkg-config search path.
  Perhaps you should add the directory containing `openssl.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'openssl' found
  rm -f httpfs2  httpfs2.1  httpfs2.1.xml
  make[1]: Leaving directory '/home/lamby/temp/cdt.20160318102233.XHWYQBxObq/httpfs2-0.1.4'
     dh_clean
   debian/rules build
  dh build
     dh_testdir
     dh_update_autotools_config
     dh_auto_configure
     dh_auto_build
  	make -j1
  make[1]: Entering directory '/home/lamby/temp/cdt.20160318102233.XHWYQBxObq/httpfs2-0.1.4'
  Package openssl was not found in the pkg-config search path.
  Perhaps you should add the directory containing `openssl.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'openssl' found
  Package openssl was not found in the pkg-config search path.
  Perhaps you should add the directory containing `openssl.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'openssl' found
  gcc -g  -Wall -DUSE_AUTH -D_XOPEN_SOURCE=500 -D_ISOC99_SOURCE -Os -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -lfuse -pthread httpfs2.c -o httpfs2
  httpfs2.c:367:15: warning: conflicting types for built-in function 'strndup'
   static char * strndup(const char * str, int n){
                 ^
  httpfs2.c: In function 'init_url':
  httpfs2.c:399:26: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
       memset(url, 0, sizeof(url));
                            ^
  httpfs2.c: In function 'open_client_socket':
  httpfs2.c:796:21: error: storage size of 'hints' isn't known
       struct addrinfo hints;
                       ^
  httpfs2.c:819:19: warning: implicit declaration of function 'getaddrinfo' [-Wimplicit-function-declaration]
       if ((gaierr = getaddrinfo(url->host, portstr, &hints, &ai)) != 0) {
                     ^
  httpfs2.c:821:35: warning: implicit declaration of function 'gai_strerror' [-Wimplicit-function-declaration]
                   argv0, url->host, gai_strerror(gaierr));
                                     ^
  httpfs2.c:820:32: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat=]
           (void) fprintf(stderr, "%s: getaddrinfo %s - %s\n",
                                  ^
  httpfs2.c:826:46: error: dereferencing pointer to incomplete type 'struct addrinfo'
       for (aiv4 = ai; aiv4 != NULL; aiv4 = aiv4->ai_next) {
                                                ^
  httpfs2.c:854:5: warning: implicit declaration of function 'freeaddrinfo' [-Wimplicit-function-declaration]
       freeaddrinfo(ai);
       ^
  httpfs2.c:796:21: warning: unused variable 'hints' [-Wunused-variable]
       struct addrinfo hints;
                       ^
  httpfs2.c: In function 'parse_header':
  httpfs2.c:969:25: warning: field precision specifier '.*' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
           fprintf(stderr, "%s: %s: failed with status: %d%.*s.\n",
                           ^
  httpfs2.c: At top level:
  httpfs2.c:111:13: warning: 'destroy_url_copy' declared 'static' but never defined [-Wunused-function]
   static void destroy_url_copy(void *);
               ^
  httpfs2.c:405:12: warning: 'free_url' defined but not used [-Wunused-function]
   static int free_url(struct_url* url)
              ^
  Makefile:23: recipe for target 'httpfs2' failed
  make[1]: *** [httpfs2] Error 1
  make[1]: Leaving directory '/home/lamby/temp/cdt.20160318102233.XHWYQBxObq/httpfs2-0.1.4'
  dh_auto_build: make -j1 returned exit code 2
  debian/rules:4: recipe for target 'build' failed
  make: *** [build] Error 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: httpfs2.0.1.4-1.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 1478 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160318/20125773/attachment.obj>


More information about the Reproducible-builds mailing list